From a5f1e5c4e91a950afd55d32d309d322e38c731e5 Mon Sep 17 00:00:00 2001
From: Andrea Bianco
Date: Sat, 16 May 2020 12:13:34 +0200
Subject: [PATCH] Built motion from commit (unavailable).|2.4.16
---
apidoc/api_project.js | 2 +-
apidoc/api_project.json | 2 +-
public/app/main/apps/chat/i18n/ar.json | 5 +-
public/app/main/apps/chat/i18n/da.json | 5 +-
public/app/main/apps/chat/i18n/de.json | 5 +-
public/app/main/apps/chat/i18n/es.json | 5 +-
public/app/main/apps/chat/i18n/fa.json | 5 +-
public/app/main/apps/chat/i18n/fi.json | 5 +-
public/app/main/apps/chat/i18n/fr.json | 5 +-
public/app/main/apps/chat/i18n/he.json | 5 +-
public/app/main/apps/chat/i18n/hi.json | 5 +-
public/app/main/apps/chat/i18n/id.json | 5 +-
public/app/main/apps/chat/i18n/it.json | 4 +-
public/app/main/apps/chat/i18n/ja.json | 5 +-
public/app/main/apps/chat/i18n/ko.json | 5 +-
public/app/main/apps/chat/i18n/lv.json | 5 +-
public/app/main/apps/chat/i18n/nl.json | 5 +-
public/app/main/apps/chat/i18n/no.json | 5 +-
public/app/main/apps/chat/i18n/pl.json | 5 +-
public/app/main/apps/chat/i18n/pt-BR.json | 5 +-
public/app/main/apps/chat/i18n/pt-PT.json | 5 +-
public/app/main/apps/chat/i18n/ru.json | 5 +-
public/app/main/apps/chat/i18n/sv.json | 5 +-
public/app/main/apps/chat/i18n/tr.json | 5 +-
public/app/main/apps/chat/i18n/zh-CN.json | 5 +-
public/app/main/apps/chat/i18n/zh-TW.json | 5 +-
public/app/main/apps/dashboards/i18n/ar.json | 3 +-
public/app/main/apps/dashboards/i18n/da.json | 3 +-
public/app/main/apps/dashboards/i18n/de.json | 3 +-
public/app/main/apps/dashboards/i18n/en.json | 2 +-
public/app/main/apps/dashboards/i18n/es.json | 3 +-
public/app/main/apps/dashboards/i18n/fa.json | 3 +-
public/app/main/apps/dashboards/i18n/fi.json | 3 +-
public/app/main/apps/dashboards/i18n/fr.json | 3 +-
public/app/main/apps/dashboards/i18n/he.json | 3 +-
public/app/main/apps/dashboards/i18n/hi.json | 3 +-
public/app/main/apps/dashboards/i18n/id.json | 3 +-
public/app/main/apps/dashboards/i18n/ja.json | 3 +-
public/app/main/apps/dashboards/i18n/ko.json | 3 +-
public/app/main/apps/dashboards/i18n/lv.json | 3 +-
public/app/main/apps/dashboards/i18n/nl.json | 3 +-
public/app/main/apps/dashboards/i18n/no.json | 3 +-
public/app/main/apps/dashboards/i18n/pl.json | 3 +-
public/app/main/apps/dashboards/i18n/pt-BR.json | 3 +-
public/app/main/apps/dashboards/i18n/pt-PT.json | 3 +-
public/app/main/apps/dashboards/i18n/ru.json | 3 +-
public/app/main/apps/dashboards/i18n/sv.json | 3 +-
public/app/main/apps/dashboards/i18n/tr.json | 3 +-
public/app/main/apps/dashboards/i18n/zh-CN.json | 3 +-
public/app/main/apps/dashboards/i18n/zh-TW.json | 3 +-
public/app/main/apps/fax/i18n/ar.json | 5 +-
public/app/main/apps/fax/i18n/da.json | 5 +-
public/app/main/apps/fax/i18n/de.json | 5 +-
public/app/main/apps/fax/i18n/es.json | 5 +-
public/app/main/apps/fax/i18n/fa.json | 5 +-
public/app/main/apps/fax/i18n/fi.json | 5 +-
public/app/main/apps/fax/i18n/fr.json | 5 +-
public/app/main/apps/fax/i18n/he.json | 5 +-
public/app/main/apps/fax/i18n/hi.json | 5 +-
public/app/main/apps/fax/i18n/id.json | 5 +-
public/app/main/apps/fax/i18n/it.json | 4 +-
public/app/main/apps/fax/i18n/ja.json | 5 +-
public/app/main/apps/fax/i18n/ko.json | 5 +-
public/app/main/apps/fax/i18n/lv.json | 5 +-
public/app/main/apps/fax/i18n/nl.json | 5 +-
public/app/main/apps/fax/i18n/no.json | 5 +-
public/app/main/apps/fax/i18n/pl.json | 5 +-
public/app/main/apps/fax/i18n/pt-BR.json | 5 +-
public/app/main/apps/fax/i18n/pt-PT.json | 5 +-
public/app/main/apps/fax/i18n/ru.json | 5 +-
public/app/main/apps/fax/i18n/sv.json | 5 +-
public/app/main/apps/fax/i18n/tr.json | 5 +-
public/app/main/apps/fax/i18n/zh-CN.json | 5 +-
public/app/main/apps/fax/i18n/zh-TW.json | 5 +-
public/app/main/apps/mail/i18n/ar.json | 5 +-
public/app/main/apps/mail/i18n/da.json | 5 +-
public/app/main/apps/mail/i18n/de.json | 5 +-
public/app/main/apps/mail/i18n/en.json | 2 +-
public/app/main/apps/mail/i18n/es.json | 5 +-
public/app/main/apps/mail/i18n/fa.json | 5 +-
public/app/main/apps/mail/i18n/fi.json | 5 +-
public/app/main/apps/mail/i18n/fr.json | 5 +-
public/app/main/apps/mail/i18n/he.json | 5 +-
public/app/main/apps/mail/i18n/hi.json | 5 +-
public/app/main/apps/mail/i18n/id.json | 5 +-
public/app/main/apps/mail/i18n/it.json | 4 +-
public/app/main/apps/mail/i18n/ja.json | 5 +-
public/app/main/apps/mail/i18n/ko.json | 5 +-
public/app/main/apps/mail/i18n/lv.json | 5 +-
public/app/main/apps/mail/i18n/nl.json | 5 +-
public/app/main/apps/mail/i18n/no.json | 5 +-
public/app/main/apps/mail/i18n/pl.json | 5 +-
public/app/main/apps/mail/i18n/pt-BR.json | 5 +-
public/app/main/apps/mail/i18n/pt-PT.json | 5 +-
public/app/main/apps/mail/i18n/ru.json | 5 +-
public/app/main/apps/mail/i18n/sv.json | 5 +-
public/app/main/apps/mail/i18n/tr.json | 5 +-
public/app/main/apps/mail/i18n/zh-CN.json | 5 +-
public/app/main/apps/mail/i18n/zh-TW.json | 5 +-
public/app/main/apps/openchannel/i18n/ar.json | 5 +-
public/app/main/apps/openchannel/i18n/da.json | 5 +-
public/app/main/apps/openchannel/i18n/de.json | 5 +-
public/app/main/apps/openchannel/i18n/es.json | 5 +-
public/app/main/apps/openchannel/i18n/fa.json | 5 +-
public/app/main/apps/openchannel/i18n/fi.json | 5 +-
public/app/main/apps/openchannel/i18n/fr.json | 5 +-
public/app/main/apps/openchannel/i18n/he.json | 5 +-
public/app/main/apps/openchannel/i18n/hi.json | 5 +-
public/app/main/apps/openchannel/i18n/id.json | 5 +-
public/app/main/apps/openchannel/i18n/it.json | 4 +-
public/app/main/apps/openchannel/i18n/ja.json | 5 +-
public/app/main/apps/openchannel/i18n/ko.json | 5 +-
public/app/main/apps/openchannel/i18n/lv.json | 5 +-
public/app/main/apps/openchannel/i18n/nl.json | 5 +-
public/app/main/apps/openchannel/i18n/no.json | 5 +-
public/app/main/apps/openchannel/i18n/pl.json | 5 +-
public/app/main/apps/openchannel/i18n/pt-BR.json | 5 +-
public/app/main/apps/openchannel/i18n/pt-PT.json | 5 +-
public/app/main/apps/openchannel/i18n/ru.json | 5 +-
public/app/main/apps/openchannel/i18n/sv.json | 5 +-
public/app/main/apps/openchannel/i18n/tr.json | 5 +-
public/app/main/apps/openchannel/i18n/zh-CN.json | 5 +-
public/app/main/apps/openchannel/i18n/zh-TW.json | 5 +-
public/app/main/apps/sms/i18n/ar.json | 5 +-
public/app/main/apps/sms/i18n/da.json | 5 +-
public/app/main/apps/sms/i18n/de.json | 5 +-
public/app/main/apps/sms/i18n/es.json | 5 +-
public/app/main/apps/sms/i18n/fa.json | 5 +-
public/app/main/apps/sms/i18n/fi.json | 5 +-
public/app/main/apps/sms/i18n/fr.json | 5 +-
public/app/main/apps/sms/i18n/he.json | 5 +-
public/app/main/apps/sms/i18n/hi.json | 5 +-
public/app/main/apps/sms/i18n/id.json | 5 +-
public/app/main/apps/sms/i18n/it.json | 4 +-
public/app/main/apps/sms/i18n/ja.json | 5 +-
public/app/main/apps/sms/i18n/ko.json | 5 +-
public/app/main/apps/sms/i18n/lv.json | 5 +-
public/app/main/apps/sms/i18n/nl.json | 5 +-
public/app/main/apps/sms/i18n/no.json | 5 +-
public/app/main/apps/sms/i18n/pl.json | 5 +-
public/app/main/apps/sms/i18n/pt-BR.json | 5 +-
public/app/main/apps/sms/i18n/pt-PT.json | 5 +-
public/app/main/apps/sms/i18n/ru.json | 5 +-
public/app/main/apps/sms/i18n/sv.json | 5 +-
public/app/main/apps/sms/i18n/tr.json | 5 +-
public/app/main/apps/sms/i18n/zh-CN.json | 5 +-
public/app/main/apps/sms/i18n/zh-TW.json | 5 +-
public/app/toolbar/i18n/ar.json | 3 +-
public/app/toolbar/i18n/da.json | 3 +-
public/app/toolbar/i18n/de.json | 3 +-
public/app/toolbar/i18n/es.json | 3 +-
public/app/toolbar/i18n/fa.json | 3 +-
public/app/toolbar/i18n/fi.json | 3 +-
public/app/toolbar/i18n/fr.json | 3 +-
public/app/toolbar/i18n/he.json | 3 +-
public/app/toolbar/i18n/hi.json | 3 +-
public/app/toolbar/i18n/id.json | 3 +-
public/app/toolbar/i18n/ja.json | 3 +-
public/app/toolbar/i18n/ko.json | 3 +-
public/app/toolbar/i18n/lv.json | 3 +-
public/app/toolbar/i18n/nl.json | 3 +-
public/app/toolbar/i18n/no.json | 3 +-
public/app/toolbar/i18n/pl.json | 3 +-
public/app/toolbar/i18n/pt-BR.json | 3 +-
public/app/toolbar/i18n/pt-PT.json | 3 +-
public/app/toolbar/i18n/ru.json | 3 +-
public/app/toolbar/i18n/sv.json | 3 +-
public/app/toolbar/i18n/tr.json | 3 +-
public/app/toolbar/i18n/zh-CN.json | 3 +-
public/app/toolbar/i18n/zh-TW.json | 3 +-
public/assets/images/business/voiceRecordings.jpg | Bin 2993 -> 0 bytes
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.rpc.js | 2 +-
server/api/action/index.js | 2 +-
.../analyticCustomReport.attributes.js | 2 +-
.../analyticCustomReport.controller.js | 2 +-
.../analyticCustomReport.model.js | 2 +-
.../analyticCustomReport.rpc.js | 2 +-
server/api/analyticCustomReport/index.js | 2 +-
.../analyticDefaultReport.attributes.js | 2 +-
.../analyticDefaultReport.controller.js | 2 +-
.../analyticDefaultReport.model.js | 2 +-
.../analyticDefaultReport.rpc.js | 2 +-
server/api/analyticDefaultReport/index.js | 2 +-
.../analyticExtractedReport.attributes.js | 2 +-
.../analyticExtractedReport.controller.js | 2 +-
.../analyticExtractedReport.model.js | 2 +-
.../analyticExtractedReport.rpc.js | 2 +-
server/api/analyticExtractedReport/index.js | 2 +-
.../analyticFieldReport.attributes.js | 2 +-
.../analyticFieldReport.controller.js | 2 +-
.../analyticFieldReport.model.js | 2 +-
.../analyticFieldReport/analyticFieldReport.rpc.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 +-
server/api/analyticMetric/analyticMetric.rpc.js | 2 +-
server/api/analyticMetric/index.js | 2 +-
.../analyticTreeReport.attributes.js | 2 +-
.../analyticTreeReport.controller.js | 2 +-
.../analyticTreeReport/analyticTreeReport.model.js | 2 +-
.../analyticTreeReport/analyticTreeReport.rpc.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.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.rpc.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.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.rpc.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.rpc.js | 2 +-
server/api/cdr/index.js | 2 +-
.../chatApplication/chatApplication.attributes.js | 2 +-
.../chatApplication/chatApplication.controller.js | 2 +-
.../api/chatApplication/chatApplication.model.js | 2 +-
server/api/chatApplication/chatApplication.rpc.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.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 +-
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/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.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/chatOfflineMessage.rpc.js | 2 +-
server/api/chatOfflineMessage/index.js | 2 +-
.../chatProactiveAction.attributes.js | 2 +-
.../chatProactiveAction.controller.js | 2 +-
.../chatProactiveAction.model.js | 2 +-
.../chatProactiveAction/chatProactiveAction.rpc.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.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 +-
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/chatTransferReport.rpc.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.rpc.js | 2 +-
server/api/chatWebsite/chatWebsite.socket.js | 2 +-
server/api/chatWebsite/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.rpc.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.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.rpc.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.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.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.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 +-
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.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.rpc.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.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.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.rpc.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.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 +-
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 +-
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.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.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 +-
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 +-
.../api/faxTransferReport/faxTransferReport.rpc.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 +-
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.rpc.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.rpc.js | 2 +-
server/api/intDynamics365Account/index.js | 2 +-
.../intDynamics365Account.attributes.js | 2 +-
.../intDynamics365Account.controller.js | 2 +-
.../intDynamics365Account.model.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.rpc.js | 2 +-
server/api/intDynamics365Field/index.js | 2 +-
.../intDynamics365Field.attributes.js | 2 +-
.../intDynamics365Field.controller.js | 2 +-
.../intDynamics365Field.model.js | 2 +-
.../intDynamics365Field/intDynamics365Field.rpc.js | 2 +-
server/api/intFreshdeskAccount/index.js | 2 +-
.../intFreshdeskAccount.attributes.js | 2 +-
.../intFreshdeskAccount.controller.js | 2 +-
.../intFreshdeskAccount.model.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.rpc.js | 2 +-
server/api/intFreshdeskField/index.js | 2 +-
.../intFreshdeskField.attributes.js | 2 +-
.../intFreshdeskField.controller.js | 2 +-
.../intFreshdeskField/intFreshdeskField.model.js | 2 +-
.../api/intFreshdeskField/intFreshdeskField.rpc.js | 2 +-
server/api/intFreshsalesAccount/index.js | 2 +-
.../intFreshsalesAccount.attributes.js | 2 +-
.../intFreshsalesAccount.controller.js | 2 +-
.../intFreshsalesAccount.model.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.rpc.js | 2 +-
server/api/intFreshsalesField/index.js | 2 +-
.../intFreshsalesField.attributes.js | 2 +-
.../intFreshsalesField.controller.js | 2 +-
.../intFreshsalesField/intFreshsalesField.model.js | 2 +-
.../intFreshsalesField/intFreshsalesField.rpc.js | 2 +-
server/api/intSalesforceAccount/index.js | 2 +-
.../intSalesforceAccount.attributes.js | 2 +-
.../intSalesforceAccount.controller.js | 2 +-
.../intSalesforceAccount.model.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.rpc.js | 2 +-
server/api/intSalesforceField/index.js | 2 +-
.../intSalesforceField.attributes.js | 2 +-
.../intSalesforceField.controller.js | 2 +-
.../intSalesforceField/intSalesforceField.model.js | 2 +-
.../intSalesforceField/intSalesforceField.rpc.js | 2 +-
server/api/intServicenowAccount/index.js | 2 +-
.../intServicenowAccount.attributes.js | 2 +-
.../intServicenowAccount.controller.js | 2 +-
.../intServicenowAccount.model.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.rpc.js | 2 +-
server/api/intServicenowField/index.js | 2 +-
.../intServicenowField.attributes.js | 2 +-
.../intServicenowField.controller.js | 2 +-
.../intServicenowField/intServicenowField.model.js | 2 +-
.../intServicenowField/intServicenowField.rpc.js | 2 +-
server/api/intSugarcrmAccount/index.js | 2 +-
.../intSugarcrmAccount.attributes.js | 2 +-
.../intSugarcrmAccount.controller.js | 2 +-
.../intSugarcrmAccount/intSugarcrmAccount.model.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.rpc.js | 2 +-
server/api/intSugarcrmField/index.js | 2 +-
.../intSugarcrmField.attributes.js | 2 +-
.../intSugarcrmField.controller.js | 2 +-
.../api/intSugarcrmField/intSugarcrmField.model.js | 2 +-
.../api/intSugarcrmField/intSugarcrmField.rpc.js | 2 +-
server/api/intVtigerAccount/index.js | 2 +-
.../intVtigerAccount.attributes.js | 2 +-
.../intVtigerAccount.controller.js | 2 +-
.../api/intVtigerAccount/intVtigerAccount.model.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.rpc.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 +-
server/api/intVtigerField/intVtigerField.rpc.js | 2 +-
server/api/intZendeskAccount/index.js | 2 +-
.../intZendeskAccount.attributes.js | 2 +-
.../intZendeskAccount.controller.js | 2 +-
.../intZendeskAccount/intZendeskAccount.model.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.rpc.js | 2 +-
server/api/intZendeskField/index.js | 2 +-
.../intZendeskField/intZendeskField.attributes.js | 2 +-
.../intZendeskField/intZendeskField.controller.js | 2 +-
.../api/intZendeskField/intZendeskField.model.js | 2 +-
server/api/intZendeskField/intZendeskField.rpc.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 +-
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.rpc.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.rpc.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.rpc.js | 2 +-
server/api/integrationReport/index.js | 2 +-
.../integrationReport.attributes.js | 2 +-
.../integrationReport.controller.js | 2 +-
.../integrationReport/integrationReport.model.js | 2 +-
.../api/integrationReport/integrationReport.rpc.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.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.rpc.js | 2 +-
server/api/jscriptyProject/index.js | 2 +-
.../jscriptyProject/jscriptyProject.attributes.js | 2 +-
.../jscriptyProject/jscriptyProject.controller.js | 2 +-
.../api/jscriptyProject/jscriptyProject.model.js | 2 +-
server/api/jscriptyProject/jscriptyProject.rpc.js | 2 +-
server/api/jscriptyQuestionReport/index.js | 2 +-
.../jscriptyQuestionReport.attributes.js | 2 +-
.../jscriptyQuestionReport.controller.js | 2 +-
.../jscriptyQuestionReport.model.js | 2 +-
.../jscriptyQuestionReport.rpc.js | 2 +-
server/api/jscriptySessionReport/index.js | 2 +-
.../jscriptySessionReport.attributes.js | 2 +-
.../jscriptySessionReport.controller.js | 2 +-
.../jscriptySessionReport.model.js | 2 +-
.../jscriptySessionReport.rpc.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.rpc.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.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 +-
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 +-
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.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.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 +-
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.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.rpc.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.rpc.js | 2 +-
server/api/mailTransferReport/index.js | 2 +-
.../mailTransferReport.attributes.js | 2 +-
.../mailTransferReport.controller.js | 2 +-
.../mailTransferReport/mailTransferReport.model.js | 2 +-
.../mailTransferReport/mailTransferReport.rpc.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.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.rpc.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.rpc.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/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.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.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/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 +-
.../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.rpc.js | 2 +-
server/api/openchannelTransferReport/index.js | 2 +-
.../openchannelTransferReport.attributes.js | 2 +-
.../openchannelTransferReport.controller.js | 2 +-
.../openchannelTransferReport.model.js | 2 +-
.../openchannelTransferReport.rpc.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.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.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/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.rpc.js | 2 +-
server/api/screenRecording/index.js | 2 +-
.../screenRecording/screenRecording.attributes.js | 2 +-
.../screenRecording/screenRecording.controller.js | 2 +-
.../api/screenRecording/screenRecording.model.js | 2 +-
server/api/screenRecording/screenRecording.rpc.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.rpc.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.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 +-
server/api/smsApplication/smsApplication.rpc.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 +-
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.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.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 +-
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 +-
.../api/smsTransferReport/smsTransferReport.rpc.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.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.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.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.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 +-
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.rpc.js | 2 +-
server/api/squareReportDetail/index.js | 2 +-
.../squareReportDetail.attributes.js | 2 +-
.../squareReportDetail.controller.js | 2 +-
.../squareReportDetail/squareReportDetail.model.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.rpc.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.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.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.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.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.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.rpc.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.rpc.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.rpc.js | 2 +-
server/api/userOpenchannelQueue/index.js | 2 +-
.../userOpenchannelQueue.attributes.js | 2 +-
.../userOpenchannelQueue.model.js | 2 +-
.../userOpenchannelQueue.rpc.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.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/userProfileResource.rpc.js | 2 +-
server/api/userProfileSection/index.js | 2 +-
.../userProfileSection.attributes.js | 2 +-
.../userProfileSection.controller.js | 2 +-
.../userProfileSection/userProfileSection.model.js | 2 +-
.../userProfileSection/userProfileSection.rpc.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.rpc.js | 2 +-
server/api/userVoiceQueue/index.js | 2 +-
.../userVoiceQueue/userVoiceQueue.attributes.js | 2 +-
server/api/userVoiceQueue/userVoiceQueue.model.js | 2 +-
server/api/userVoiceQueue/userVoiceQueue.rpc.js | 2 +-
server/api/userVoiceQueueRt/index.js | 2 +-
.../userVoiceQueueRt.attributes.js | 2 +-
.../userVoiceQueueRt/userVoiceQueueRt.events.js | 2 +-
.../api/userVoiceQueueRt/userVoiceQueueRt.model.js | 2 +-
.../api/userVoiceQueueRt/userVoiceQueueRt.rpc.js | 2 +-
.../userVoiceQueueRt/userVoiceQueueRt.socket.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.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 +-
.../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 +-
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.rpc.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.rpc.js | 2 +-
server/api/voiceDialReport/index.js | 2 +-
.../voiceDialReport/voiceDialReport.attributes.js | 2 +-
.../voiceDialReport/voiceDialReport.controller.js | 2 +-
.../api/voiceDialReport/voiceDialReport.model.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 +-
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.rpc.js | 2 +-
server/api/voiceMailMessage/index.js | 2 +-
.../voiceMailMessage.attributes.js | 2 +-
.../voiceMailMessage.controller.js | 2 +-
.../api/voiceMailMessage/voiceMailMessage.model.js | 2 +-
.../api/voiceMailMessage/voiceMailMessage.rpc.js | 2 +-
server/api/voiceMusicOnHold/index.js | 2 +-
.../voiceMusicOnHold.attributes.js | 2 +-
.../voiceMusicOnHold.controller.js | 2 +-
.../api/voiceMusicOnHold/voiceMusicOnHold.model.js | 2 +-
.../api/voiceMusicOnHold/voiceMusicOnHold.rpc.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.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.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 +-
.../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 +-
server/api/voiceQueuesLog/voiceQueuesLog.rpc.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 +-
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/voiceTransferReport.rpc.js | 2 +-
server/app.js | 2 +-
server/components/auth/service.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/csv.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/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/seedContact.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/mysqldb/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/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 +-
.../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 +-
.../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 +-
snippet/1.0.15/assets/images/avatars/agent0.png | Bin 5172 -> 0 bytes
snippet/1.0.15/assets/images/avatars/customer0.png | Bin 3439 -> 0 bytes
snippet/1.0.15/assets/images/avatars/robot0.png | Bin 3252 -> 0 bytes
.../1.0.15/assets/images/logos/whisker_32x32.png | Bin 2456 -> 0 bytes
.../1.0.15/fonts/materialdesignicons-webfont.eot | Bin 417036 -> 0 bytes
.../1.0.15/fonts/materialdesignicons-webfont.svg | 8694 --------------------
.../1.0.15/fonts/materialdesignicons-webfont.ttf | Bin 416816 -> 0 bytes
.../1.0.15/fonts/materialdesignicons-webfont.woff | Bin 204320 -> 0 bytes
.../1.0.15/fonts/materialdesignicons-webfont.woff2 | Bin 151728 -> 0 bytes
snippet/1.0.15/index.html | 66 -
snippet/1.0.15/scripts/app.js | 1 -
snippet/1.0.15/scripts/vendor.js | 1 -
snippet/1.0.15/styles/app.css | 1 -
snippet/1.0.15/styles/mobile.css | 161 -
snippet/1.0.15/styles/vendor.css | 6 -
1254 files changed, 1639 insertions(+), 10168 deletions(-)
delete mode 100644 public/assets/images/business/voiceRecordings.jpg
delete mode 100644 snippet/1.0.15/assets/images/avatars/agent0.png
delete mode 100644 snippet/1.0.15/assets/images/avatars/customer0.png
delete mode 100644 snippet/1.0.15/assets/images/avatars/robot0.png
delete mode 100644 snippet/1.0.15/assets/images/logos/whisker_32x32.png
delete mode 100644 snippet/1.0.15/fonts/materialdesignicons-webfont.eot
delete mode 100644 snippet/1.0.15/fonts/materialdesignicons-webfont.svg
delete mode 100644 snippet/1.0.15/fonts/materialdesignicons-webfont.ttf
delete mode 100644 snippet/1.0.15/fonts/materialdesignicons-webfont.woff
delete mode 100644 snippet/1.0.15/fonts/materialdesignicons-webfont.woff2
delete mode 100644 snippet/1.0.15/index.html
delete mode 100644 snippet/1.0.15/scripts/app.js
delete mode 100644 snippet/1.0.15/scripts/vendor.js
delete mode 100644 snippet/1.0.15/styles/app.css
delete mode 100644 snippet/1.0.15/styles/mobile.css
delete mode 100644 snippet/1.0.15/styles/vendor.css
diff --git a/apidoc/api_project.js b/apidoc/api_project.js
index 7f9010e..4770ed6 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-05-15T17:45:35.720Z",
+ "time": "2020-05-16T10:03:28.721Z",
"url": "http://apidocjs.com",
"version": "0.20.1"
}
diff --git a/apidoc/api_project.json b/apidoc/api_project.json
index 32a6354..f8fe8dc 100644
--- a/apidoc/api_project.json
+++ b/apidoc/api_project.json
@@ -17,7 +17,7 @@
"apidoc": "0.3.0",
"generator": {
"name": "apidoc",
- "time": "2020-05-15T17:45:35.720Z",
+ "time": "2020-05-16T10:03:28.721Z",
"url": "http://apidocjs.com",
"version": "0.20.1"
}
diff --git a/public/app/main/apps/chat/i18n/ar.json b/public/app/main/apps/chat/i18n/ar.json
index 59596a9..2c09aaa 100644
--- a/public/app/main/apps/chat/i18n/ar.json
+++ b/public/app/main/apps/chat/i18n/ar.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "تÙ
ÙÙ٠زر اÙإرساÙ",
"FEEDBACKTITLE": "عÙÙا٠اÙتعÙÙÙ",
"TOOLTIP_SCREENRECORDING_OFF": "تسجÙ٠اÙشاشة اÙÙ
تاØØ©",
- "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
"
+ "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "تØÙ
Ù٠بدÙÙ Ù
رÙÙات",
+ "DOWNLOAD_WITH_ATTACHMENTS": "تÙزÙ٠باÙÙ
رÙÙات",
+ "LASTMESSAGE": "اخر رساÙØ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/da.json b/public/app/main/apps/chat/i18n/da.json
index f25e897..970bb4e 100644
--- a/public/app/main/apps/chat/i18n/da.json
+++ b/public/app/main/apps/chat/i18n/da.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Aktivér Send-knap",
"FEEDBACKTITLE": "Feedbacktitel",
"TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download uden vedhæftede filer",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download med vedhæftede filer",
+ "LASTMESSAGE": "Sidste besked"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/de.json b/public/app/main/apps/chat/i18n/de.json
index 767f445..af33775 100644
--- a/public/app/main/apps/chat/i18n/de.json
+++ b/public/app/main/apps/chat/i18n/de.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Schaltfläche \"Senden\" aktivieren",
"FEEDBACKTITLE": "Feedback-Titel",
"TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar",
- "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft"
+ "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download ohne Anhänge",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Mit Anhängen herunterladen",
+ "LASTMESSAGE": "Letzte Nachricht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/es.json b/public/app/main/apps/chat/i18n/es.json
index b0e008e..76fe7fc 100644
--- a/public/app/main/apps/chat/i18n/es.json
+++ b/public/app/main/apps/chat/i18n/es.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Habilitar botón Enviar",
"FEEDBACKTITLE": "TÃtulo de comentarios",
"TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso"
+ "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Descargar sin archivos adjuntos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Descargar con archivos adjuntos",
+ "LASTMESSAGE": "Ultimo mensaje"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/fa.json b/public/app/main/apps/chat/i18n/fa.json
index 8d78e63..2fdd92e 100644
--- a/public/app/main/apps/chat/i18n/fa.json
+++ b/public/app/main/apps/chat/i18n/fa.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "دکÙ
٠ارسا٠را Ùعا٠کÙÛد",
"FEEDBACKTITLE": "عÙÙا٠بازخÙرد",
"TOOLTIP_SCREENRECORDING_OFF": "ضبط صÙØ٠در دسترس است",
- "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است"
+ "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "بارگÛØ±Û Ø¨Ø¯ÙÙ Ù¾ÛÙست",
+ "DOWNLOAD_WITH_ATTACHMENTS": "با Ù¾ÛÙست Ùا بارگÛØ±Û Ú©ÙÛد",
+ "LASTMESSAGE": "آخرÛÙ Ù¾ÛاÙ
"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/fi.json b/public/app/main/apps/chat/i18n/fi.json
index f36cc2c..0ca5536 100644
--- a/public/app/main/apps/chat/i18n/fi.json
+++ b/public/app/main/apps/chat/i18n/fi.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Ota Lähetä-painike käyttöön",
"FEEDBACKTITLE": "Palautteen otsikko",
"TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla",
- "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä"
+ "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lataa ilman liitteitä",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Lataa liitteineen",
+ "LASTMESSAGE": "Viimeinen viesti"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/fr.json b/public/app/main/apps/chat/i18n/fr.json
index 6956a5c..797122f 100644
--- a/public/app/main/apps/chat/i18n/fr.json
+++ b/public/app/main/apps/chat/i18n/fr.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Activer le bouton d'envoi",
"FEEDBACKTITLE": "Titre de la rétroaction",
"TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours"
+ "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Télécharger sans pièces jointes",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Télécharger avec pièces jointes",
+ "LASTMESSAGE": "Dernier message"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/he.json b/public/app/main/apps/chat/i18n/he.json
index f900e97..36a616f 100644
--- a/public/app/main/apps/chat/i18n/he.json
+++ b/public/app/main/apps/chat/i18n/he.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "×פשר ×××¦× ×©××",
"FEEDBACKTITLE": "××תרת ×ש××",
"TOOLTIP_SCREENRECORDING_OFF": "×ק××ת ××¡× ×××× ×",
- "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת"
+ "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "×××¨× ××× ×§×צ×× ×צ×רפ××",
+ "DOWNLOAD_WITH_ATTACHMENTS": "×××¨× ×¢× ×§×צ×× ×צ×רפ××",
+ "LASTMESSAGE": "××××¢× ××ר×× ×"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/hi.json b/public/app/main/apps/chat/i18n/hi.json
index ce5403f..fb7200a 100644
--- a/public/app/main/apps/chat/i18n/hi.json
+++ b/public/app/main/apps/chat/i18n/hi.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "सà¤à¥à¤·à¤® à¤à¤°à¥à¤ बà¤à¤¨ à¤à¥à¤à¥à¤",
"FEEDBACKTITLE": "पà¥à¤°à¤¤à¤¿à¤à¥à¤°à¤¿à¤¯à¤¾ शà¥à¤°à¥à¤·à¤",
"TOOLTIP_SCREENRECORDING_OFF": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤ªà¤²à¤¬à¥à¤§ हà¥",
- "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥"
+ "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "सà¤à¤²à¤à¥à¤¨à¤ à¤à¥ बिना डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "DOWNLOAD_WITH_ATTACHMENTS": "à¤
नà¥à¤²à¤à¥à¤¨à¤à¥à¤ à¤à¥ साथ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "LASTMESSAGE": "à¤
à¤à¤¤à¤¿à¤® सà¤à¤¦à¥à¤¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/id.json b/public/app/main/apps/chat/i18n/id.json
index 2adcfab..58f47f7 100644
--- a/public/app/main/apps/chat/i18n/id.json
+++ b/public/app/main/apps/chat/i18n/id.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Aktifkan Tombol Kirim",
"FEEDBACKTITLE": "Judul Umpan Balik",
"TOOLTIP_SCREENRECORDING_OFF": "Rekaman Layar tersedia",
- "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung"
+ "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Unduh tanpa lampiran",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Unduh dengan lampiran",
+ "LASTMESSAGE": "Pesan Terakhir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/it.json b/public/app/main/apps/chat/i18n/it.json
index f6cd612..a1c91fe 100644
--- a/public/app/main/apps/chat/i18n/it.json
+++ b/public/app/main/apps/chat/i18n/it.json
@@ -442,6 +442,8 @@
"MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare se è abilitata la disposizione obbligatoria",
"ENABLESENDBUTTON": "Abilita pulsante Invia",
"TOOLTIP_SCREENRECORDING_OFF": "Registrazione dello schermo disponibile",
- "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso"
+ "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/ja.json b/public/app/main/apps/chat/i18n/ja.json
index cd09e2c..9c4dc8c 100644
--- a/public/app/main/apps/chat/i18n/ja.json
+++ b/public/app/main/apps/chat/i18n/ja.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "éä¿¡ãã¿ã³ãæå¹ã«ãã",
"FEEDBACKTITLE": "ãã£ã¼ãããã¯ã®ã¿ã¤ãã«",
"TOOLTIP_SCREENRECORDING_OFF": "å©ç¨å¯è½ãªã¹ã¯ãªã¼ã³é²ç»",
- "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ãªãã§ãã¦ã³ãã¼ã",
+ "DOWNLOAD_WITH_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ä»ãã§ãã¦ã³ãã¼ã",
+ "LASTMESSAGE": "æå¾ã®ã¡ãã»ã¼ã¸"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/ko.json b/public/app/main/apps/chat/i18n/ko.json
index 6b1e5e1..d21e551 100644
--- a/public/app/main/apps/chat/i18n/ko.json
+++ b/public/app/main/apps/chat/i18n/ko.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "ë³´ë´ê¸° ë²í¼ ì¬ì©",
"FEEDBACKTITLE": "í¼ëë°± ì 목",
"TOOLTIP_SCREENRECORDING_OFF": "ì¤í¬ë¦° ë
¹í ê°ë¥",
- "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤"
+ "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ì²¨ë¶ íì¼ìì´ ë¤ì´ë¡ë",
+ "DOWNLOAD_WITH_ATTACHMENTS": "ì²¨ë¶ íì¼ë¡ ë¤ì´ë¡ë",
+ "LASTMESSAGE": "ë§ì§ë§ ë©ìì§"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/lv.json b/public/app/main/apps/chat/i18n/lv.json
index 15b4097..2d0006a 100644
--- a/public/app/main/apps/chat/i18n/lv.json
+++ b/public/app/main/apps/chat/i18n/lv.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "IespÄjot pogu SÅ«tÄ«t",
"FEEDBACKTITLE": "Atsauksmju nosaukums",
"TOOLTIP_SCREENRECORDING_OFF": "EkrÄna ieraksts ir pieejams",
- "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana"
+ "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "LejupielÄdÄjiet bez pielikumiem",
+ "DOWNLOAD_WITH_ATTACHMENTS": "LejupielÄdÄjiet ar pielikumiem",
+ "LASTMESSAGE": "PÄdÄjÄ ziÅa"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/nl.json b/public/app/main/apps/chat/i18n/nl.json
index e413b96..8bbe48d 100644
--- a/public/app/main/apps/chat/i18n/nl.json
+++ b/public/app/main/apps/chat/i18n/nl.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Schakel de verzendknop in",
"FEEDBACKTITLE": "Feedbacktitel",
"TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar",
- "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig"
+ "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download zonder bijlagen",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download met bijlagen",
+ "LASTMESSAGE": "Laatste bericht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/no.json b/public/app/main/apps/chat/i18n/no.json
index eac1809..0a5efed 100644
--- a/public/app/main/apps/chat/i18n/no.json
+++ b/public/app/main/apps/chat/i18n/no.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Aktiver sendeknapp",
"FEEDBACKTITLE": "Tilbakemeldingstittel",
"TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Last ned uten vedlegg",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Last ned med vedlegg",
+ "LASTMESSAGE": "Siste melding"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/pl.json b/public/app/main/apps/chat/i18n/pl.json
index 7c2b602..8d9ea04 100644
--- a/public/app/main/apps/chat/i18n/pl.json
+++ b/public/app/main/apps/chat/i18n/pl.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "WÅÄ
cz przycisk wysyÅania",
"FEEDBACKTITLE": "TytuÅ opinii",
"TOOLTIP_SCREENRECORDING_OFF": "DostÄpne nagrywanie ekranu",
- "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu"
+ "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Pobierz bez zaÅÄ
czników",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Pobierz z zaÅÄ
cznikami",
+ "LASTMESSAGE": "Ostatnia wiadomoÅÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/pt-BR.json b/public/app/main/apps/chat/i18n/pt-BR.json
index 9c1e267..f064a68 100644
--- a/public/app/main/apps/chat/i18n/pt-BR.json
+++ b/public/app/main/apps/chat/i18n/pt-BR.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Ativar botão Enviar",
"FEEDBACKTITLE": "TÃtulo do Feedback",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/pt-PT.json b/public/app/main/apps/chat/i18n/pt-PT.json
index 6d3de90..cb4def8 100644
--- a/public/app/main/apps/chat/i18n/pt-PT.json
+++ b/public/app/main/apps/chat/i18n/pt-PT.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Ativar botão Enviar",
"FEEDBACKTITLE": "TÃtulo do Feedback",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/ru.json b/public/app/main/apps/chat/i18n/ru.json
index 812a8ef..2b34f28 100644
--- a/public/app/main/apps/chat/i18n/ru.json
+++ b/public/app/main/apps/chat/i18n/ru.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "ÐклÑÑиÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð¾ÑпÑавки",
"FEEDBACKTITLE": "Ðазвание оÑзÑва",
"TOOLTIP_SCREENRECORDING_OFF": "ÐапиÑÑ ÑкÑана доÑÑÑпна",
- "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана"
+ "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "СкаÑаÑÑ Ð±ÐµÐ· вложений",
+ "DOWNLOAD_WITH_ATTACHMENTS": "СкаÑаÑÑ Ñ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñми",
+ "LASTMESSAGE": "ÐоÑледнее ÑообÑение"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/sv.json b/public/app/main/apps/chat/i18n/sv.json
index 47d84e8..463d109 100644
--- a/public/app/main/apps/chat/i18n/sv.json
+++ b/public/app/main/apps/chat/i18n/sv.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Aktivera skicka-knappen",
"FEEDBACKTITLE": "Feedbacktitel",
"TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig",
- "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ladda ner utan bilagor",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Ladda ner med bilagor",
+ "LASTMESSAGE": "Senaste meddelandet"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/tr.json b/public/app/main/apps/chat/i18n/tr.json
index 3fb4781..e880867 100644
--- a/public/app/main/apps/chat/i18n/tr.json
+++ b/public/app/main/apps/chat/i18n/tr.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "Gönder DüÄmesini EtkinleÅtir",
"FEEDBACKTITLE": "Geribildirim BaÅlıÄı",
"TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut",
- "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor"
+ "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ekler olmadan indir",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Eklerle indir",
+ "LASTMESSAGE": "Son Mesaj"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/zh-CN.json b/public/app/main/apps/chat/i18n/zh-CN.json
index d2b33c9..17992c5 100644
--- a/public/app/main/apps/chat/i18n/zh-CN.json
+++ b/public/app/main/apps/chat/i18n/zh-CN.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "å¯ç¨åéæé®",
"FEEDBACKTITLE": "åé¦æ é¢",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹å½åå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è½½æ é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è½½",
+ "LASTMESSAGE": "æåçè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/chat/i18n/zh-TW.json b/public/app/main/apps/chat/i18n/zh-TW.json
index 766a025..dd2a362 100644
--- a/public/app/main/apps/chat/i18n/zh-TW.json
+++ b/public/app/main/apps/chat/i18n/zh-TW.json
@@ -441,6 +441,9 @@
"ENABLESENDBUTTON": "åç¨ç¼éæé",
"FEEDBACKTITLE": "åé¥æ¨é¡",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹éåå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è¼ç¡é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è¼",
+ "LASTMESSAGE": "æå¾çè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/ar.json b/public/app/main/apps/dashboards/i18n/ar.json
index e0dfdb7..64a1de8 100644
--- a/public/app/main/apps/dashboards/i18n/ar.json
+++ b/public/app/main/apps/dashboards/i18n/ar.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "ابدا ب",
"VALUE": "اÙÙÙÙ
Ø©",
"VALUES": "اÙÙÙÙ
",
- "VALUE_RANGE_CHECK": "Ùجب أ٠تÙÙ٠اÙÙÙÙ
Ø© Ø£Ùبر Ù
Ù"
+ "VALUE_RANGE_CHECK": "Ùجب أ٠تÙÙ٠اÙÙÙÙ
Ø© Ø£Ùبر Ù
Ù",
+ "CHOOSE": "أختر"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/da.json b/public/app/main/apps/dashboards/i18n/da.json
index 0a1293d..77513a5 100644
--- a/public/app/main/apps/dashboards/i18n/da.json
+++ b/public/app/main/apps/dashboards/i18n/da.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Begynder med",
"VALUE": "Værdi",
"VALUES": "Værdier",
- "VALUE_RANGE_CHECK": "Værdien skal være større end"
+ "VALUE_RANGE_CHECK": "Værdien skal være større end",
+ "CHOOSE": "Vælge"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/de.json b/public/app/main/apps/dashboards/i18n/de.json
index 774253c..cfdefff 100644
--- a/public/app/main/apps/dashboards/i18n/de.json
+++ b/public/app/main/apps/dashboards/i18n/de.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Beginnt mit",
"VALUE": "Wert",
"VALUES": "Werte",
- "VALUE_RANGE_CHECK": "Wert muss gröÃer sein als"
+ "VALUE_RANGE_CHECK": "Wert muss gröÃer sein als",
+ "CHOOSE": "Wählen"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/en.json b/public/app/main/apps/dashboards/i18n/en.json
index 7163503..f695a6a 100644
--- a/public/app/main/apps/dashboards/i18n/en.json
+++ b/public/app/main/apps/dashboards/i18n/en.json
@@ -543,4 +543,4 @@
"ENABLED": "Enabled",
"DISABLED": "Disabled"
}
-}
+}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/es.json b/public/app/main/apps/dashboards/i18n/es.json
index e17120c..24a9aaa 100644
--- a/public/app/main/apps/dashboards/i18n/es.json
+++ b/public/app/main/apps/dashboards/i18n/es.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Comienza con",
"VALUE": "Valor",
"VALUES": "Valores",
- "VALUE_RANGE_CHECK": "El valor debe ser mayor que"
+ "VALUE_RANGE_CHECK": "El valor debe ser mayor que",
+ "CHOOSE": "Escoger"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/fa.json b/public/app/main/apps/dashboards/i18n/fa.json
index fcf157c..b27dc2b 100644
--- a/public/app/main/apps/dashboards/i18n/fa.json
+++ b/public/app/main/apps/dashboards/i18n/fa.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "شرÙع Ù
Û Ø´Ùد با",
"VALUE": "Ù
Ùدار",
"VALUES": "ارزش ÙاÛ",
- "VALUE_RANGE_CHECK": "ارزش باÛد بÛشتر از"
+ "VALUE_RANGE_CHECK": "ارزش باÛد بÛشتر از",
+ "CHOOSE": "اÙتخاب Ú©ÙÛد"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/fi.json b/public/app/main/apps/dashboards/i18n/fi.json
index 590b640..f5c74e6 100644
--- a/public/app/main/apps/dashboards/i18n/fi.json
+++ b/public/app/main/apps/dashboards/i18n/fi.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Alkaa",
"VALUE": "Arvo",
"VALUES": "arvot",
- "VALUE_RANGE_CHECK": "Arvon on oltava suurempi kuin"
+ "VALUE_RANGE_CHECK": "Arvon on oltava suurempi kuin",
+ "CHOOSE": "Valita"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/fr.json b/public/app/main/apps/dashboards/i18n/fr.json
index 96edf1e..c8c6ff7 100644
--- a/public/app/main/apps/dashboards/i18n/fr.json
+++ b/public/app/main/apps/dashboards/i18n/fr.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Commence avec",
"VALUE": "Valeur",
"VALUES": "Valeurs",
- "VALUE_RANGE_CHECK": "La valeur doit être supérieure à "
+ "VALUE_RANGE_CHECK": "La valeur doit être supérieure à ",
+ "CHOOSE": "Choisir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/he.json b/public/app/main/apps/dashboards/i18n/he.json
index 146ba2f..86c86ca 100644
--- a/public/app/main/apps/dashboards/i18n/he.json
+++ b/public/app/main/apps/dashboards/i18n/he.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "×ת××× ×¢×",
"VALUE": "ער×",
"VALUES": "ער×××",
- "VALUE_RANGE_CHECK": "××¢×¨× ×××× ××××ת ×××× ×-"
+ "VALUE_RANGE_CHECK": "××¢×¨× ×××× ××××ת ×××× ×-",
+ "CHOOSE": "××ר"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/hi.json b/public/app/main/apps/dashboards/i18n/hi.json
index 0d807f8..a0adb36 100644
--- a/public/app/main/apps/dashboards/i18n/hi.json
+++ b/public/app/main/apps/dashboards/i18n/hi.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "à¤à¤¸à¤à¥ साथ à¤à¤°à¤à¤ हà¥à¤¤à¤¾ हà¥",
"VALUE": "मà¥à¤²à¥à¤¯",
"VALUES": "मान",
- "VALUE_RANGE_CHECK": "मान सॠà¤
धिठहà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤"
+ "VALUE_RANGE_CHECK": "मान सॠà¤
धिठहà¥à¤¨à¤¾ à¤à¤¾à¤¹à¤¿à¤",
+ "CHOOSE": "à¤à¥à¤¨à¥à¤"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/id.json b/public/app/main/apps/dashboards/i18n/id.json
index bd80a1b..6bbe666 100644
--- a/public/app/main/apps/dashboards/i18n/id.json
+++ b/public/app/main/apps/dashboards/i18n/id.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Dimulai dengan",
"VALUE": "Nilai",
"VALUES": "Nilai-nilai",
- "VALUE_RANGE_CHECK": "Nilai harus lebih besar dari"
+ "VALUE_RANGE_CHECK": "Nilai harus lebih besar dari",
+ "CHOOSE": "Memilih"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/ja.json b/public/app/main/apps/dashboards/i18n/ja.json
index 6c792fd..7fae0ee 100644
--- a/public/app/main/apps/dashboards/i18n/ja.json
+++ b/public/app/main/apps/dashboards/i18n/ja.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "ã§å§ã¾ã",
"VALUE": "å¤",
"VALUES": "価å¤è¦³",
- "VALUE_RANGE_CHECK": "å¤ã¯ãã大ããå¿
è¦ãããã¾ã"
+ "VALUE_RANGE_CHECK": "å¤ã¯ãã大ããå¿
è¦ãããã¾ã",
+ "CHOOSE": "é¸ã¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/ko.json b/public/app/main/apps/dashboards/i18n/ko.json
index 8694e18..d69ce53 100644
--- a/public/app/main/apps/dashboards/i18n/ko.json
+++ b/public/app/main/apps/dashboards/i18n/ko.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "ë¡ ìì",
"VALUE": "ê°",
"VALUES": "ê°ì¹",
- "VALUE_RANGE_CHECK": "ê°ìë³´ë¤ ì»¤ì¼í©ëë¤"
+ "VALUE_RANGE_CHECK": "ê°ìë³´ë¤ ì»¤ì¼í©ëë¤",
+ "CHOOSE": "ê³ ë¥´ë¤"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/lv.json b/public/app/main/apps/dashboards/i18n/lv.json
index 43feb61..dc092ac 100644
--- a/public/app/main/apps/dashboards/i18n/lv.json
+++ b/public/app/main/apps/dashboards/i18n/lv.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "SÄk ar",
"VALUE": "VÄrtÄ«ba",
"VALUES": "VÄrtÄ«bas",
- "VALUE_RANGE_CHECK": "VÄrtÄ«bai jÄbÅ«t lielÄkai par"
+ "VALUE_RANGE_CHECK": "VÄrtÄ«bai jÄbÅ«t lielÄkai par",
+ "CHOOSE": "IzvÄlieties"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/nl.json b/public/app/main/apps/dashboards/i18n/nl.json
index 03a140a..e95b8dd 100644
--- a/public/app/main/apps/dashboards/i18n/nl.json
+++ b/public/app/main/apps/dashboards/i18n/nl.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Begint met",
"VALUE": "Waarde",
"VALUES": "Waarden",
- "VALUE_RANGE_CHECK": "Waarde moet groter zijn dan"
+ "VALUE_RANGE_CHECK": "Waarde moet groter zijn dan",
+ "CHOOSE": "Kiezen"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/no.json b/public/app/main/apps/dashboards/i18n/no.json
index 8504361..7f8813a 100644
--- a/public/app/main/apps/dashboards/i18n/no.json
+++ b/public/app/main/apps/dashboards/i18n/no.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Begynner med",
"VALUE": "Verdi",
"VALUES": "verdier",
- "VALUE_RANGE_CHECK": "Verdien må være større enn"
+ "VALUE_RANGE_CHECK": "Verdien må være større enn",
+ "CHOOSE": "Velge"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/pl.json b/public/app/main/apps/dashboards/i18n/pl.json
index 88998dd..59a0b37 100644
--- a/public/app/main/apps/dashboards/i18n/pl.json
+++ b/public/app/main/apps/dashboards/i18n/pl.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "ZaczynaÄ z",
"VALUE": "WartoÅÄ",
"VALUES": "WartoÅci",
- "VALUE_RANGE_CHECK": "WartoÅÄ musi byÄ wiÄksza niż"
+ "VALUE_RANGE_CHECK": "WartoÅÄ musi byÄ wiÄksza niż",
+ "CHOOSE": "WybieraÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/pt-BR.json b/public/app/main/apps/dashboards/i18n/pt-BR.json
index 6546017..7591117 100644
--- a/public/app/main/apps/dashboards/i18n/pt-BR.json
+++ b/public/app/main/apps/dashboards/i18n/pt-BR.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Começa com",
"VALUE": "Valor",
"VALUES": "Valores",
- "VALUE_RANGE_CHECK": "O valor deve ser maior que"
+ "VALUE_RANGE_CHECK": "O valor deve ser maior que",
+ "CHOOSE": "Escolher"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/pt-PT.json b/public/app/main/apps/dashboards/i18n/pt-PT.json
index 8163485..e94035f 100644
--- a/public/app/main/apps/dashboards/i18n/pt-PT.json
+++ b/public/app/main/apps/dashboards/i18n/pt-PT.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Começa com",
"VALUE": "Valor",
"VALUES": "Valores",
- "VALUE_RANGE_CHECK": "O valor deve ser maior que"
+ "VALUE_RANGE_CHECK": "O valor deve ser maior que",
+ "CHOOSE": "Escolher"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/ru.json b/public/app/main/apps/dashboards/i18n/ru.json
index b0a32a7..c9410b1 100644
--- a/public/app/main/apps/dashboards/i18n/ru.json
+++ b/public/app/main/apps/dashboards/i18n/ru.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "ÐаÑинаеÑÑÑ Ñ",
"VALUE": "ÐнаÑение",
"VALUES": "ЦенноÑÑи",
- "VALUE_RANGE_CHECK": "ÐнаÑение должно бÑÑÑ Ð±Ð¾Ð»ÑÑе Ñем"
+ "VALUE_RANGE_CHECK": "ÐнаÑение должно бÑÑÑ Ð±Ð¾Ð»ÑÑе Ñем",
+ "CHOOSE": "вÑбиÑаÑÑ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/sv.json b/public/app/main/apps/dashboards/i18n/sv.json
index 13d5e77..78a0095 100644
--- a/public/app/main/apps/dashboards/i18n/sv.json
+++ b/public/app/main/apps/dashboards/i18n/sv.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Börjar med",
"VALUE": "Värde",
"VALUES": "värden",
- "VALUE_RANGE_CHECK": "Värdet måste vara större än"
+ "VALUE_RANGE_CHECK": "Värdet måste vara större än",
+ "CHOOSE": "Välja"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/tr.json b/public/app/main/apps/dashboards/i18n/tr.json
index 8b4ed3a..c64914a 100644
--- a/public/app/main/apps/dashboards/i18n/tr.json
+++ b/public/app/main/apps/dashboards/i18n/tr.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "Ä°le baÅlar",
"VALUE": "deÄer",
"VALUES": "DeÄerler",
- "VALUE_RANGE_CHECK": "DeÄer Åundan büyük olmalıdır:"
+ "VALUE_RANGE_CHECK": "DeÄer Åundan büyük olmalıdır:",
+ "CHOOSE": "Seç"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/zh-CN.json b/public/app/main/apps/dashboards/i18n/zh-CN.json
index 1cbd58f..dfcf76c 100644
--- a/public/app/main/apps/dashboards/i18n/zh-CN.json
+++ b/public/app/main/apps/dashboards/i18n/zh-CN.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "以ããå¼å§",
"VALUE": "å¼",
"VALUES": "ä»·å¼è§",
- "VALUE_RANGE_CHECK": "å¼å¿
须大äº"
+ "VALUE_RANGE_CHECK": "å¼å¿
须大äº",
+ "CHOOSE": "éæ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/dashboards/i18n/zh-TW.json b/public/app/main/apps/dashboards/i18n/zh-TW.json
index c3a1b15..53e533b 100644
--- a/public/app/main/apps/dashboards/i18n/zh-TW.json
+++ b/public/app/main/apps/dashboards/i18n/zh-TW.json
@@ -540,6 +540,7 @@
"STARTS_WITH": "以ããéå§",
"VALUE": "å¼",
"VALUES": "å¹å¼è§",
- "VALUE_RANGE_CHECK": "å¼å¿
é 大æ¼"
+ "VALUE_RANGE_CHECK": "å¼å¿
é 大æ¼",
+ "CHOOSE": "é¸æ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/ar.json b/public/app/main/apps/fax/i18n/ar.json
index 80be4d9..e85a7de 100644
--- a/public/app/main/apps/fax/i18n/ar.json
+++ b/public/app/main/apps/fax/i18n/ar.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "اÙتصر٠اÙØ¥ÙزاÙ
Ù",
"MANDATORYDISPOSITIONPAUSEID": "ÙÙÙØ© اÙÙضع عÙدÙ
ا تÙÙÙ Ù٠تصر٠إÙزاÙ
Ù",
"TOOLTIP_SCREENRECORDING_OFF": "تسجÙ٠اÙشاشة اÙÙ
تاØØ©",
- "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
"
+ "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "تØÙ
Ù٠بدÙÙ Ù
رÙÙات",
+ "DOWNLOAD_WITH_ATTACHMENTS": "تÙزÙ٠باÙÙ
رÙÙات",
+ "LASTMESSAGE": "اخر رساÙØ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/da.json b/public/app/main/apps/fax/i18n/da.json
index fa865f4..bae7134 100644
--- a/public/app/main/apps/fax/i18n/da.json
+++ b/public/app/main/apps/fax/i18n/da.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Obligatorisk disposition",
"MANDATORYDISPOSITIONPAUSEID": "Stop status, når du er i obligatorisk disposition",
"TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download uden vedhæftede filer",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download med vedhæftede filer",
+ "LASTMESSAGE": "Sidste besked"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/de.json b/public/app/main/apps/fax/i18n/de.json
index d582aaf..8b55d8c 100644
--- a/public/app/main/apps/fax/i18n/de.json
+++ b/public/app/main/apps/fax/i18n/de.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Zwingende Disposition",
"MANDATORYDISPOSITIONPAUSEID": "Status pausieren, wenn die Disposition obligatorisch ist",
"TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar",
- "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft"
+ "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download ohne Anhänge",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Mit Anhängen herunterladen",
+ "LASTMESSAGE": "Letzte Nachricht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/es.json b/public/app/main/apps/fax/i18n/es.json
index a0b4988..ef29911 100644
--- a/public/app/main/apps/fax/i18n/es.json
+++ b/public/app/main/apps/fax/i18n/es.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Cierre obligatorio",
"MANDATORYDISPOSITIONPAUSEID": "Estado de pausa cuando está un cierre obligatorio",
"TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso"
+ "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Descargar sin archivos adjuntos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Descargar con archivos adjuntos",
+ "LASTMESSAGE": "Ultimo mensaje"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/fa.json b/public/app/main/apps/fax/i18n/fa.json
index ecfc98d..e3b62a6 100644
--- a/public/app/main/apps/fax/i18n/fa.json
+++ b/public/app/main/apps/fax/i18n/fa.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Ùضع اجبارÛ",
"MANDATORYDISPOSITIONPAUSEID": "ÙضعÛت Ù
Ú©Ø« در ØاÙت اجبارÛ",
"TOOLTIP_SCREENRECORDING_OFF": "ضبط صÙØ٠در دسترس است",
- "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است"
+ "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "بارگÛØ±Û Ø¨Ø¯ÙÙ Ù¾ÛÙست",
+ "DOWNLOAD_WITH_ATTACHMENTS": "با Ù¾ÛÙست Ùا بارگÛØ±Û Ú©ÙÛد",
+ "LASTMESSAGE": "آخرÛÙ Ù¾ÛاÙ
"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/fi.json b/public/app/main/apps/fax/i18n/fi.json
index 7726adc..f2a0667 100644
--- a/public/app/main/apps/fax/i18n/fi.json
+++ b/public/app/main/apps/fax/i18n/fi.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Pakollinen sijoittaminen",
"MANDATORYDISPOSITIONPAUSEID": "Keskeytä tila pakollisessa asennuksessa",
"TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla",
- "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä"
+ "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lataa ilman liitteitä",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Lataa liitteineen",
+ "LASTMESSAGE": "Viimeinen viesti"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/fr.json b/public/app/main/apps/fax/i18n/fr.json
index d0ee194..42b5889 100644
--- a/public/app/main/apps/fax/i18n/fr.json
+++ b/public/app/main/apps/fax/i18n/fr.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Disposition obligatoire",
"MANDATORYDISPOSITIONPAUSEID": "Statut de pause en cas de disposition obligatoire",
"TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours"
+ "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Télécharger sans pièces jointes",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Télécharger avec pièces jointes",
+ "LASTMESSAGE": "Dernier message"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/he.json b/public/app/main/apps/fax/i18n/he.json
index 00999bd..6f9e2e4 100644
--- a/public/app/main/apps/fax/i18n/he.json
+++ b/public/app/main/apps/fax/i18n/he.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "ס××××",
"MANDATORYDISPOSITIONPAUSEID": "×ש×× ×¡×××ס ×ס××××",
"TOOLTIP_SCREENRECORDING_OFF": "×ק××ת ××¡× ×××× ×",
- "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת"
+ "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "×××¨× ××× ×§×צ×× ×צ×רפ××",
+ "DOWNLOAD_WITH_ATTACHMENTS": "×××¨× ×¢× ×§×צ×× ×צ×רפ××",
+ "LASTMESSAGE": "××××¢× ××ר×× ×"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/hi.json b/public/app/main/apps/fax/i18n/hi.json
index cb5adbf..4772c4b 100644
--- a/public/app/main/apps/fax/i18n/hi.json
+++ b/public/app/main/apps/fax/i18n/hi.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "à¤
निवारà¥à¤¯ सà¥à¤µà¤à¤¾à¤µ",
"MANDATORYDISPOSITIONPAUSEID": "à¤
निवारà¥à¤¯ सà¥à¤¥à¤¿à¤¤à¤¿ मà¥à¤ सà¥à¤¥à¤¿à¤¤à¤¿ à¤à¥ रà¥à¤à¥à¤",
"TOOLTIP_SCREENRECORDING_OFF": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤ªà¤²à¤¬à¥à¤§ हà¥",
- "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥"
+ "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "सà¤à¤²à¤à¥à¤¨à¤ à¤à¥ बिना डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "DOWNLOAD_WITH_ATTACHMENTS": "à¤
नà¥à¤²à¤à¥à¤¨à¤à¥à¤ à¤à¥ साथ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "LASTMESSAGE": "à¤
à¤à¤¤à¤¿à¤® सà¤à¤¦à¥à¤¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/id.json b/public/app/main/apps/fax/i18n/id.json
index 3b30df8..73eaa47 100644
--- a/public/app/main/apps/fax/i18n/id.json
+++ b/public/app/main/apps/fax/i18n/id.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Disposisi wajib",
"MANDATORYDISPOSITIONPAUSEID": "Jeda status saat dalam disposisi wajib",
"TOOLTIP_SCREENRECORDING_OFF": "Rekaman Layar tersedia",
- "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung"
+ "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Unduh tanpa lampiran",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Unduh dengan lampiran",
+ "LASTMESSAGE": "Pesan Terakhir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/it.json b/public/app/main/apps/fax/i18n/it.json
index f8b1055..947884a 100644
--- a/public/app/main/apps/fax/i18n/it.json
+++ b/public/app/main/apps/fax/i18n/it.json
@@ -254,6 +254,8 @@
"MANDATORYDISPOSITION": "Disposizione obbligatoria",
"MANDATORYDISPOSITIONPAUSEID": "Metti in pausa lo stato quando è nella disposizione obbligatoria",
"TOOLTIP_SCREENRECORDING_OFF": "Registrazione dello schermo disponibile",
- "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso"
+ "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/ja.json b/public/app/main/apps/fax/i18n/ja.json
index 95d1ace..883719c 100644
--- a/public/app/main/apps/fax/i18n/ja.json
+++ b/public/app/main/apps/fax/i18n/ja.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "å¼·å¶å¦å",
"MANDATORYDISPOSITIONPAUSEID": "å¼·å¶å¦åã®å ´åã®ä¸æåæ¢ã¹ãã¼ã¿ã¹",
"TOOLTIP_SCREENRECORDING_OFF": "å©ç¨å¯è½ãªã¹ã¯ãªã¼ã³é²ç»",
- "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ãªãã§ãã¦ã³ãã¼ã",
+ "DOWNLOAD_WITH_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ä»ãã§ãã¦ã³ãã¼ã",
+ "LASTMESSAGE": "æå¾ã®ã¡ãã»ã¼ã¸"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/ko.json b/public/app/main/apps/fax/i18n/ko.json
index bd72ac5..6c01d46 100644
--- a/public/app/main/apps/fax/i18n/ko.json
+++ b/public/app/main/apps/fax/i18n/ko.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "ì무 ì²ë¶",
"MANDATORYDISPOSITIONPAUSEID": "ê°ì ì²ë¶ì ì¼ì ì¤ì§ ìí",
"TOOLTIP_SCREENRECORDING_OFF": "ì¤í¬ë¦° ë
¹í ê°ë¥",
- "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤"
+ "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ì²¨ë¶ íì¼ìì´ ë¤ì´ë¡ë",
+ "DOWNLOAD_WITH_ATTACHMENTS": "ì²¨ë¶ íì¼ë¡ ë¤ì´ë¡ë",
+ "LASTMESSAGE": "ë§ì§ë§ ë©ìì§"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/lv.json b/public/app/main/apps/fax/i18n/lv.json
index 6c42c1c..9ace9f9 100644
--- a/public/app/main/apps/fax/i18n/lv.json
+++ b/public/app/main/apps/fax/i18n/lv.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "ObligÄta rÄ«cÄ«ba",
"MANDATORYDISPOSITIONPAUSEID": "PauzÄt statusu, kad ir obligÄta rÄ«cÄ«ba",
"TOOLTIP_SCREENRECORDING_OFF": "EkrÄna ieraksts ir pieejams",
- "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana"
+ "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "LejupielÄdÄjiet bez pielikumiem",
+ "DOWNLOAD_WITH_ATTACHMENTS": "LejupielÄdÄjiet ar pielikumiem",
+ "LASTMESSAGE": "PÄdÄjÄ ziÅa"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/nl.json b/public/app/main/apps/fax/i18n/nl.json
index 25a0392..4798381 100644
--- a/public/app/main/apps/fax/i18n/nl.json
+++ b/public/app/main/apps/fax/i18n/nl.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Verplichte regeling",
"MANDATORYDISPOSITIONPAUSEID": "Pauzestatus wanneer in verplichte opstelling",
"TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar",
- "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig"
+ "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download zonder bijlagen",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download met bijlagen",
+ "LASTMESSAGE": "Laatste bericht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/no.json b/public/app/main/apps/fax/i18n/no.json
index 586d6ae..dffac2f 100644
--- a/public/app/main/apps/fax/i18n/no.json
+++ b/public/app/main/apps/fax/i18n/no.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Obligatorisk disposisjon",
"MANDATORYDISPOSITIONPAUSEID": "Pausestatus når du er i obligatorisk disposisjon",
"TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Last ned uten vedlegg",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Last ned med vedlegg",
+ "LASTMESSAGE": "Siste melding"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/pl.json b/public/app/main/apps/fax/i18n/pl.json
index 8a3d1c8..30f8441 100644
--- a/public/app/main/apps/fax/i18n/pl.json
+++ b/public/app/main/apps/fax/i18n/pl.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Dyspozycja obowiÄ
zkowa",
"MANDATORYDISPOSITIONPAUSEID": "Zatrzymaj status, gdy jesteÅ w obowiÄ
zkowej dyspozycji",
"TOOLTIP_SCREENRECORDING_OFF": "DostÄpne nagrywanie ekranu",
- "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu"
+ "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Pobierz bez zaÅÄ
czników",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Pobierz z zaÅÄ
cznikami",
+ "LASTMESSAGE": "Ostatnia wiadomoÅÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/pt-BR.json b/public/app/main/apps/fax/i18n/pt-BR.json
index 5cb002c..75ea785 100644
--- a/public/app/main/apps/fax/i18n/pt-BR.json
+++ b/public/app/main/apps/fax/i18n/pt-BR.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Disposição obrigatória",
"MANDATORYDISPOSITIONPAUSEID": "Status de pausa quando em disposição obrigatória",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/pt-PT.json b/public/app/main/apps/fax/i18n/pt-PT.json
index 524865a..b2f955f 100644
--- a/public/app/main/apps/fax/i18n/pt-PT.json
+++ b/public/app/main/apps/fax/i18n/pt-PT.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Disposição obrigatória",
"MANDATORYDISPOSITIONPAUSEID": "Status de pausa quando em disposição obrigatória",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/ru.json b/public/app/main/apps/fax/i18n/ru.json
index 687f844..5750f27 100644
--- a/public/app/main/apps/fax/i18n/ru.json
+++ b/public/app/main/apps/fax/i18n/ru.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "ÐбÑзаÑелÑное ÑаÑпоÑÑжение",
"MANDATORYDISPOSITIONPAUSEID": "СоÑÑоÑние паÑзÑ, когда в обÑзаÑелÑном поÑÑдке",
"TOOLTIP_SCREENRECORDING_OFF": "ÐапиÑÑ ÑкÑана доÑÑÑпна",
- "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана"
+ "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "СкаÑаÑÑ Ð±ÐµÐ· вложений",
+ "DOWNLOAD_WITH_ATTACHMENTS": "СкаÑаÑÑ Ñ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñми",
+ "LASTMESSAGE": "ÐоÑледнее ÑообÑение"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/sv.json b/public/app/main/apps/fax/i18n/sv.json
index 52f2d92..de26a6d 100644
--- a/public/app/main/apps/fax/i18n/sv.json
+++ b/public/app/main/apps/fax/i18n/sv.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Obligatorisk kategorisering",
"MANDATORYDISPOSITIONPAUSEID": "Pausstatus när du är i obligatorisk kategorisering",
"TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig",
- "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ladda ner utan bilagor",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Ladda ner med bilagor",
+ "LASTMESSAGE": "Senaste meddelandet"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/tr.json b/public/app/main/apps/fax/i18n/tr.json
index aa14efd..1f1ccc2 100644
--- a/public/app/main/apps/fax/i18n/tr.json
+++ b/public/app/main/apps/fax/i18n/tr.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "Zorunlu düzenleme",
"MANDATORYDISPOSITIONPAUSEID": "Zorunlu görevde iken durumu duraklat",
"TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut",
- "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor"
+ "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ekler olmadan indir",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Eklerle indir",
+ "LASTMESSAGE": "Son Mesaj"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/zh-CN.json b/public/app/main/apps/fax/i18n/zh-CN.json
index 9b3333b..e183e2d 100644
--- a/public/app/main/apps/fax/i18n/zh-CN.json
+++ b/public/app/main/apps/fax/i18n/zh-CN.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "强å¶æ§å¤å",
"MANDATORYDISPOSITIONPAUSEID": "å¨å¼ºå¶å¤ç½®æ¶æåç¶æ",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹å½åå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è½½æ é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è½½",
+ "LASTMESSAGE": "æåçè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/fax/i18n/zh-TW.json b/public/app/main/apps/fax/i18n/zh-TW.json
index b334f29..0af842a 100644
--- a/public/app/main/apps/fax/i18n/zh-TW.json
+++ b/public/app/main/apps/fax/i18n/zh-TW.json
@@ -253,6 +253,9 @@
"MANDATORYDISPOSITION": "å¼·å¶æ§èå",
"MANDATORYDISPOSITIONPAUSEID": "å¨å¼·å¶èç½®ææ«åçæ
",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹éåå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è¼ç¡é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è¼",
+ "LASTMESSAGE": "æå¾çè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/ar.json b/public/app/main/apps/mail/i18n/ar.json
index eb90abd..75ecef9 100644
--- a/public/app/main/apps/mail/i18n/ar.json
+++ b/public/app/main/apps/mail/i18n/ar.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "تÙÙÙ Ù
ؤÙتÙا ÙÙاستخداÙ
إذا تÙ
تÙ
ÙÙ٠اÙتخÙص اÙØ¥ÙزاÙ
Ù",
"ADVANCED": "اÙÙ
تÙدÙ
Ø©",
"TOOLTIP_SCREENRECORDING_OFF": "تسجÙ٠اÙشاشة اÙÙ
تاØØ©",
- "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
"
+ "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "تØÙ
Ù٠بدÙÙ Ù
رÙÙ",
+ "DOWNLOAD_WITH_ATTACHMENT": "تÙزÙ٠باÙÙ
رÙÙ",
+ "LASTMESSAGE": "اخر رساÙØ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/da.json b/public/app/main/apps/mail/i18n/da.json
index b7706b6..b2cea3c 100644
--- a/public/app/main/apps/mail/i18n/da.json
+++ b/public/app/main/apps/mail/i18n/da.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Brug pause, hvis obligatorisk disposition er aktiveret",
"ADVANCED": "Fremskreden",
"TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download uden vedhæftet fil",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download med vedhæftet fil",
+ "LASTMESSAGE": "Sidste besked"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/de.json b/public/app/main/apps/mail/i18n/de.json
index 9fc23a5..cfb4897 100644
--- a/public/app/main/apps/mail/i18n/de.json
+++ b/public/app/main/apps/mail/i18n/de.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pause zur Verwendung, wenn die obligatorische Disposition aktiviert ist",
"ADVANCED": "Fortgeschritten",
"TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar",
- "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft"
+ "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ohne Anhang herunterladen",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download mit Anhang",
+ "LASTMESSAGE": "Letzte Nachricht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/en.json b/public/app/main/apps/mail/i18n/en.json
index c157f0c..417df2f 100644
--- a/public/app/main/apps/mail/i18n/en.json
+++ b/public/app/main/apps/mail/i18n/en.json
@@ -294,7 +294,7 @@
"IMAP_PORT": "IMAP Port",
"CONFIRM_PASSWORD": "Confirm Password",
"SELECT_STATUS": "Select Status",
- "OPENED": "Opened",
+ "OPENED": "Open",
"CLOSED": "Closed",
"ALL": "All",
"SELECT_ACCOUNT": "Select Account",
diff --git a/public/app/main/apps/mail/i18n/es.json b/public/app/main/apps/mail/i18n/es.json
index 14ab061..85d667a 100644
--- a/public/app/main/apps/mail/i18n/es.json
+++ b/public/app/main/apps/mail/i18n/es.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pausa a usar si el cierre obligatorio está habilitado",
"ADVANCED": "Avanzado",
"TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso"
+ "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Descargar sin adjuntar",
+ "DOWNLOAD_WITH_ATTACHMENT": "Descargar con archivo adjunto",
+ "LASTMESSAGE": "Ultimo mensaje"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/fa.json b/public/app/main/apps/mail/i18n/fa.json
index 2bb8280..82c6b42 100644
--- a/public/app/main/apps/mail/i18n/fa.json
+++ b/public/app/main/apps/mail/i18n/fa.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "در صÙرت Ùعا٠بÙد٠Ùضع Ø§Ø¬Ø¨Ø§Ø±Û Ø Ù
Ú©Ø« Ú©ÙÛد",
"ADVANCED": "Ù¾ÛشرÙتÙ",
"TOOLTIP_SCREENRECORDING_OFF": "ضبط صÙØ٠در دسترس است",
- "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است"
+ "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "بارگÛØ±Û Ø¨Ø¯ÙÙ Ù¾ÛÙست",
+ "DOWNLOAD_WITH_ATTACHMENT": "با Ù¾ÛÙست بارگÛØ±Û Ú©ÙÛد",
+ "LASTMESSAGE": "آخرÛÙ Ù¾ÛاÙ
"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/fi.json b/public/app/main/apps/mail/i18n/fi.json
index c6cb245..5194993 100644
--- a/public/app/main/apps/mail/i18n/fi.json
+++ b/public/app/main/apps/mail/i18n/fi.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, jos pakollinen sijoittaminen on käytössä",
"ADVANCED": "Pitkälle kehittynyt",
"TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla",
- "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä"
+ "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Lataa ilman liitetiedostoja",
+ "DOWNLOAD_WITH_ATTACHMENT": "Lataa liitteenä",
+ "LASTMESSAGE": "Viimeinen viesti"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/fr.json b/public/app/main/apps/mail/i18n/fr.json
index d14fd82..8253d31 100644
--- a/public/app/main/apps/mail/i18n/fr.json
+++ b/public/app/main/apps/mail/i18n/fr.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pause à utiliser si la disposition obligatoire est activée",
"ADVANCED": "Avancée",
"TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours"
+ "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Télécharger sans pièce jointe",
+ "DOWNLOAD_WITH_ATTACHMENT": "Télécharger avec pièce jointe",
+ "LASTMESSAGE": "Dernier message"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/he.json b/public/app/main/apps/mail/i18n/he.json
index a183cd5..af943ff 100644
--- a/public/app/main/apps/mail/i18n/he.json
+++ b/public/app/main/apps/mail/i18n/he.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "×ש×× ×©×××ש ×ש×ס×××× ××פע×",
"ADVANCED": "×תק××",
"TOOLTIP_SCREENRECORDING_OFF": "×ק××ת ××¡× ×××× ×",
- "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת"
+ "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "×××¨× ××× ×§×××¥ ×צ×רף",
+ "DOWNLOAD_WITH_ATTACHMENT": "×××¨× ×¢× ×§×××¥ ×צ×רף",
+ "LASTMESSAGE": "××××¢× ××ר×× ×"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/hi.json b/public/app/main/apps/mail/i18n/hi.json
index 7f74189..fac3da6 100644
--- a/public/app/main/apps/mail/i18n/hi.json
+++ b/public/app/main/apps/mail/i18n/hi.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "यदि à¤
निवारà¥à¤¯ सà¥à¤µà¤à¤¾à¤µ सà¤à¥à¤·à¤® हà¥, तॠà¤à¤ªà¤¯à¥à¤ à¤à¤°à¤¨à¥ à¤à¥ लिठरà¥à¤à¥à¤",
"ADVANCED": "à¤à¤¨à¥à¤¨à¤¤",
"TOOLTIP_SCREENRECORDING_OFF": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤ªà¤²à¤¬à¥à¤§ हà¥",
- "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥"
+ "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "à¤
नà¥à¤²à¤à¥à¤¨à¤ à¤à¥ बिना डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "DOWNLOAD_WITH_ATTACHMENT": "à¤
नà¥à¤²à¤à¥à¤¨à¤ à¤à¥ साथ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "LASTMESSAGE": "à¤
à¤à¤¤à¤¿à¤® सà¤à¤¦à¥à¤¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/id.json b/public/app/main/apps/mail/i18n/id.json
index c582c43..052853d 100644
--- a/public/app/main/apps/mail/i18n/id.json
+++ b/public/app/main/apps/mail/i18n/id.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan jika disposisi wajib diaktifkan",
"ADVANCED": "Maju",
"TOOLTIP_SCREENRECORDING_OFF": "Rekaman Layar tersedia",
- "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung"
+ "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Unduh tanpa lampiran",
+ "DOWNLOAD_WITH_ATTACHMENT": "Unduh dengan lampiran",
+ "LASTMESSAGE": "Pesan Terakhir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/it.json b/public/app/main/apps/mail/i18n/it.json
index a8e90f8..4184e59 100644
--- a/public/app/main/apps/mail/i18n/it.json
+++ b/public/app/main/apps/mail/i18n/it.json
@@ -317,6 +317,8 @@
"MANDATORYDISPOSITION": "Disposizione obbligatoria",
"MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare se è abilitata la disposizione obbligatoria",
"TOOLTIP_SCREENRECORDING_OFF": "Registrazione dello schermo disponibile",
- "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso"
+ "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Scarica senza allegato",
+ "DOWNLOAD_WITH_ATTACHMENT": "Scarica con allegato"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/ja.json b/public/app/main/apps/mail/i18n/ja.json
index 0c87adc..4ac5dc9 100644
--- a/public/app/main/apps/mail/i18n/ja.json
+++ b/public/app/main/apps/mail/i18n/ja.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "å¼·å¶å¦åãæå¹ã«ãªã£ã¦ããå ´åã«ä½¿ç¨ããä¸æåæ¢",
"ADVANCED": "é«åº¦ãª",
"TOOLTIP_SCREENRECORDING_OFF": "å©ç¨å¯è½ãªã¹ã¯ãªã¼ã³é²ç»",
- "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "æ·»ä»ããã«ãã¦ã³ãã¼ã",
+ "DOWNLOAD_WITH_ATTACHMENT": "æ·»ä»ãã¦ãã¦ã³ãã¼ã",
+ "LASTMESSAGE": "æå¾ã®ã¡ãã»ã¼ã¸"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/ko.json b/public/app/main/apps/mail/i18n/ko.json
index 50da433..583a0fe 100644
--- a/public/app/main/apps/mail/i18n/ko.json
+++ b/public/app/main/apps/mail/i18n/ko.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "ê°ì ì²ë¶ì´ íì±í ë ê²½ì° ì¬ì© ì¤ì§",
"ADVANCED": "ë§ì",
"TOOLTIP_SCREENRECORDING_OFF": "ì¤í¬ë¦° ë
¹í ê°ë¥",
- "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤"
+ "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ì²¨ë¶ íì¼ìì´ ë¤ì´ë¡ë",
+ "DOWNLOAD_WITH_ATTACHMENT": "ì²¨ë¶ íì¼ë¡ ë¤ì´ë¡ë",
+ "LASTMESSAGE": "ë§ì§ë§ ë©ìì§"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/lv.json b/public/app/main/apps/mail/i18n/lv.json
index 5a49482..4ec8ea4 100644
--- a/public/app/main/apps/mail/i18n/lv.json
+++ b/public/app/main/apps/mail/i18n/lv.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "LietoÅ¡anas pÄrtraukÅ¡ana, ja ir iespÄjota obligÄtÄ izvietoÅ¡ana",
"ADVANCED": "Advanced",
"TOOLTIP_SCREENRECORDING_OFF": "EkrÄna ieraksts ir pieejams",
- "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana"
+ "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "LejupielÄdÄjiet bez pielikuma",
+ "DOWNLOAD_WITH_ATTACHMENT": "LejupielÄdÄjiet ar pielikumu",
+ "LASTMESSAGE": "PÄdÄjÄ ziÅa"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/nl.json b/public/app/main/apps/mail/i18n/nl.json
index 3b7c29f..1500dd5 100644
--- a/public/app/main/apps/mail/i18n/nl.json
+++ b/public/app/main/apps/mail/i18n/nl.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pauze om te gebruiken als verplichte dispositie is ingeschakeld",
"ADVANCED": "gevorderd",
"TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar",
- "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig"
+ "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download zonder bijlage",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download met bijlage",
+ "LASTMESSAGE": "Laatste bericht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/no.json b/public/app/main/apps/mail/i18n/no.json
index 174d1dc..67bcd72 100644
--- a/public/app/main/apps/mail/i18n/no.json
+++ b/public/app/main/apps/mail/i18n/no.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Bruk pause hvis obligatorisk disposisjon er aktivert",
"ADVANCED": "Avansert",
"TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Last ned uten vedlegg",
+ "DOWNLOAD_WITH_ATTACHMENT": "Last ned med vedlegg",
+ "LASTMESSAGE": "Siste melding"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/pl.json b/public/app/main/apps/mail/i18n/pl.json
index 349c154..aca2ad1 100644
--- a/public/app/main/apps/mail/i18n/pl.json
+++ b/public/app/main/apps/mail/i18n/pl.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj korzystanie, jeÅli wÅÄ
czona jest obowiÄ
zkowa dyspozycja",
"ADVANCED": "zaawansowane",
"TOOLTIP_SCREENRECORDING_OFF": "DostÄpne nagrywanie ekranu",
- "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu"
+ "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Pobierz bez zaÅÄ
cznika",
+ "DOWNLOAD_WITH_ATTACHMENT": "Pobierz z zaÅÄ
cznikiem",
+ "LASTMESSAGE": "Ostatnia wiadomoÅÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/pt-BR.json b/public/app/main/apps/mail/i18n/pt-BR.json
index ddb9e61..63d5079 100644
--- a/public/app/main/apps/mail/i18n/pt-BR.json
+++ b/public/app/main/apps/mail/i18n/pt-BR.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pausar para usar se a disposição obrigatória estiver ativada",
"ADVANCED": "Avançado",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/pt-PT.json b/public/app/main/apps/mail/i18n/pt-PT.json
index c75be4c..60c8805 100644
--- a/public/app/main/apps/mail/i18n/pt-PT.json
+++ b/public/app/main/apps/mail/i18n/pt-PT.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pausar para usar se a disposição obrigatória estiver ativada",
"ADVANCED": "Avançado",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/ru.json b/public/app/main/apps/mail/i18n/ru.json
index 926f49a..fecdb27 100644
--- a/public/app/main/apps/mail/i18n/ru.json
+++ b/public/app/main/apps/mail/i18n/ru.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "ÐаÑза Ð´Ð»Ñ Ð¸ÑполÑзованиÑ, еÑли вклÑÑена обÑзаÑелÑÐ½Ð°Ñ ÑÑилизаÑиÑ",
"ADVANCED": "пÑодвинÑÑÑй",
"TOOLTIP_SCREENRECORDING_OFF": "ÐапиÑÑ ÑкÑана доÑÑÑпна",
- "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана"
+ "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "СкаÑаÑÑ Ð±ÐµÐ· вложениÑ",
+ "DOWNLOAD_WITH_ATTACHMENT": "СкаÑаÑÑ Ñ Ð¿Ñиложением",
+ "LASTMESSAGE": "ÐоÑледнее ÑообÑение"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/sv.json b/public/app/main/apps/mail/i18n/sv.json
index 4f1baaf..a8b08ce 100644
--- a/public/app/main/apps/mail/i18n/sv.json
+++ b/public/app/main/apps/mail/i18n/sv.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Pausa för att använda om obligatorisk disposition är aktiverad",
"ADVANCED": "Avancerad",
"TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig",
- "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ladda ner utan bilaga",
+ "DOWNLOAD_WITH_ATTACHMENT": "Ladda ner med bilaga",
+ "LASTMESSAGE": "Senaste meddelandet"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/tr.json b/public/app/main/apps/mail/i18n/tr.json
index 8411104..986da43 100644
--- a/public/app/main/apps/mail/i18n/tr.json
+++ b/public/app/main/apps/mail/i18n/tr.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "Zorunlu bırakma etkinse, kullanımı duraklat",
"ADVANCED": "ileri",
"TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut",
- "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor"
+ "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ek olmadan indir",
+ "DOWNLOAD_WITH_ATTACHMENT": "Ekli olarak indir",
+ "LASTMESSAGE": "Son Mesaj"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/zh-CN.json b/public/app/main/apps/mail/i18n/zh-CN.json
index 325f5c3..777dddf 100644
--- a/public/app/main/apps/mail/i18n/zh-CN.json
+++ b/public/app/main/apps/mail/i18n/zh-CN.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "å¦æå¯ç¨äºå¼ºå¶æ§å¤ç½®ï¼åæå使ç¨",
"ADVANCED": "é«çº§",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹å½åå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ä¸å¸¦é件ä¸è½½",
+ "DOWNLOAD_WITH_ATTACHMENT": "é件ä¸è½½",
+ "LASTMESSAGE": "æåçè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/mail/i18n/zh-TW.json b/public/app/main/apps/mail/i18n/zh-TW.json
index aa75bc3..8c09f92 100644
--- a/public/app/main/apps/mail/i18n/zh-TW.json
+++ b/public/app/main/apps/mail/i18n/zh-TW.json
@@ -316,6 +316,9 @@
"MANDATORYDISPOSITIONPAUSEID": "å¦æåç¨äºå¼·å¶æ§èç½®ï¼åæ«å使ç¨",
"ADVANCED": "é«ç´",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹éåå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ä¸å¸¶é件ä¸è¼",
+ "DOWNLOAD_WITH_ATTACHMENT": "é件ä¸è¼",
+ "LASTMESSAGE": "æå¾çè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/ar.json b/public/app/main/apps/openchannel/i18n/ar.json
index 7909b32..5cd40cf 100644
--- a/public/app/main/apps/openchannel/i18n/ar.json
+++ b/public/app/main/apps/openchannel/i18n/ar.json
@@ -253,6 +253,9 @@
"LEXREGION": "Ù
ÙØ·ÙØ©",
"SECRETACCESSKEY": "سر Ù
ÙØªØ§Ø Ø§ÙÙصÙÙ",
"TOOLTIP_SCREENRECORDING_OFF": "تسجÙ٠اÙشاشة اÙÙ
تاØØ©",
- "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
"
+ "TOOLTIP_SCREENRECORDING_ON": "تسجÙ٠اÙشاشة Ù٠اÙتÙدÙ
",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "تØÙ
Ù٠بدÙÙ Ù
رÙÙات",
+ "DOWNLOAD_WITH_ATTACHMENTS": "تÙزÙ٠باÙÙ
رÙÙات",
+ "LASTMESSAGE": "اخر رساÙØ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/da.json b/public/app/main/apps/openchannel/i18n/da.json
index cf5d6ec..32ad811 100644
--- a/public/app/main/apps/openchannel/i18n/da.json
+++ b/public/app/main/apps/openchannel/i18n/da.json
@@ -253,6 +253,9 @@
"LEXREGION": "Område",
"SECRETACCESSKEY": "Adgangsnøglehemmelighed",
"TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download uden vedhæftede filer",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download med vedhæftede filer",
+ "LASTMESSAGE": "Sidste besked"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/de.json b/public/app/main/apps/openchannel/i18n/de.json
index 58eeb2d..bb8924c 100644
--- a/public/app/main/apps/openchannel/i18n/de.json
+++ b/public/app/main/apps/openchannel/i18n/de.json
@@ -253,6 +253,9 @@
"LEXREGION": "Region",
"SECRETACCESSKEY": "Zugangsschlüssel geheim",
"TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar",
- "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft"
+ "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download ohne Anhänge",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Mit Anhängen herunterladen",
+ "LASTMESSAGE": "Letzte Nachricht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/es.json b/public/app/main/apps/openchannel/i18n/es.json
index 176012c..e3c916d 100644
--- a/public/app/main/apps/openchannel/i18n/es.json
+++ b/public/app/main/apps/openchannel/i18n/es.json
@@ -253,6 +253,9 @@
"LEXREGION": "Región",
"SECRETACCESSKEY": "Clave de acceso secreto",
"TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso"
+ "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Descargar sin archivos adjuntos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Descargar con archivos adjuntos",
+ "LASTMESSAGE": "Ultimo mensaje"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/fa.json b/public/app/main/apps/openchannel/i18n/fa.json
index 9de6d76..fd9187a 100644
--- a/public/app/main/apps/openchannel/i18n/fa.json
+++ b/public/app/main/apps/openchannel/i18n/fa.json
@@ -253,6 +253,9 @@
"LEXREGION": "Ù
ÙØ·ÙÙ",
"SECRETACCESSKEY": "راز Ø¯Ø³ØªØ±Ø³Û Ø¨Ù Ú©ÙÛد",
"TOOLTIP_SCREENRECORDING_OFF": "ضبط صÙØ٠در دسترس است",
- "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است"
+ "TOOLTIP_SCREENRECORDING_ON": "ضبط صÙØ٠در Øا٠اÙجاÙ
است",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "بارگÛØ±Û Ø¨Ø¯ÙÙ Ù¾ÛÙست",
+ "DOWNLOAD_WITH_ATTACHMENTS": "با Ù¾ÛÙست Ùا بارگÛØ±Û Ú©ÙÛد",
+ "LASTMESSAGE": "آخرÛÙ Ù¾ÛاÙ
"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/fi.json b/public/app/main/apps/openchannel/i18n/fi.json
index 8afc35a..d694334 100644
--- a/public/app/main/apps/openchannel/i18n/fi.json
+++ b/public/app/main/apps/openchannel/i18n/fi.json
@@ -253,6 +253,9 @@
"LEXREGION": "alue",
"SECRETACCESSKEY": "Pääsysalaisuus",
"TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla",
- "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä"
+ "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lataa ilman liitteitä",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Lataa liitteineen",
+ "LASTMESSAGE": "Viimeinen viesti"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/fr.json b/public/app/main/apps/openchannel/i18n/fr.json
index 88fb123..8842a2e 100644
--- a/public/app/main/apps/openchannel/i18n/fr.json
+++ b/public/app/main/apps/openchannel/i18n/fr.json
@@ -253,6 +253,9 @@
"LEXREGION": "Région",
"SECRETACCESSKEY": "Clé d'accès secret",
"TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible",
- "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours"
+ "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Télécharger sans pièces jointes",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Télécharger avec pièces jointes",
+ "LASTMESSAGE": "Dernier message"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/he.json b/public/app/main/apps/openchannel/i18n/he.json
index 7363ca1..0c4ed95 100644
--- a/public/app/main/apps/openchannel/i18n/he.json
+++ b/public/app/main/apps/openchannel/i18n/he.json
@@ -253,6 +253,9 @@
"LEXREGION": "×××ר",
"SECRETACCESSKEY": "×××©× ×ס×× ×פת×",
"TOOLTIP_SCREENRECORDING_OFF": "×ק××ת ××¡× ×××× ×",
- "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת"
+ "TOOLTIP_SCREENRECORDING_ON": "×ק××ת ××¡× ×ת×צעת",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "×××¨× ××× ×§×צ×× ×צ×רפ××",
+ "DOWNLOAD_WITH_ATTACHMENTS": "×××¨× ×¢× ×§×צ×× ×צ×רפ××",
+ "LASTMESSAGE": "××××¢× ××ר×× ×"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/hi.json b/public/app/main/apps/openchannel/i18n/hi.json
index 308b8e0..c725772 100644
--- a/public/app/main/apps/openchannel/i18n/hi.json
+++ b/public/app/main/apps/openchannel/i18n/hi.json
@@ -253,6 +253,9 @@
"LEXREGION": "à¤à¥à¤·à¥à¤¤à¥à¤°",
"SECRETACCESSKEY": "पहà¥à¤à¤ à¤à¥à¤à¤à¥ रहसà¥à¤¯",
"TOOLTIP_SCREENRECORDING_OFF": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ à¤à¤ªà¤²à¤¬à¥à¤§ हà¥",
- "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥"
+ "TOOLTIP_SCREENRECORDING_ON": "सà¥à¤à¥à¤°à¥à¤¨ रिà¤à¥à¤°à¥à¤¡à¤¿à¤à¤ पà¥à¤°à¤à¤¤à¤¿ पर हà¥",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "सà¤à¤²à¤à¥à¤¨à¤ à¤à¥ बिना डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "DOWNLOAD_WITH_ATTACHMENTS": "à¤
नà¥à¤²à¤à¥à¤¨à¤à¥à¤ à¤à¥ साथ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "LASTMESSAGE": "à¤
à¤à¤¤à¤¿à¤® सà¤à¤¦à¥à¤¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/id.json b/public/app/main/apps/openchannel/i18n/id.json
index 48765c5..ab6792a 100644
--- a/public/app/main/apps/openchannel/i18n/id.json
+++ b/public/app/main/apps/openchannel/i18n/id.json
@@ -253,6 +253,9 @@
"LEXREGION": "Wilayah",
"SECRETACCESSKEY": "Rahasia kunci akses",
"TOOLTIP_SCREENRECORDING_OFF": "Rekaman Layar tersedia",
- "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung"
+ "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Unduh tanpa lampiran",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Unduh dengan lampiran",
+ "LASTMESSAGE": "Pesan Terakhir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/it.json b/public/app/main/apps/openchannel/i18n/it.json
index 8c1ffc8..b6369f4 100644
--- a/public/app/main/apps/openchannel/i18n/it.json
+++ b/public/app/main/apps/openchannel/i18n/it.json
@@ -254,6 +254,8 @@
"LEXREGION": "Regione",
"SECRETACCESSKEY": "Accesso chiave segreta",
"TOOLTIP_SCREENRECORDING_OFF": "Registrazione dello schermo disponibile",
- "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso"
+ "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/ja.json b/public/app/main/apps/openchannel/i18n/ja.json
index c73fd04..67a588b 100644
--- a/public/app/main/apps/openchannel/i18n/ja.json
+++ b/public/app/main/apps/openchannel/i18n/ja.json
@@ -253,6 +253,9 @@
"LEXREGION": "é å",
"SECRETACCESSKEY": "ã¢ã¯ã»ã¹ãã¼ã·ã¼ã¯ã¬ãã",
"TOOLTIP_SCREENRECORDING_OFF": "å©ç¨å¯è½ãªã¹ã¯ãªã¼ã³é²ç»",
- "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "ã¹ã¯ãªã¼ã³é²ç»ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ãªãã§ãã¦ã³ãã¼ã",
+ "DOWNLOAD_WITH_ATTACHMENTS": "æ·»ä»ãã¡ã¤ã«ä»ãã§ãã¦ã³ãã¼ã",
+ "LASTMESSAGE": "æå¾ã®ã¡ãã»ã¼ã¸"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/ko.json b/public/app/main/apps/openchannel/i18n/ko.json
index 5a38c80..812831c 100644
--- a/public/app/main/apps/openchannel/i18n/ko.json
+++ b/public/app/main/apps/openchannel/i18n/ko.json
@@ -253,6 +253,9 @@
"LEXREGION": "ë¶ì",
"SECRETACCESSKEY": "ì¡ì¸ì¤ í¤ ë¹ë°",
"TOOLTIP_SCREENRECORDING_OFF": "ì¤í¬ë¦° ë
¹í ê°ë¥",
- "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤"
+ "TOOLTIP_SCREENRECORDING_ON": "íë©´ ë
¹í ì¤",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ì²¨ë¶ íì¼ìì´ ë¤ì´ë¡ë",
+ "DOWNLOAD_WITH_ATTACHMENTS": "ì²¨ë¶ íì¼ë¡ ë¤ì´ë¡ë",
+ "LASTMESSAGE": "ë§ì§ë§ ë©ìì§"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/lv.json b/public/app/main/apps/openchannel/i18n/lv.json
index 9da22ce..597bb59 100644
--- a/public/app/main/apps/openchannel/i18n/lv.json
+++ b/public/app/main/apps/openchannel/i18n/lv.json
@@ -253,6 +253,9 @@
"LEXREGION": "Novads",
"SECRETACCESSKEY": "Piekļuves atslÄgas noslÄpums",
"TOOLTIP_SCREENRECORDING_OFF": "EkrÄna ieraksts ir pieejams",
- "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana"
+ "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrÄna ierakstÄ«Å¡ana",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "LejupielÄdÄjiet bez pielikumiem",
+ "DOWNLOAD_WITH_ATTACHMENTS": "LejupielÄdÄjiet ar pielikumiem",
+ "LASTMESSAGE": "PÄdÄjÄ ziÅa"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/nl.json b/public/app/main/apps/openchannel/i18n/nl.json
index 1c5ee4b..325c98b 100644
--- a/public/app/main/apps/openchannel/i18n/nl.json
+++ b/public/app/main/apps/openchannel/i18n/nl.json
@@ -253,6 +253,9 @@
"LEXREGION": "Regio",
"SECRETACCESSKEY": "Toegangssleutel geheim",
"TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar",
- "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig"
+ "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download zonder bijlagen",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download met bijlagen",
+ "LASTMESSAGE": "Laatste bericht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/no.json b/public/app/main/apps/openchannel/i18n/no.json
index 0a6e382..b8da112 100644
--- a/public/app/main/apps/openchannel/i18n/no.json
+++ b/public/app/main/apps/openchannel/i18n/no.json
@@ -253,6 +253,9 @@
"LEXREGION": "Region",
"SECRETACCESSKEY": "Tilgang nøkkelhemmelighet",
"TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig",
- "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Last ned uten vedlegg",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Last ned med vedlegg",
+ "LASTMESSAGE": "Siste melding"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/pl.json b/public/app/main/apps/openchannel/i18n/pl.json
index d30837b..1221a09 100644
--- a/public/app/main/apps/openchannel/i18n/pl.json
+++ b/public/app/main/apps/openchannel/i18n/pl.json
@@ -253,6 +253,9 @@
"LEXREGION": "Region",
"SECRETACCESSKEY": "Tajny klucz dostÄpu",
"TOOLTIP_SCREENRECORDING_OFF": "DostÄpne nagrywanie ekranu",
- "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu"
+ "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Pobierz bez zaÅÄ
czników",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Pobierz z zaÅÄ
cznikami",
+ "LASTMESSAGE": "Ostatnia wiadomoÅÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/pt-BR.json b/public/app/main/apps/openchannel/i18n/pt-BR.json
index 1c2bf75..dd5b212 100644
--- a/public/app/main/apps/openchannel/i18n/pt-BR.json
+++ b/public/app/main/apps/openchannel/i18n/pt-BR.json
@@ -253,6 +253,9 @@
"LEXREGION": "Região",
"SECRETACCESSKEY": "Segredo da chave de acesso",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/pt-PT.json b/public/app/main/apps/openchannel/i18n/pt-PT.json
index 31f5ce5..d1a2a7e 100644
--- a/public/app/main/apps/openchannel/i18n/pt-PT.json
+++ b/public/app/main/apps/openchannel/i18n/pt-PT.json
@@ -253,6 +253,9 @@
"LEXREGION": "Região",
"SECRETACCESSKEY": "Segredo da chave de acesso",
"TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponÃvel",
- "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento"
+ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/ru.json b/public/app/main/apps/openchannel/i18n/ru.json
index aacbfc1..7a7cab2 100644
--- a/public/app/main/apps/openchannel/i18n/ru.json
+++ b/public/app/main/apps/openchannel/i18n/ru.json
@@ -253,6 +253,9 @@
"LEXREGION": "ÐблаÑÑÑ",
"SECRETACCESSKEY": "СекÑÐµÑ ÐºÐ»ÑÑа доÑÑÑпа",
"TOOLTIP_SCREENRECORDING_OFF": "ÐапиÑÑ ÑкÑана доÑÑÑпна",
- "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана"
+ "TOOLTIP_SCREENRECORDING_ON": "ÐÐ´ÐµÑ Ð·Ð°Ð¿Ð¸ÑÑ ÑкÑана",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "СкаÑаÑÑ Ð±ÐµÐ· вложений",
+ "DOWNLOAD_WITH_ATTACHMENTS": "СкаÑаÑÑ Ñ Ð²Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñми",
+ "LASTMESSAGE": "ÐоÑледнее ÑообÑение"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/sv.json b/public/app/main/apps/openchannel/i18n/sv.json
index da373c3..72e954a 100644
--- a/public/app/main/apps/openchannel/i18n/sv.json
+++ b/public/app/main/apps/openchannel/i18n/sv.json
@@ -253,6 +253,9 @@
"LEXREGION": "Område",
"SECRETACCESSKEY": "Ã
tkomstnyckelhemlighet",
"TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig",
- "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår"
+ "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ladda ner utan bilagor",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Ladda ner med bilagor",
+ "LASTMESSAGE": "Senaste meddelandet"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/tr.json b/public/app/main/apps/openchannel/i18n/tr.json
index f09dd59..01df0c4 100644
--- a/public/app/main/apps/openchannel/i18n/tr.json
+++ b/public/app/main/apps/openchannel/i18n/tr.json
@@ -253,6 +253,9 @@
"LEXREGION": "bölge",
"SECRETACCESSKEY": "EriÅim anahtarı sırrı",
"TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut",
- "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor"
+ "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ekler olmadan indir",
+ "DOWNLOAD_WITH_ATTACHMENTS": "Eklerle indir",
+ "LASTMESSAGE": "Son Mesaj"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/zh-CN.json b/public/app/main/apps/openchannel/i18n/zh-CN.json
index 1a40e84..bd0298e 100644
--- a/public/app/main/apps/openchannel/i18n/zh-CN.json
+++ b/public/app/main/apps/openchannel/i18n/zh-CN.json
@@ -253,6 +253,9 @@
"LEXREGION": "åºå",
"SECRETACCESSKEY": "访é®å¯é¥æºå¯",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹å½åå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹å½å¶æ£å¨è¿è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è½½æ é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è½½",
+ "LASTMESSAGE": "æåçè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/openchannel/i18n/zh-TW.json b/public/app/main/apps/openchannel/i18n/zh-TW.json
index 42378f0..11cfb6f 100644
--- a/public/app/main/apps/openchannel/i18n/zh-TW.json
+++ b/public/app/main/apps/openchannel/i18n/zh-TW.json
@@ -253,6 +253,9 @@
"LEXREGION": "åå",
"SECRETACCESSKEY": "訪åå¯é°æ©å¯",
"TOOLTIP_SCREENRECORDING_OFF": "å±å¹éåå¯ç¨",
- "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸"
+ "TOOLTIP_SCREENRECORDING_ON": "å±å¹é製æ£å¨é²è¡ä¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENTS": "ä¸è¼ç¡é件",
+ "DOWNLOAD_WITH_ATTACHMENTS": "é件ä¸è¼",
+ "LASTMESSAGE": "æå¾çè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/ar.json b/public/app/main/apps/sms/i18n/ar.json
index dda3f57..86cef3b 100644
--- a/public/app/main/apps/sms/i18n/ar.json
+++ b/public/app/main/apps/sms/i18n/ar.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Ùغة",
"LEXREGION": "Ù
ÙØ·ÙØ©",
"SECRETACCESSKEY": "سر Ù
ÙØªØ§Ø Ø§ÙÙصÙÙ",
- "WELCOMEMESSAGE": "رساÙØ© ترØÙب"
+ "WELCOMEMESSAGE": "رساÙØ© ترØÙب",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "تØÙ
Ù٠بدÙÙ Ù
رÙÙ",
+ "DOWNLOAD_WITH_ATTACHMENT": "تÙزÙ٠باÙÙ
رÙÙ",
+ "LASTMESSAGE": "اخر رساÙØ©"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/da.json b/public/app/main/apps/sms/i18n/da.json
index 42b5017..93a3d36 100644
--- a/public/app/main/apps/sms/i18n/da.json
+++ b/public/app/main/apps/sms/i18n/da.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Sprog",
"LEXREGION": "Område",
"SECRETACCESSKEY": "Adgangsnøglehemmelighed",
- "WELCOMEMESSAGE": "Velkomstbesked"
+ "WELCOMEMESSAGE": "Velkomstbesked",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download uden vedhæftet fil",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download med vedhæftet fil",
+ "LASTMESSAGE": "Sidste besked"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/de.json b/public/app/main/apps/sms/i18n/de.json
index 9685aa7..251f4be 100644
--- a/public/app/main/apps/sms/i18n/de.json
+++ b/public/app/main/apps/sms/i18n/de.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Sprache",
"LEXREGION": "Region",
"SECRETACCESSKEY": "Zugriffsschlüsselgeheimnis",
- "WELCOMEMESSAGE": "Willkommensnachricht"
+ "WELCOMEMESSAGE": "Willkommensnachricht",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ohne Anhang herunterladen",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download mit Anhang",
+ "LASTMESSAGE": "Letzte Nachricht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/es.json b/public/app/main/apps/sms/i18n/es.json
index 84ce55e..15c2302 100644
--- a/public/app/main/apps/sms/i18n/es.json
+++ b/public/app/main/apps/sms/i18n/es.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Idioma",
"LEXREGION": "Región",
"SECRETACCESSKEY": "Clave de acceso secreto",
- "WELCOMEMESSAGE": "Mensaje de bienvenida"
+ "WELCOMEMESSAGE": "Mensaje de bienvenida",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Descargar sin adjuntar",
+ "DOWNLOAD_WITH_ATTACHMENT": "Descargar con archivo adjunto",
+ "LASTMESSAGE": "Ultimo mensaje"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/fa.json b/public/app/main/apps/sms/i18n/fa.json
index 4b2507d..39ad437 100644
--- a/public/app/main/apps/sms/i18n/fa.json
+++ b/public/app/main/apps/sms/i18n/fa.json
@@ -277,6 +277,9 @@
"LANGUAGE": "زباÙ",
"LEXREGION": "Ù
ÙØ·ÙÙ",
"SECRETACCESSKEY": "راز Ø¯Ø³ØªØ±Ø³Û Ø¨Ù Ú©ÙÛد",
- "WELCOMEMESSAGE": "Ù¾ÛاÙ
Ø®ÙØ´ Ø¢Ù
د"
+ "WELCOMEMESSAGE": "Ù¾ÛاÙ
Ø®ÙØ´ Ø¢Ù
د",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "بارگÛØ±Û Ø¨Ø¯ÙÙ Ù¾ÛÙست",
+ "DOWNLOAD_WITH_ATTACHMENT": "با Ù¾ÛÙست بارگÛØ±Û Ú©ÙÛد",
+ "LASTMESSAGE": "آخرÛÙ Ù¾ÛاÙ
"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/fi.json b/public/app/main/apps/sms/i18n/fi.json
index 1479160..13dd5eb 100644
--- a/public/app/main/apps/sms/i18n/fi.json
+++ b/public/app/main/apps/sms/i18n/fi.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Kieli",
"LEXREGION": "alue",
"SECRETACCESSKEY": "Pääsysalaisuus",
- "WELCOMEMESSAGE": "Tervetuloviesti"
+ "WELCOMEMESSAGE": "Tervetuloviesti",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Lataa ilman liitetiedostoja",
+ "DOWNLOAD_WITH_ATTACHMENT": "Lataa liitteenä",
+ "LASTMESSAGE": "Viimeinen viesti"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/fr.json b/public/app/main/apps/sms/i18n/fr.json
index a7a3298..43a3620 100644
--- a/public/app/main/apps/sms/i18n/fr.json
+++ b/public/app/main/apps/sms/i18n/fr.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Langue",
"LEXREGION": "Région",
"SECRETACCESSKEY": "Clé d'accès secrète",
- "WELCOMEMESSAGE": "Message de bienvenue"
+ "WELCOMEMESSAGE": "Message de bienvenue",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Télécharger sans pièce jointe",
+ "DOWNLOAD_WITH_ATTACHMENT": "Télécharger avec pièce jointe",
+ "LASTMESSAGE": "Dernier message"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/he.json b/public/app/main/apps/sms/i18n/he.json
index 99e1300..674927a 100644
--- a/public/app/main/apps/sms/i18n/he.json
+++ b/public/app/main/apps/sms/i18n/he.json
@@ -277,6 +277,9 @@
"LANGUAGE": "שפ×",
"LEXREGION": "×××ר",
"SECRETACCESSKEY": "×××©× ×ס×× ×פת×",
- "WELCOMEMESSAGE": "×××עת ×ר××"
+ "WELCOMEMESSAGE": "×××עת ×ר××",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "×××¨× ××× ×§×××¥ ×צ×רף",
+ "DOWNLOAD_WITH_ATTACHMENT": "×××¨× ×¢× ×§×××¥ ×צ×רף",
+ "LASTMESSAGE": "××××¢× ××ר×× ×"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/hi.json b/public/app/main/apps/sms/i18n/hi.json
index d1935c7..4ca1899 100644
--- a/public/app/main/apps/sms/i18n/hi.json
+++ b/public/app/main/apps/sms/i18n/hi.json
@@ -277,6 +277,9 @@
"LANGUAGE": "à¤à¤¾à¤·à¤¾: हिनà¥à¤¦à¥",
"LEXREGION": "à¤à¥à¤·à¥à¤¤à¥à¤°",
"SECRETACCESSKEY": "पहà¥à¤à¤ à¤à¥à¤à¤à¥ रहसà¥à¤¯",
- "WELCOMEMESSAGE": "सà¥à¤µà¤¾à¤à¤¤ सà¤à¤¦à¥à¤¶"
+ "WELCOMEMESSAGE": "सà¥à¤µà¤¾à¤à¤¤ सà¤à¤¦à¥à¤¶",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "à¤
नà¥à¤²à¤à¥à¤¨à¤ à¤à¥ बिना डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "DOWNLOAD_WITH_ATTACHMENT": "à¤
नà¥à¤²à¤à¥à¤¨à¤ à¤à¥ साथ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤",
+ "LASTMESSAGE": "à¤
à¤à¤¤à¤¿à¤® सà¤à¤¦à¥à¤¶"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/id.json b/public/app/main/apps/sms/i18n/id.json
index 18774b3..5675bad 100644
--- a/public/app/main/apps/sms/i18n/id.json
+++ b/public/app/main/apps/sms/i18n/id.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Bahasa",
"LEXREGION": "Wilayah",
"SECRETACCESSKEY": "Rahasia kunci akses",
- "WELCOMEMESSAGE": "Pesan selamat datang"
+ "WELCOMEMESSAGE": "Pesan selamat datang",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Unduh tanpa lampiran",
+ "DOWNLOAD_WITH_ATTACHMENT": "Unduh dengan lampiran",
+ "LASTMESSAGE": "Pesan Terakhir"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/it.json b/public/app/main/apps/sms/i18n/it.json
index fad3504..a06972f 100644
--- a/public/app/main/apps/sms/i18n/it.json
+++ b/public/app/main/apps/sms/i18n/it.json
@@ -278,6 +278,8 @@
"AGENTADD_SMSACCOUNT": "Aggiungi Agente ad account SMS",
"TEAMS_ASSOCIATION": "Associazione Teams",
"MANDATORYDISPOSITION": "Disposizione obbligatoria",
- "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare quando è abilitata la disposizione obbligatoria"
+ "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare quando è abilitata la disposizione obbligatoria",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Scarica senza allegato",
+ "DOWNLOAD_WITH_ATTACHMENT": "Scarica con allegato"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/ja.json b/public/app/main/apps/sms/i18n/ja.json
index 80a0be0..47baca9 100644
--- a/public/app/main/apps/sms/i18n/ja.json
+++ b/public/app/main/apps/sms/i18n/ja.json
@@ -277,6 +277,9 @@
"LANGUAGE": "è¨èª",
"LEXREGION": "é å",
"SECRETACCESSKEY": "ã¢ã¯ã»ã¹ãã¼ã·ã¼ã¯ã¬ãã",
- "WELCOMEMESSAGE": "ã¦ã§ã«ã«ã ã¡ãã»ã¼ã¸"
+ "WELCOMEMESSAGE": "ã¦ã§ã«ã«ã ã¡ãã»ã¼ã¸",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "æ·»ä»ããã«ãã¦ã³ãã¼ã",
+ "DOWNLOAD_WITH_ATTACHMENT": "æ·»ä»ãã¦ãã¦ã³ãã¼ã",
+ "LASTMESSAGE": "æå¾ã®ã¡ãã»ã¼ã¸"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/ko.json b/public/app/main/apps/sms/i18n/ko.json
index 659f14b..81ee286 100644
--- a/public/app/main/apps/sms/i18n/ko.json
+++ b/public/app/main/apps/sms/i18n/ko.json
@@ -277,6 +277,9 @@
"LANGUAGE": "ì¸ì´",
"LEXREGION": "ë¶ì",
"SECRETACCESSKEY": "ì¡ì¸ì¤ í¤ ë¹ë°",
- "WELCOMEMESSAGE": "íì ë©ìì§"
+ "WELCOMEMESSAGE": "íì ë©ìì§",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ì²¨ë¶ íì¼ìì´ ë¤ì´ë¡ë",
+ "DOWNLOAD_WITH_ATTACHMENT": "ì²¨ë¶ íì¼ë¡ ë¤ì´ë¡ë",
+ "LASTMESSAGE": "ë§ì§ë§ ë©ìì§"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/lv.json b/public/app/main/apps/sms/i18n/lv.json
index 0c39648..8ee1a7a 100644
--- a/public/app/main/apps/sms/i18n/lv.json
+++ b/public/app/main/apps/sms/i18n/lv.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Valoda",
"LEXREGION": "Novads",
"SECRETACCESSKEY": "Piekļuves atslÄgas noslÄpums",
- "WELCOMEMESSAGE": "Sveiciena ziÅa"
+ "WELCOMEMESSAGE": "Sveiciena ziÅa",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "LejupielÄdÄjiet bez pielikuma",
+ "DOWNLOAD_WITH_ATTACHMENT": "LejupielÄdÄjiet ar pielikumu",
+ "LASTMESSAGE": "PÄdÄjÄ ziÅa"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/nl.json b/public/app/main/apps/sms/i18n/nl.json
index a3ceebd..6cd5eee 100644
--- a/public/app/main/apps/sms/i18n/nl.json
+++ b/public/app/main/apps/sms/i18n/nl.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Taal",
"LEXREGION": "Regio",
"SECRETACCESSKEY": "Toegangssleutel geheim",
- "WELCOMEMESSAGE": "Welkoms bericht"
+ "WELCOMEMESSAGE": "Welkoms bericht",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download zonder bijlage",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download met bijlage",
+ "LASTMESSAGE": "Laatste bericht"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/no.json b/public/app/main/apps/sms/i18n/no.json
index 16aef97..d0c3d0a 100644
--- a/public/app/main/apps/sms/i18n/no.json
+++ b/public/app/main/apps/sms/i18n/no.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Språk",
"LEXREGION": "Region",
"SECRETACCESSKEY": "Tilgang nøkkelhemmelighet",
- "WELCOMEMESSAGE": "Velkomstmelding"
+ "WELCOMEMESSAGE": "Velkomstmelding",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Last ned uten vedlegg",
+ "DOWNLOAD_WITH_ATTACHMENT": "Last ned med vedlegg",
+ "LASTMESSAGE": "Siste melding"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/pl.json b/public/app/main/apps/sms/i18n/pl.json
index bac7077..5f83eca 100644
--- a/public/app/main/apps/sms/i18n/pl.json
+++ b/public/app/main/apps/sms/i18n/pl.json
@@ -277,6 +277,9 @@
"LANGUAGE": "JÄzyk",
"LEXREGION": "Region",
"SECRETACCESSKEY": "Tajny klucz dostÄpu",
- "WELCOMEMESSAGE": "WiadomoÅÄ powitalna"
+ "WELCOMEMESSAGE": "WiadomoÅÄ powitalna",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Pobierz bez zaÅÄ
cznika",
+ "DOWNLOAD_WITH_ATTACHMENT": "Pobierz z zaÅÄ
cznikiem",
+ "LASTMESSAGE": "Ostatnia wiadomoÅÄ"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/pt-BR.json b/public/app/main/apps/sms/i18n/pt-BR.json
index 7173b60..e340b74 100644
--- a/public/app/main/apps/sms/i18n/pt-BR.json
+++ b/public/app/main/apps/sms/i18n/pt-BR.json
@@ -277,6 +277,9 @@
"LANGUAGE": "LÃngua",
"LEXREGION": "Região",
"SECRETACCESSKEY": "Segredo da chave de acesso",
- "WELCOMEMESSAGE": "Mensagem de boas-vindas"
+ "WELCOMEMESSAGE": "Mensagem de boas-vindas",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/pt-PT.json b/public/app/main/apps/sms/i18n/pt-PT.json
index 87bf1b3..3ff772f 100644
--- a/public/app/main/apps/sms/i18n/pt-PT.json
+++ b/public/app/main/apps/sms/i18n/pt-PT.json
@@ -277,6 +277,9 @@
"LANGUAGE": "LÃngua",
"LEXREGION": "Região",
"SECRETACCESSKEY": "Segredo da chave de acesso",
- "WELCOMEMESSAGE": "Mensagem de boas-vindas"
+ "WELCOMEMESSAGE": "Mensagem de boas-vindas",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo",
+ "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo",
+ "LASTMESSAGE": "Ãltima mensagem"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/ru.json b/public/app/main/apps/sms/i18n/ru.json
index a2bd800..ad092be 100644
--- a/public/app/main/apps/sms/i18n/ru.json
+++ b/public/app/main/apps/sms/i18n/ru.json
@@ -277,6 +277,9 @@
"LANGUAGE": "ÑзÑк",
"LEXREGION": "ÐблаÑÑÑ",
"SECRETACCESSKEY": "СекÑÐµÑ ÐºÐ»ÑÑа доÑÑÑпа",
- "WELCOMEMESSAGE": "ÐÑивеÑÑÑвие"
+ "WELCOMEMESSAGE": "ÐÑивеÑÑÑвие",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "СкаÑаÑÑ Ð±ÐµÐ· вложениÑ",
+ "DOWNLOAD_WITH_ATTACHMENT": "СкаÑаÑÑ Ñ Ð¿Ñиложением",
+ "LASTMESSAGE": "ÐоÑледнее ÑообÑение"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/sv.json b/public/app/main/apps/sms/i18n/sv.json
index c17c119..1150e3d 100644
--- a/public/app/main/apps/sms/i18n/sv.json
+++ b/public/app/main/apps/sms/i18n/sv.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Språk",
"LEXREGION": "Område",
"SECRETACCESSKEY": "Ã
tkomstnyckelhemlighet",
- "WELCOMEMESSAGE": "Välkomstmeddelande"
+ "WELCOMEMESSAGE": "Välkomstmeddelande",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ladda ner utan bilaga",
+ "DOWNLOAD_WITH_ATTACHMENT": "Ladda ner med bilaga",
+ "LASTMESSAGE": "Senaste meddelandet"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/tr.json b/public/app/main/apps/sms/i18n/tr.json
index 53070e1..d7dd26f 100644
--- a/public/app/main/apps/sms/i18n/tr.json
+++ b/public/app/main/apps/sms/i18n/tr.json
@@ -277,6 +277,9 @@
"LANGUAGE": "Dil",
"LEXREGION": "bölge",
"SECRETACCESSKEY": "EriÅim anahtarı sırrı",
- "WELCOMEMESSAGE": "KarÅılama mesajı"
+ "WELCOMEMESSAGE": "KarÅılama mesajı",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "Ek olmadan indir",
+ "DOWNLOAD_WITH_ATTACHMENT": "Ekli olarak indir",
+ "LASTMESSAGE": "Son Mesaj"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/zh-CN.json b/public/app/main/apps/sms/i18n/zh-CN.json
index de74502..5d9294c 100644
--- a/public/app/main/apps/sms/i18n/zh-CN.json
+++ b/public/app/main/apps/sms/i18n/zh-CN.json
@@ -277,6 +277,9 @@
"LANGUAGE": "è¯è¨",
"LEXREGION": "åºå",
"SECRETACCESSKEY": "访é®å¯é¥æºå¯",
- "WELCOMEMESSAGE": "欢è¿çè¨"
+ "WELCOMEMESSAGE": "欢è¿çè¨",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ä¸å¸¦é件ä¸è½½",
+ "DOWNLOAD_WITH_ATTACHMENT": "é件ä¸è½½",
+ "LASTMESSAGE": "æåçè¨"
}
}
\ No newline at end of file
diff --git a/public/app/main/apps/sms/i18n/zh-TW.json b/public/app/main/apps/sms/i18n/zh-TW.json
index 1571692..ce1969b 100644
--- a/public/app/main/apps/sms/i18n/zh-TW.json
+++ b/public/app/main/apps/sms/i18n/zh-TW.json
@@ -277,6 +277,9 @@
"LANGUAGE": "èªè¨",
"LEXREGION": "åå",
"SECRETACCESSKEY": "訪åå¯é°æ©å¯",
- "WELCOMEMESSAGE": "æ¡è¿çè¨"
+ "WELCOMEMESSAGE": "æ¡è¿çè¨",
+ "DOWNLOAD_WITHOUT_ATTACHMENT": "ä¸å¸¶é件ä¸è¼",
+ "DOWNLOAD_WITH_ATTACHMENT": "é件ä¸è¼",
+ "LASTMESSAGE": "æå¾çè¨"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/ar.json b/public/app/toolbar/i18n/ar.json
index 3b4f527..6acb0a6 100644
--- a/public/app/toolbar/i18n/ar.json
+++ b/public/app/toolbar/i18n/ar.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "غÙر اÙÙغة",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Ùا تÙجد أجÙزة صÙتÙØ© Ù
تاØØ©",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Ùا ÙتÙÙر Ù
ÙÙرÙÙÙÙ",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ùا ÙÙجد Ù
Ùبر صÙت Ù
تاØ"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ùا ÙÙجد Ù
Ùبر صÙت Ù
تاØ",
+ "NO_AVAILABLE_INFO": "Ùا تÙجد Ù
عÙÙÙ
ات Ù
تاØØ©"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/da.json b/public/app/toolbar/i18n/da.json
index d7ed62c..689b3fb 100644
--- a/public/app/toolbar/i18n/da.json
+++ b/public/app/toolbar/i18n/da.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Skift sprog",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Ingen lydenheder tilgængelige",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Ingen mikrofon tilgængelig",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen højttaler tilgængelig"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen højttaler tilgængelig",
+ "NO_AVAILABLE_INFO": "Ingen tilgængelige oplysninger"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/de.json b/public/app/toolbar/i18n/de.json
index 66314f8..932cdd0 100644
--- a/public/app/toolbar/i18n/de.json
+++ b/public/app/toolbar/i18n/de.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Sprache ändern",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Keine Audiogeräte verfügbar",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Kein Mikrofon vorhanden",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Kein Lautsprecher verfügbar"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Kein Lautsprecher verfügbar",
+ "NO_AVAILABLE_INFO": "Keine verfügbaren Informationen"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/es.json b/public/app/toolbar/i18n/es.json
index c3e5d63..e3253dc 100644
--- a/public/app/toolbar/i18n/es.json
+++ b/public/app/toolbar/i18n/es.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Cambiar idioma",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "No hay dispositivos de audio disponibles",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "No hay micrófono disponible",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "No hay altavoces disponibles"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "No hay altavoces disponibles",
+ "NO_AVAILABLE_INFO": "No hay información disponible."
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/fa.json b/public/app/toolbar/i18n/fa.json
index 4569781..a04d85f 100644
--- a/public/app/toolbar/i18n/fa.json
+++ b/public/app/toolbar/i18n/fa.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "تغÛÛر زباÙ",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "دستگا٠صÙØªÛ Ù
ÙجÙد ÙÛست",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "ÙÛÚ Ù
ÛکرÙÙÙ٠در دسترس ÙÛست",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "ÙÛÚ Ø¨ÙÙدگ٠در دسترس ÙÛست"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "ÙÛÚ Ø¨ÙÙدگ٠در دسترس ÙÛست",
+ "NO_AVAILABLE_INFO": "ÙÛÚ Ø§Ø·Ùاعات در دسترس ÙÛست"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/fi.json b/public/app/toolbar/i18n/fi.json
index 8443636..6fce60c 100644
--- a/public/app/toolbar/i18n/fi.json
+++ b/public/app/toolbar/i18n/fi.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Vaihda kieltä",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Audiolaitteita ei ole saatavana",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Mikrofonia ei ole saatavana",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Kaiutinta ei ole saatavilla"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Kaiutinta ei ole saatavilla",
+ "NO_AVAILABLE_INFO": "Ei tietoa"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/fr.json b/public/app/toolbar/i18n/fr.json
index c3f9d9d..c6278e0 100644
--- a/public/app/toolbar/i18n/fr.json
+++ b/public/app/toolbar/i18n/fr.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Changer de langue",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Aucun périphérique audio disponible",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Pas de microphone disponible",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Aucun haut-parleur disponible"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Aucun haut-parleur disponible",
+ "NO_AVAILABLE_INFO": "Aucune information disponible"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/he.json b/public/app/toolbar/i18n/he.json
index 384c0d7..58da1f5 100644
--- a/public/app/toolbar/i18n/he.json
+++ b/public/app/toolbar/i18n/he.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "×©× × ×©×¤×",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "××× ××ש××¨× ×©××¢ ×××× ××",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "××× ××קר×פ×× ××××",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "××× ×¨×ק×× ××××"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "××× ×¨×ק×× ××××",
+ "NO_AVAILABLE_INFO": "××× ××××¢ ××××"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/hi.json b/public/app/toolbar/i18n/hi.json
index 0eec8c1..0a3f42c 100644
--- a/public/app/toolbar/i18n/hi.json
+++ b/public/app/toolbar/i18n/hi.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "à¤à¤¾à¤·à¤¾ बदलà¥",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "à¤à¥à¤ à¤à¤¡à¤¿à¤¯à¥ डिवाà¤à¤¸ à¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "à¤à¥à¤ माà¤à¤à¥à¤°à¥à¤«à¥à¤¨ à¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "à¤à¥à¤ सà¥à¤ªà¥à¤à¤° à¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "à¤à¥à¤ सà¥à¤ªà¥à¤à¤° à¤à¤ªà¤²à¤¬à¥à¤§ नहà¥à¤ हà¥",
+ "NO_AVAILABLE_INFO": "à¤à¥à¤ à¤à¤ªà¤²à¤¬à¥à¤§ à¤à¤¾à¤¨à¤à¤¾à¤°à¥ नहà¥à¤"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/id.json b/public/app/toolbar/i18n/id.json
index ca3b7dd..037e09f 100644
--- a/public/app/toolbar/i18n/id.json
+++ b/public/app/toolbar/i18n/id.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Ganti BAHASA",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Tidak ada perangkat audio yang tersedia",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Mikrofon tidak tersedia",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Tidak ada pembicara yang tersedia"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Tidak ada pembicara yang tersedia",
+ "NO_AVAILABLE_INFO": "Tidak ada info yang tersedia"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/ja.json b/public/app/toolbar/i18n/ja.json
index 6ef5d9c..4152a26 100644
--- a/public/app/toolbar/i18n/ja.json
+++ b/public/app/toolbar/i18n/ja.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "è¨èªãå¤ãã¦ãã ãã",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "å©ç¨å¯è½ãªãªã¼ãã£ãªããã¤ã¹ãããã¾ãã",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "ãã¤ã¯ãããã¾ãã",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "å©ç¨ã§ããã¹ãã¼ã«ã¼ã¯ããã¾ãã"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "å©ç¨ã§ããã¹ãã¼ã«ã¼ã¯ããã¾ãã",
+ "NO_AVAILABLE_INFO": "å©ç¨å¯è½ãªæ
å ±ã¯ããã¾ãã"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/ko.json b/public/app/toolbar/i18n/ko.json
index 16e489d..ac15cba 100644
--- a/public/app/toolbar/i18n/ko.json
+++ b/public/app/toolbar/i18n/ko.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "ì¸ì´ ë³ê²½",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "ì¬ì© ê°ë¥í ì¤ëì¤ ì¥ì¹ê° ììµëë¤",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "ì¬ì© ê°ë¥í ë§ì´í¬ê° ììµëë¤",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "ì¬ì© ê°ë¥í ì¤í¼ì»¤ê° ììµëë¤"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "ì¬ì© ê°ë¥í ì¤í¼ì»¤ê° ììµëë¤",
+ "NO_AVAILABLE_INFO": "ì¬ì© ê°ë¥í ì ë³´ê° ììµëë¤"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/lv.json b/public/app/toolbar/i18n/lv.json
index 83e6dd5..b6514e0 100644
--- a/public/app/toolbar/i18n/lv.json
+++ b/public/app/toolbar/i18n/lv.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Mainīt VALODU",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Neviena audio ierīce nav pieejama",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Nav pieejams mikrofons",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nav pieejams neviens runÄtÄjs"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nav pieejams neviens runÄtÄjs",
+ "NO_AVAILABLE_INFO": "Nav pieejama informÄcija"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/nl.json b/public/app/toolbar/i18n/nl.json
index a4fc788..068ad16 100644
--- a/public/app/toolbar/i18n/nl.json
+++ b/public/app/toolbar/i18n/nl.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Verander de taal",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Geen audio-apparaten beschikbaar",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Geen microfoon beschikbaar",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Geen speaker beschikbaar"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Geen speaker beschikbaar",
+ "NO_AVAILABLE_INFO": "Geen beschikbare info"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/no.json b/public/app/toolbar/i18n/no.json
index 2b9432c..155133b 100644
--- a/public/app/toolbar/i18n/no.json
+++ b/public/app/toolbar/i18n/no.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Skifte språk",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Ingen lydenheter tilgjengelig",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Ingen mikrofon tilgjengelig",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen høyttaler tilgjengelig"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen høyttaler tilgjengelig",
+ "NO_AVAILABLE_INFO": "Ingen tilgjengelige info"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/pl.json b/public/app/toolbar/i18n/pl.json
index c382f88..9f67ec2 100644
--- a/public/app/toolbar/i18n/pl.json
+++ b/public/app/toolbar/i18n/pl.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "ZmieÅ jÄzyk",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Brak dostÄpnych urzÄ
dzeÅ audio",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Brak dostÄpnego mikrofonu",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Brak dostÄpnych gÅoÅników"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Brak dostÄpnych gÅoÅników",
+ "NO_AVAILABLE_INFO": "Brak dostÄpnych informacji"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/pt-BR.json b/public/app/toolbar/i18n/pt-BR.json
index 1b01474..e8f729c 100644
--- a/public/app/toolbar/i18n/pt-BR.json
+++ b/public/app/toolbar/i18n/pt-BR.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Mudar idioma",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Nenhum dispositivo de áudio disponÃvel",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Nenhum microfone disponÃvel",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nenhum alto-falante disponÃvel"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nenhum alto-falante disponÃvel",
+ "NO_AVAILABLE_INFO": "Nenhuma informação disponÃvel"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/pt-PT.json b/public/app/toolbar/i18n/pt-PT.json
index 349a438..e8c12c7 100644
--- a/public/app/toolbar/i18n/pt-PT.json
+++ b/public/app/toolbar/i18n/pt-PT.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Mudar idioma",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Nenhum dispositivo de áudio disponÃvel",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Nenhum microfone disponÃvel",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nenhum alto-falante disponÃvel"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Nenhum alto-falante disponÃvel",
+ "NO_AVAILABLE_INFO": "Nenhuma informação disponÃvel"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/ru.json b/public/app/toolbar/i18n/ru.json
index 01bc9b1..0f5cd3e 100644
--- a/public/app/toolbar/i18n/ru.json
+++ b/public/app/toolbar/i18n/ru.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "изменение ÑзÑка",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
аÑдиоÑÑÑÑойÑÑв",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "ÐикÑоÑон недоÑÑÑпен",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
динамиков"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
динамиков",
+ "NO_AVAILABLE_INFO": "ÐÐµÑ Ð´Ð¾ÑÑÑпной инÑоÑмаÑии"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/sv.json b/public/app/toolbar/i18n/sv.json
index ee51f2f..7a26b74 100644
--- a/public/app/toolbar/i18n/sv.json
+++ b/public/app/toolbar/i18n/sv.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Ãndra sprÃ¥k",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Inga ljudenheter tillgängliga",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Ingen mikrofon tillgänglig",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen högtalare tillgänglig"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Ingen högtalare tillgänglig",
+ "NO_AVAILABLE_INFO": "Ingen tillgänglig information"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/tr.json b/public/app/toolbar/i18n/tr.json
index 2eaebfa..118e960 100644
--- a/public/app/toolbar/i18n/tr.json
+++ b/public/app/toolbar/i18n/tr.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "Dili deÄiÅtir",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "Ses cihazı yok",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "Mikrofon yok",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "Hoparlör yok"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "Hoparlör yok",
+ "NO_AVAILABLE_INFO": "Kullanılabilir bilgi yok"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/zh-CN.json b/public/app/toolbar/i18n/zh-CN.json
index be2664a..295d324 100644
--- a/public/app/toolbar/i18n/zh-CN.json
+++ b/public/app/toolbar/i18n/zh-CN.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "æ¹åè¯è¨",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "没æå¯ç¨çé³é¢è®¾å¤",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "没æå¯ç¨ç麦å
é£",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "没ææ¬å£°å¨"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "没ææ¬å£°å¨",
+ "NO_AVAILABLE_INFO": "æ å¯ç¨ä¿¡æ¯"
}
}
\ No newline at end of file
diff --git a/public/app/toolbar/i18n/zh-TW.json b/public/app/toolbar/i18n/zh-TW.json
index 9356b45..0344eff 100644
--- a/public/app/toolbar/i18n/zh-TW.json
+++ b/public/app/toolbar/i18n/zh-TW.json
@@ -97,6 +97,7 @@
"CHANGE_LANGUAGE_TITLE": "æ¹è®èªè¨",
"WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE": "æ²æå¯ç¨çé³é »è¨å",
"WEBRTC_MICROPHONE_NOT_AVAILABLE": "æ²æå¯ç¨ç麥å
風",
- "WEBRTC_SPEAKER_NOT_AVAILABLE": "æ²ææè²å¨"
+ "WEBRTC_SPEAKER_NOT_AVAILABLE": "æ²ææè²å¨",
+ "NO_AVAILABLE_INFO": "ç¡å¯ç¨ä¿¡æ¯"
}
}
\ No newline at end of file
diff --git a/public/assets/images/business/voiceRecordings.jpg b/public/assets/images/business/voiceRecordings.jpg
deleted file mode 100644
index 065f7584edda0aae460e9bb6c65ae6dfbb7b0b9c..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 2993
zcmbVOc{J2rAOFpanL)N;C^DHD>zIhK#8?Lj#b88?NK*DJjim@#?9U$e7+uCv3nE6HnJ|O17
z+P;>w-)B%a6a5E*ZYPajOIO2t9%}h;W)1FyW+tUQe7U4|8O@|)9bdkX@|H-aqOs)=
z_ISLSm48s&dP%ej5d^O+qra|LaNja*%Ps4y@S6m4@w2d~E8e5B3HY2Sc_5f^SRx1G>`!f|zg
z!hhjGe&Xd%9E!eJ@MXVVR3bd^RYh~QTgVmSR@CaZcxc#N&!pGjR6k&sgE>6sw16gY
zoeOFp0)QY~R&Xec2mY6uATWdnfFfX`NcBuH49U(RV*rg+v-g0Dh@T3+PcR9|l9kgi
zHKXTO|LOq92*?RZhL2Hm-85K?N2YdWd-gVt>;RSSKl%sNHa*#q(cZqio|0+npH}lr
zFjvp$&E6bJx|gJWYl-3RB9*CzvU~qKnW<>sF0=eI5i}L9{l}3r+o+y=0Rx8ICc8$J
z8PAC88=bdotj)MK{?7zsw4l2g?W;fI)_S<%X^z8GD$S4fJf~#(?m43TR7eD3yPn(^@Hq8kiBK;YzQwU`tkztgD_|?efXS
zocLk^@3}~%|IvH5=4b<(Ue#^h4eHgMs>`a{sw`l5Cn+Z@4r!k43~Iy2v0Y)pMD&>+V++R<=oBMwg!#wi8s
zpkzJiSEL2~P$bPURBcDJe^m##R;bJ6N>`V7F%9`yY^r8Dr%`fPG%?>-`I%jZc?9BX
zbXEOC4abEa^Z1CJ?Sj109Fxeg^YijS1>$_2=7jL(zPYRdU4B1&M5o0_21B+Qzp?FO
zg}2X+D9M_&*#Sz*8onfqS5_|)969$Dc2&E2$Jbb`4C#MyA^vzH0g{?UoZ}43X}X!D
zTsWxC5{?uiOpSByFgQT`eWQpe`P$^pKC~
zj=hL?{p^=8AAd7d&tvi%N<$Y!GWPV*W#Yfbgq`TneAyPw!3)8)ktAxOBKl;|zG2Rx
zocZ?icqV12>6}d+>%vVsEcaUnb+IR?fy+ux4rwIG*Eg2
zWr4tQixiB1?w>IG$E$PSqWomWtobs8`HrqUsHkG{Rf-iMqW}e6zQVV#GqZ*Ffplq8X&^oSH-4
z<_oRj$5M(#A~Q+~$M^6rgb%ofTa38a-@jDjXG=5JZn2b0X5
z6qMnV=y~IHy-qKx>NT>@0mA*ucJ#v8_m+k8_}JNHJncKPa)KP_$69P3yj3>K1oNP^i#$-5>ejZ8abw74%*kc{~D
z-Umx8*No5_!hC{Y9gOPI$SM@^g{8d-Yt1pM6)2=La)$SH=rtTujs<
z#^#v6yQf^dbBujtnH*YH*L4ZENON32&~DIM_Cfy7;wNt%*W|S%q4p?c_ok3XHrA1a
z;uVxQ+2m2pvCccj)Q~)!KCd%#hI}P7Z)ioaO}E!CGHX(LR;#INSt#_k_ox57to!O5
zA<8swrY_eI(;MoNZvE=9b!0$Q9ae|+V9fXhu=?@%#3BFkPg<hDH~oXo!nJA7AxC484D4;w0E|j4U@?K0WwY?upHq3%|H8!=t-PLw8=LB5hU}pV
zM!*fe@~hR&`b1b-aN>bv8C&A~w=Scs-lqat>-ztlTDS_fw(xbyD`$3J*nQE`o*1V%
zr*;Y1Z0$?`7!Zh?6%DfQ@5|K@FH@b_Sa9gHx}DZ7B+8ceoxD(fK6J)9FfFQ!InbA@
z)u6kgQ1f_VWM8J7yv^ZAS=?cfnr{X)IE7QZUlT=DEic6kq+*$WuNwU#7P)en;-oIIm~N!)n&oPB2xY-;_{z+L#g{*CaaL7)Z}l9mxZXdnXDUz-B6e;@yi+
zh6qK($=lH?kaGl9%46RFRgI!8FHcFko)owH%N;C8@w&fZzwQ~
z%WeB;J{2iD^qPKBP{XSM((na
zhN>h^*Jh$XXZ<|9(7nYol@#aI^rl=e?-KzgHGI=T-!RWD*(WR~ym(A7u`$j0`Brdw
znSlFd5n=G<_vu@dYY!)*QC7l1%SnnToT-H;!lGDdNGU`m*3%_s&wGKnM%We!O&1h!
zZCn_e@~&2yrKAhN6r?}rkFY#8OHWN7CG=$Zd$Qn9>RaZ5uy>2`-na;fb#-9<#PL96C$J?W&_i;lzD62?4}
qDN*f)C)Id)lr?|Y?g3Vu#NiIO?u^XYw$o3R`Gg8VFVc*5-u(+N?GU*D
diff --git a/server/api/action/action.attributes.js b/server/api/action/action.attributes.js
index 62b88cb..d6e043b 100644
--- a/server/api/action/action.attributes.js
+++ b/server/api/action/action.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x6f6d=['exports','getDataValue','action','STRING','integration','motionbar','jscripty','bot','script','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','motionbar[NULL,NULL,WinAppArguments]','TEXT','sequelize'];(function(_0x30115a,_0x5a0ed0){var _0x52cff4=function(_0x41f1a0){while(--_0x41f1a0){_0x30115a['push'](_0x30115a['shift']());}};_0x52cff4(++_0x5a0ed0);}(_0x6f6d,0x1db));var _0xd6f6=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x6f6d[_0x3b380d];return _0x54502b;};'use strict';var Sequelize=require(_0xd6f6('0x0'));module[_0xd6f6('0x1')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x5caaf1){return this[_0xd6f6('0x2')](_0xd6f6('0x3'));}},'action':{'type':Sequelize[_0xd6f6('0x4')],'allowNull':![],'validate':{'isIn':{'args':[['contactManager',_0xd6f6('0x5'),_0xd6f6('0x6'),_0xd6f6('0x7'),'urlForward','browser',_0xd6f6('0x8'),_0xd6f6('0x9')]],'msg':_0xd6f6('0xa')}},'comment':_0xd6f6('0xa')},'data1':{'type':Sequelize[_0xd6f6('0x4')](0x1000),'comment':_0xd6f6('0xb')},'data2':{'type':Sequelize[_0xd6f6('0x4')](0x1000),'comment':'integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]'},'data3':{'type':Sequelize[_0xd6f6('0x4')](0x1000),'comment':_0xd6f6('0xc')},'data4':{'type':Sequelize['STRING'](0x1000)},'data5':{'type':Sequelize[_0xd6f6('0x4')](0x1000)},'data6':{'type':Sequelize[_0xd6f6('0x4')]},'data7':{'type':Sequelize[_0xd6f6('0xd')]}};
\ No newline at end of file
+var _0xd68d=['TEXT','exports','action','motionbar','jscripty','urlForward','browser','bot','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','STRING','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]','motionbar[NULL,NULL,WinAppArguments]'];(function(_0x5b8c28,_0x219f5f){var _0x4a36ec=function(_0x297c4e){while(--_0x297c4e){_0x5b8c28['push'](_0x5b8c28['shift']());}};_0x4a36ec(++_0x219f5f);}(_0xd68d,0x153));var _0xdd68=function(_0x2ccaa3,_0x382907){_0x2ccaa3=_0x2ccaa3-0x0;var _0x4599d6=_0xd68d[_0x2ccaa3];return _0x4599d6;};'use strict';var Sequelize=require('sequelize');module[_0xdd68('0x0')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(_0x4028bd){return this['getDataValue'](_0xdd68('0x1'));}},'action':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'isIn':{'args':[['contactManager','integration',_0xdd68('0x2'),_0xdd68('0x3'),_0xdd68('0x4'),_0xdd68('0x5'),_0xdd68('0x6'),'script']],'msg':_0xdd68('0x7')}},'comment':_0xdd68('0x7')},'data1':{'type':Sequelize[_0xdd68('0x8')](0x1000),'comment':_0xdd68('0x9')},'data2':{'type':Sequelize[_0xdd68('0x8')](0x1000),'comment':_0xdd68('0xa')},'data3':{'type':Sequelize[_0xdd68('0x8')](0x1000),'comment':_0xdd68('0xb')},'data4':{'type':Sequelize['STRING'](0x1000)},'data5':{'type':Sequelize['STRING'](0x1000)},'data6':{'type':Sequelize['STRING']},'data7':{'type':Sequelize[_0xdd68('0xc')]}};
\ No newline at end of file
diff --git a/server/api/action/action.controller.js b/server/api/action/action.controller.js
index 2e0837e..60fb18c 100644
--- a/server/api/action/action.controller.js
+++ b/server/api/action/action.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4eae=['body','Action','find','params','catch','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','reject','then','destroy','end','error','stack','name','send'];(function(_0x39106e,_0x586f3d){var _0x892aec=function(_0xded1b5){while(--_0xded1b5){_0x39106e['push'](_0x39106e['shift']());}};_0x892aec(++_0x586f3d);}(_0x4eae,0x9b));var _0xe4ea=function(_0x5e6ea3,_0x9addd2){_0x5e6ea3=_0x5e6ea3-0x0;var _0x4048b5=_0x4eae[_0x5e6ea3];return _0x4048b5;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xe4ea('0x0'));var rimraf=require(_0xe4ea('0x1'));var zipdir=require(_0xe4ea('0x2'));var jsonpatch=require(_0xe4ea('0x3'));var rp=require(_0xe4ea('0x4'));var moment=require('moment');var BPromise=require(_0xe4ea('0x5'));var Mustache=require(_0xe4ea('0x6'));var util=require(_0xe4ea('0x7'));var path=require(_0xe4ea('0x8'));var sox=require(_0xe4ea('0x9'));var csv=require('to-csv');var ejs=require(_0xe4ea('0xa'));var fs=require('fs');var _=require(_0xe4ea('0xb'));var squel=require(_0xe4ea('0xc'));var crypto=require(_0xe4ea('0xd'));var jsforce=require(_0xe4ea('0xe'));var deskjs=require(_0xe4ea('0xf'));var toCsv=require(_0xe4ea('0x10'));var querystring=require(_0xe4ea('0x11'));var Papa=require(_0xe4ea('0x12'));var Redis=require('ioredis');var authService=require(_0xe4ea('0x13'));var qs=require(_0xe4ea('0x14'));var as=require(_0xe4ea('0x15'));var hardwareService=require(_0xe4ea('0x16'));var logger=require(_0xe4ea('0x17'))(_0xe4ea('0x18'));var utils=require(_0xe4ea('0x19'));var config=require(_0xe4ea('0x1a'));var db=require(_0xe4ea('0x1b'))['db'];function respondWithStatusCode(_0x486cb0,_0x18107e){_0x18107e=_0x18107e||0xcc;return function(_0x52232b){if(_0x52232b){return _0x486cb0[_0xe4ea('0x1c')](_0x18107e);}return _0x486cb0[_0xe4ea('0x1d')](_0x18107e)['end']();};}function respondWithResult(_0x759de4,_0x1961ec){_0x1961ec=_0x1961ec||0xc8;return function(_0x444ec7){if(_0x444ec7){return _0x759de4[_0xe4ea('0x1d')](_0x1961ec)[_0xe4ea('0x1e')](_0x444ec7);}};}function respondWithFilteredResult(_0x4e1510,_0x370c1a){return function(_0x2e4485){if(_0x2e4485){var _0x31be86=_0x2e4485[_0xe4ea('0x1f')],_0xebd4ce=_0x370c1a[_0xe4ea('0x20')],_0x1007ac=_0x370c1a[_0xe4ea('0x20')]+_0x370c1a[_0xe4ea('0x21')],_0x1aa2f4;if(_0x1007ac>=_0x31be86){_0x1007ac=_0x31be86;_0x1aa2f4=0xc8;}else{_0x1aa2f4=0xce;}_0x4e1510[_0xe4ea('0x1d')](_0x1aa2f4);return _0x4e1510[_0xe4ea('0x22')](_0xe4ea('0x23'),_0xebd4ce+'-'+_0x1007ac+'/'+_0x31be86)[_0xe4ea('0x1e')](_0x2e4485);}return null;};}function patchUpdates(_0x2ef484){return function(_0x156c6d){try{jsonpatch[_0xe4ea('0x24')](_0x156c6d,_0x2ef484,!![]);}catch(_0x3681ab){return BPromise[_0xe4ea('0x25')](_0x3681ab);}return _0x156c6d['save']();};}function saveUpdates(_0xadb225,_0x304d7f){return function(_0xd0f821){if(_0xd0f821){return _0xd0f821['update'](_0xadb225)[_0xe4ea('0x26')](function(_0x42f656){return _0x42f656;});}return null;};}function removeEntity(_0x5f4302,_0x57915e){return function(_0x12300a){if(_0x12300a){return _0x12300a[_0xe4ea('0x27')]()[_0xe4ea('0x26')](function(){_0x5f4302['status'](0xcc)[_0xe4ea('0x28')]();});}};}function handleEntityNotFound(_0x26d3f6,_0x2861da){return function(_0x87450c){if(!_0x87450c){_0x26d3f6[_0xe4ea('0x1c')](0x194);}return _0x87450c;};}function handleError(_0x46272f,_0x32a543){_0x32a543=_0x32a543||0x1f4;return function(_0x2963de){logger[_0xe4ea('0x29')](_0x2963de[_0xe4ea('0x2a')]);if(_0x2963de[_0xe4ea('0x2b')]){delete _0x2963de[_0xe4ea('0x2b')];}_0x46272f['status'](_0x32a543)[_0xe4ea('0x2c')](_0x2963de);};}exports['update']=function(_0x206837,_0x23ef93){if(_0x206837[_0xe4ea('0x2d')]['id']){delete _0x206837['body']['id'];}return db[_0xe4ea('0x2e')][_0xe4ea('0x2f')]({'where':{'id':_0x206837[_0xe4ea('0x30')]['id']}})[_0xe4ea('0x26')](handleEntityNotFound(_0x23ef93,null))[_0xe4ea('0x26')](saveUpdates(_0x206837['body'],null))[_0xe4ea('0x26')](respondWithResult(_0x23ef93,null))[_0xe4ea('0x31')](handleError(_0x23ef93,null));};exports['destroy']=function(_0x184bb5,_0x5d0e2f){return db[_0xe4ea('0x2e')]['find']({'where':{'id':_0x184bb5[_0xe4ea('0x30')]['id']}})[_0xe4ea('0x26')](handleEntityNotFound(_0x5d0e2f,null))[_0xe4ea('0x26')](removeEntity(_0x5d0e2f,null))[_0xe4ea('0x31')](handleError(_0x5d0e2f,null));};
\ No newline at end of file
+var _0x989e=['../../components/parsers/advancedSearch','api','../../config/utils','../../config/environment','sendStatus','status','end','json','count','offset','set','Content-Range','save','update','then','error','stack','name','send','body','Action','find','params','catch','destroy','html-pdf','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','lodash','squel','crypto','desk.js','to-csv','querystring','papaparse','ioredis'];(function(_0x4232d8,_0x13fd09){var _0x324de2=function(_0x167ad5){while(--_0x167ad5){_0x4232d8['push'](_0x4232d8['shift']());}};_0x324de2(++_0x13fd09);}(_0x989e,0x1f2));var _0xe989=function(_0x15fc3c,_0x35665b){_0x15fc3c=_0x15fc3c-0x0;var _0x94c5c8=_0x989e[_0x15fc3c];return _0x94c5c8;};'use strict';var pdf=require(_0xe989('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xe989('0x1'));var zipdir=require(_0xe989('0x2'));var jsonpatch=require(_0xe989('0x3'));var rp=require('request-promise');var moment=require(_0xe989('0x4'));var BPromise=require(_0xe989('0x5'));var Mustache=require(_0xe989('0x6'));var util=require(_0xe989('0x7'));var path=require(_0xe989('0x8'));var sox=require(_0xe989('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require(_0xe989('0xa'));var squel=require(_0xe989('0xb'));var crypto=require(_0xe989('0xc'));var jsforce=require('jsforce');var deskjs=require(_0xe989('0xd'));var toCsv=require(_0xe989('0xe'));var querystring=require(_0xe989('0xf'));var Papa=require(_0xe989('0x10'));var Redis=require(_0xe989('0x11'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xe989('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0xe989('0x13'));var utils=require(_0xe989('0x14'));var config=require(_0xe989('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x4de8bb,_0x39c593){_0x39c593=_0x39c593||0xcc;return function(_0x1e2289){if(_0x1e2289){return _0x4de8bb[_0xe989('0x16')](_0x39c593);}return _0x4de8bb[_0xe989('0x17')](_0x39c593)[_0xe989('0x18')]();};}function respondWithResult(_0x864cfd,_0x90a3fc){_0x90a3fc=_0x90a3fc||0xc8;return function(_0x1b6a7d){if(_0x1b6a7d){return _0x864cfd['status'](_0x90a3fc)[_0xe989('0x19')](_0x1b6a7d);}};}function respondWithFilteredResult(_0x59f831,_0x5432b2){return function(_0x14c44c){if(_0x14c44c){var _0x5d0ff5=_0x14c44c[_0xe989('0x1a')],_0x3f23f0=_0x5432b2[_0xe989('0x1b')],_0x1838ff=_0x5432b2[_0xe989('0x1b')]+_0x5432b2['limit'],_0x201975;if(_0x1838ff>=_0x5d0ff5){_0x1838ff=_0x5d0ff5;_0x201975=0xc8;}else{_0x201975=0xce;}_0x59f831[_0xe989('0x17')](_0x201975);return _0x59f831[_0xe989('0x1c')](_0xe989('0x1d'),_0x3f23f0+'-'+_0x1838ff+'/'+_0x5d0ff5)[_0xe989('0x19')](_0x14c44c);}return null;};}function patchUpdates(_0x536fb1){return function(_0x403e5e){try{jsonpatch['apply'](_0x403e5e,_0x536fb1,!![]);}catch(_0x5d391d){return BPromise['reject'](_0x5d391d);}return _0x403e5e[_0xe989('0x1e')]();};}function saveUpdates(_0x589ff7,_0x55e9bc){return function(_0x2fcb0e){if(_0x2fcb0e){return _0x2fcb0e[_0xe989('0x1f')](_0x589ff7)[_0xe989('0x20')](function(_0x7087c){return _0x7087c;});}return null;};}function removeEntity(_0x333497,_0x2604d1){return function(_0x45317a){if(_0x45317a){return _0x45317a['destroy']()[_0xe989('0x20')](function(){_0x333497[_0xe989('0x17')](0xcc)[_0xe989('0x18')]();});}};}function handleEntityNotFound(_0x133ba4,_0x11b25a){return function(_0x57e8a6){if(!_0x57e8a6){_0x133ba4[_0xe989('0x16')](0x194);}return _0x57e8a6;};}function handleError(_0x157980,_0x3f2d71){_0x3f2d71=_0x3f2d71||0x1f4;return function(_0x14584c){logger[_0xe989('0x21')](_0x14584c[_0xe989('0x22')]);if(_0x14584c[_0xe989('0x23')]){delete _0x14584c[_0xe989('0x23')];}_0x157980['status'](_0x3f2d71)[_0xe989('0x24')](_0x14584c);};}exports['update']=function(_0x2578e4,_0x340911){if(_0x2578e4[_0xe989('0x25')]['id']){delete _0x2578e4[_0xe989('0x25')]['id'];}return db[_0xe989('0x26')][_0xe989('0x27')]({'where':{'id':_0x2578e4[_0xe989('0x28')]['id']}})['then'](handleEntityNotFound(_0x340911,null))['then'](saveUpdates(_0x2578e4[_0xe989('0x25')],null))['then'](respondWithResult(_0x340911,null))[_0xe989('0x29')](handleError(_0x340911,null));};exports[_0xe989('0x2a')]=function(_0x538650,_0x55bfde){return db[_0xe989('0x26')][_0xe989('0x27')]({'where':{'id':_0x538650[_0xe989('0x28')]['id']}})['then'](handleEntityNotFound(_0x55bfde,null))[_0xe989('0x20')](removeEntity(_0x55bfde,null))['catch'](handleError(_0x55bfde,null));};
\ No newline at end of file
diff --git a/server/api/action/action.model.js b/server/api/action/action.model.js
index e3fb911..c965e8d 100644
--- a/server/api/action/action.model.js
+++ b/server/api/action/action.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xd03c=['bluebird','request-promise','rimraf','./action.attributes','exports','Action','util','../../config/logger','api','moment'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xd03c,0x114));var _0xcd03=function(_0x5a8d22,_0xc3ae0c){_0x5a8d22=_0x5a8d22-0x0;var _0x5220c4=_0xd03c[_0x5a8d22];return _0x5220c4;};'use strict';var _=require('lodash');var util=require(_0xcd03('0x0'));var logger=require(_0xcd03('0x1'))(_0xcd03('0x2'));var moment=require(_0xcd03('0x3'));var BPromise=require(_0xcd03('0x4'));var rp=require(_0xcd03('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcd03('0x6'));var config=require('../../config/environment');var attributes=require(_0xcd03('0x7'));module[_0xcd03('0x8')]=function(_0x129427,_0x97caa4){return _0x129427['define'](_0xcd03('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xb354=['exports','define','Action','lodash','../../config/logger','moment','request-promise','path','../../config/environment','./action.attributes'];(function(_0x8ff761,_0x25c272){var _0x37e4e0=function(_0x5187d4){while(--_0x5187d4){_0x8ff761['push'](_0x8ff761['shift']());}};_0x37e4e0(++_0x25c272);}(_0xb354,0x11b));var _0x4b35=function(_0x233f8a,_0x2b684a){_0x233f8a=_0x233f8a-0x0;var _0x1aaebb=_0xb354[_0x233f8a];return _0x1aaebb;};'use strict';var _=require(_0x4b35('0x0'));var util=require('util');var logger=require(_0x4b35('0x1'))('api');var moment=require(_0x4b35('0x2'));var BPromise=require('bluebird');var rp=require(_0x4b35('0x3'));var fs=require('fs');var path=require(_0x4b35('0x4'));var rimraf=require('rimraf');var config=require(_0x4b35('0x5'));var attributes=require(_0x4b35('0x6'));module[_0x4b35('0x7')]=function(_0x352e89,_0x2767c6){return _0x352e89[_0x4b35('0x8')](_0x4b35('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/action/action.rpc.js b/server/api/action/action.rpc.js
index b28c8ce..8951216 100644
--- a/server/api/action/action.rpc.js
+++ b/server/api/action/action.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xb7e7=['Action,\x20%s,\x20%s','debug','Action,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','moment','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','http','request','then','info'];(function(_0x1d8833,_0x4b9cf7){var _0x3b1232=function(_0x1c8bbe){while(--_0x1c8bbe){_0x1d8833['push'](_0x1d8833['shift']());}};_0x3b1232(++_0x4b9cf7);}(_0xb7e7,0x121));var _0x7b7e=function(_0x126558,_0x143c9a){_0x126558=_0x126558-0x0;var _0x1f6d14=_0xb7e7[_0x126558];return _0x1f6d14;};'use strict';var _=require(_0x7b7e('0x0'));var util=require('util');var moment=require(_0x7b7e('0x1'));var BPromise=require('bluebird');var rs=require(_0x7b7e('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x7b7e('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x7b7e('0x4'))(_0x7b7e('0x5'));var config=require(_0x7b7e('0x6'));var jayson=require('jayson/promise');var client=jayson['client'][_0x7b7e('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x372bde,_0x7f87e0,_0x55ce81){return new BPromise(function(_0x42b871,_0x223587){return client[_0x7b7e('0x8')](_0x372bde,_0x55ce81)[_0x7b7e('0x9')](function(_0x148964){logger[_0x7b7e('0xa')](_0x7b7e('0xb'),_0x7f87e0,'request\x20sent');logger[_0x7b7e('0xc')](_0x7b7e('0xd'),_0x7f87e0,_0x7b7e('0xe'),JSON[_0x7b7e('0xf')](_0x148964));if(_0x148964[_0x7b7e('0x10')]){if(_0x148964[_0x7b7e('0x10')][_0x7b7e('0x11')]===0x1f4){logger[_0x7b7e('0x10')](_0x7b7e('0xb'),_0x7f87e0,_0x148964['error'][_0x7b7e('0x12')]);return _0x223587(_0x148964[_0x7b7e('0x10')]['message']);}logger[_0x7b7e('0x10')]('Action,\x20%s,\x20%s',_0x7f87e0,_0x148964['error'][_0x7b7e('0x12')]);return _0x42b871(_0x148964[_0x7b7e('0x10')][_0x7b7e('0x12')]);}else{logger[_0x7b7e('0xa')](_0x7b7e('0xb'),_0x7f87e0,'request\x20sent');_0x42b871(_0x148964['result'][_0x7b7e('0x12')]);}})[_0x7b7e('0x13')](function(_0x27f999){logger[_0x7b7e('0x10')](_0x7b7e('0xb'),_0x7f87e0,_0x27f999);_0x223587(_0x27f999);});});}
\ No newline at end of file
+var _0xb7e7=['Action,\x20%s,\x20%s','debug','Action,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','moment','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','http','request','then','info'];(function(_0x561320,_0x142ed9){var _0x1b7c07=function(_0x5e8d9d){while(--_0x5e8d9d){_0x561320['push'](_0x561320['shift']());}};_0x1b7c07(++_0x142ed9);}(_0xb7e7,0x121));var _0x7b7e=function(_0x21a9d9,_0x4d5ac8){_0x21a9d9=_0x21a9d9-0x0;var _0x46adce=_0xb7e7[_0x21a9d9];return _0x46adce;};'use strict';var _=require(_0x7b7e('0x0'));var util=require('util');var moment=require(_0x7b7e('0x1'));var BPromise=require('bluebird');var rs=require(_0x7b7e('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x7b7e('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x7b7e('0x4'))(_0x7b7e('0x5'));var config=require(_0x7b7e('0x6'));var jayson=require('jayson/promise');var client=jayson['client'][_0x7b7e('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x372bde,_0x7f87e0,_0x55ce81){return new BPromise(function(_0x42b871,_0x223587){return client[_0x7b7e('0x8')](_0x372bde,_0x55ce81)[_0x7b7e('0x9')](function(_0x148964){logger[_0x7b7e('0xa')](_0x7b7e('0xb'),_0x7f87e0,'request\x20sent');logger[_0x7b7e('0xc')](_0x7b7e('0xd'),_0x7f87e0,_0x7b7e('0xe'),JSON[_0x7b7e('0xf')](_0x148964));if(_0x148964[_0x7b7e('0x10')]){if(_0x148964[_0x7b7e('0x10')][_0x7b7e('0x11')]===0x1f4){logger[_0x7b7e('0x10')](_0x7b7e('0xb'),_0x7f87e0,_0x148964['error'][_0x7b7e('0x12')]);return _0x223587(_0x148964[_0x7b7e('0x10')]['message']);}logger[_0x7b7e('0x10')]('Action,\x20%s,\x20%s',_0x7f87e0,_0x148964['error'][_0x7b7e('0x12')]);return _0x42b871(_0x148964[_0x7b7e('0x10')][_0x7b7e('0x12')]);}else{logger[_0x7b7e('0xa')](_0x7b7e('0xb'),_0x7f87e0,'request\x20sent');_0x42b871(_0x148964['result'][_0x7b7e('0x12')]);}})[_0x7b7e('0x13')](function(_0x27f999){logger[_0x7b7e('0x10')](_0x7b7e('0xb'),_0x7f87e0,_0x27f999);_0x223587(_0x27f999);});});}
\ No newline at end of file
diff --git a/server/api/action/index.js b/server/api/action/index.js
index 6015819..bec85f2 100644
--- a/server/api/action/index.js
+++ b/server/api/action/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa5ad=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./action.controller','/:id','update','delete','isAuthenticated','destroy','multer','util','path','connect-timeout'];(function(_0x566558,_0xe8c049){var _0x26430e=function(_0x52b2c8){while(--_0x52b2c8){_0x566558['push'](_0x566558['shift']());}};_0x26430e(++_0xe8c049);}(_0xa5ad,0x191));var _0xda5a=function(_0x419f6a,_0x34be35){_0x419f6a=_0x419f6a-0x0;var _0x1bdcd0=_0xa5ad[_0x419f6a];return _0x1bdcd0;};'use strict';var multer=require(_0xda5a('0x0'));var util=require(_0xda5a('0x1'));var path=require(_0xda5a('0x2'));var timeout=require(_0xda5a('0x3'));var express=require(_0xda5a('0x4'));var router=express[_0xda5a('0x5')]();var auth=require(_0xda5a('0x6'));var interaction=require(_0xda5a('0x7'));var config=require(_0xda5a('0x8'));var controller=require(_0xda5a('0x9'));router['put'](_0xda5a('0xa'),auth['isAuthenticated'](),controller[_0xda5a('0xb')]);router[_0xda5a('0xc')](_0xda5a('0xa'),auth[_0xda5a('0xd')](),controller[_0xda5a('0xe')]);module['exports']=router;
\ No newline at end of file
+var _0x14a0=['../../components/interaction/service','../../config/environment','isAuthenticated','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service'];(function(_0xc1375,_0x5da520){var _0x3a0ff2=function(_0x776919){while(--_0x776919){_0xc1375['push'](_0xc1375['shift']());}};_0x3a0ff2(++_0x5da520);}(_0x14a0,0x1ab));var _0x014a=function(_0x79a609,_0x4565f1){_0x79a609=_0x79a609-0x0;var _0x3b6943=_0x14a0[_0x79a609];return _0x3b6943;};'use strict';var multer=require(_0x014a('0x0'));var util=require(_0x014a('0x1'));var path=require('path');var timeout=require(_0x014a('0x2'));var express=require('express');var router=express[_0x014a('0x3')]();var auth=require(_0x014a('0x4'));var interaction=require(_0x014a('0x5'));var config=require(_0x014a('0x6'));var controller=require('./action.controller');router['put']('/:id',auth[_0x014a('0x7')](),controller[_0x014a('0x8')]);router[_0x014a('0x9')]('/:id',auth[_0x014a('0x7')](),controller[_0x014a('0xa')]);module[_0x014a('0xb')]=router;
\ No newline at end of file
diff --git a/server/api/analyticCustomReport/analyticCustomReport.attributes.js b/server/api/analyticCustomReport/analyticCustomReport.attributes.js
index c96a680..b6a52f7 100644
--- a/server/api/analyticCustomReport/analyticCustomReport.attributes.js
+++ b/server/api/analyticCustomReport/analyticCustomReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2959=['TEXT','sequelize','exports','STRING'];(function(_0x4e6ae6,_0x49dba6){var _0x23c108=function(_0x1bc103){while(--_0x1bc103){_0x4e6ae6['push'](_0x4e6ae6['shift']());}};_0x23c108(++_0x49dba6);}(_0x2959,0x11d));var _0x9295=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x2959[_0x42cae2];return _0x5f256f;};'use strict';var Sequelize=require(_0x9295('0x0'));module[_0x9295('0x1')]={'name':{'type':Sequelize[_0x9295('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'parent':{'type':Sequelize[_0x9295('0x2')]},'table':{'type':Sequelize[_0x9295('0x2')]},'conditions':{'type':Sequelize[_0x9295('0x3')]},'joins':{'type':Sequelize[_0x9295('0x3')]}};
\ No newline at end of file
+var _0x4e86=['TEXT','sequelize','exports','STRING'];(function(_0x5ab726,_0x44e515){var _0x235b82=function(_0x30db34){while(--_0x30db34){_0x5ab726['push'](_0x5ab726['shift']());}};_0x235b82(++_0x44e515);}(_0x4e86,0x1b5));var _0x64e8=function(_0x390f7e,_0x49be98){_0x390f7e=_0x390f7e-0x0;var _0x53a8c6=_0x4e86[_0x390f7e];return _0x53a8c6;};'use strict';var Sequelize=require(_0x64e8('0x0'));module[_0x64e8('0x1')]={'name':{'type':Sequelize[_0x64e8('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x64e8('0x2')]},'parent':{'type':Sequelize[_0x64e8('0x2')]},'table':{'type':Sequelize['STRING']},'conditions':{'type':Sequelize[_0x64e8('0x3')]},'joins':{'type':Sequelize[_0x64e8('0x3')]}};
\ No newline at end of file
diff --git a/server/api/analyticCustomReport/analyticCustomReport.controller.js b/server/api/analyticCustomReport/analyticCustomReport.controller.js
index e0f5a3b..c14bd8d 100644
--- a/server/api/analyticCustomReport/analyticCustomReport.controller.js
+++ b/server/api/analyticCustomReport/analyticCustomReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xaf6c=['../../files/reports','savename','COUNT(*)','run','runReport','eml-format','rimraf','fast-json-patch','request-promise','moment','mustache','to-csv','ejs','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','sendStatus','status','json','count','offset','limit','set','Content-Range','reject','save','update','then','destroy','CustomReports','UserProfileResource','end','error','stack','name','map','rawAttributes','type','key','model','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','sort','filter','where','merge','VIRTUAL','AnalyticCustomReport','include','findAll','rows','catch','show','params','keys','includeAll','options','create','body','user','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileSection','find','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','left_join','right_join','cross_join','SUM(%s)','COUNT(DISTINCT\x20%s)','AVG(%s)','GROUP_CONCAT(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','SEC_TO_TIME(%s)','DATE(%s)','ROUND(%s)','UNIX_TIMESTAMP(%s)','includes','IS\x20NULL','IS\x20EMPTY','IS\x20NOT\x20EMPTY','rules','group','field','condition','value','getFields','Sequelize','ValidationErrorItem','Please\x20insert\x20at\x20least\x20one\x20field','AnalyticMetric','keyBy','select','table','MetricId','metric','function','format','replace','groupBy','order','orderBy','DESC','alias','joins','parse','parentKey','foreignKey','foreignTable','%s.%s\x20=\x20%s.%s','conditions','clone','debug','Limited\x20Query:','sequelize','toString','QueryTypes','SELECT','join','COUNT(%s)','MAX(%s)','MIN(%s)','HOUR(%s)','IS\x20NOT\x20NULL','from','No\x20available\x20data','output','web','fullPath','%s-%s.%s','csv','cdr','startDate','endDate','.createdAt\x20BETWEEN\x20?\x20AND\x20?','info','child_process','fork','../../components/export/'];(function(_0x34a595,_0x29589c){var _0x24821d=function(_0x53aeef){while(--_0x53aeef){_0x34a595['push'](_0x34a595['shift']());}};_0x24821d(++_0x29589c);}(_0xaf6c,0x13d));var _0xcaf6=function(_0xd4f745,_0x897ceb){_0xd4f745=_0xd4f745-0x0;var _0x491252=_0xaf6c[_0xd4f745];return _0x491252;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xcaf6('0x0'));var rimraf=require(_0xcaf6('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xcaf6('0x2'));var rp=require(_0xcaf6('0x3'));var moment=require(_0xcaf6('0x4'));var BPromise=require('bluebird');var Mustache=require(_0xcaf6('0x5'));var util=require('util');var path=require('path');var sox=require('sox');var csv=require(_0xcaf6('0x6'));var ejs=require(_0xcaf6('0x7'));var fs=require('fs');var _=require('lodash');var squel=require(_0xcaf6('0x8'));var crypto=require(_0xcaf6('0x9'));var jsforce=require('jsforce');var deskjs=require(_0xcaf6('0xa'));var toCsv=require(_0xcaf6('0x6'));var querystring=require(_0xcaf6('0xb'));var Papa=require(_0xcaf6('0xc'));var Redis=require(_0xcaf6('0xd'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xcaf6('0xe'));var hardwareService=require(_0xcaf6('0xf'));var logger=require(_0xcaf6('0x10'))('api');var utils=require(_0xcaf6('0x11'));var config=require(_0xcaf6('0x12'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x469beb,_0x13895d){_0x13895d=_0x13895d||0xcc;return function(_0x18c798){if(_0x18c798){return _0x469beb[_0xcaf6('0x13')](_0x13895d);}return _0x469beb[_0xcaf6('0x14')](_0x13895d)['end']();};}function respondWithResult(_0x5df73d,_0xc9cf77){_0xc9cf77=_0xc9cf77||0xc8;return function(_0x1b1ccc){if(_0x1b1ccc){return _0x5df73d[_0xcaf6('0x14')](_0xc9cf77)[_0xcaf6('0x15')](_0x1b1ccc);}};}function respondWithFilteredResult(_0x1c777a,_0x2d08d1){return function(_0x3e5d5f){if(_0x3e5d5f){var _0x308073=_0x3e5d5f[_0xcaf6('0x16')],_0x33d07a=_0x2d08d1[_0xcaf6('0x17')],_0x442fd5=_0x2d08d1[_0xcaf6('0x17')]+_0x2d08d1[_0xcaf6('0x18')],_0x37a1ae;if(_0x442fd5>=_0x308073){_0x442fd5=_0x308073;_0x37a1ae=0xc8;}else{_0x37a1ae=0xce;}_0x1c777a[_0xcaf6('0x14')](_0x37a1ae);return _0x1c777a[_0xcaf6('0x19')](_0xcaf6('0x1a'),_0x33d07a+'-'+_0x442fd5+'/'+_0x308073)[_0xcaf6('0x15')](_0x3e5d5f);}return null;};}function patchUpdates(_0x21c04f){return function(_0xe8cd9){try{jsonpatch['apply'](_0xe8cd9,_0x21c04f,!![]);}catch(_0x5e2cf2){return BPromise[_0xcaf6('0x1b')](_0x5e2cf2);}return _0xe8cd9[_0xcaf6('0x1c')]();};}function saveUpdates(_0x3a8935,_0x37a4a8){return function(_0x543db1){if(_0x543db1){return _0x543db1[_0xcaf6('0x1d')](_0x3a8935)[_0xcaf6('0x1e')](function(_0x5004c4){return _0x5004c4;});}return null;};}function removeEntity(_0x373fdd,_0x2a9a3b){return function(_0x10c683){if(_0x10c683){return _0x10c683[_0xcaf6('0x1f')]()[_0xcaf6('0x1e')](function(){var _0x3b4d1d=_0x10c683['get']({'plain':!![]});var _0x3fab97=_0xcaf6('0x20');return db[_0xcaf6('0x21')][_0xcaf6('0x1f')]({'where':{'type':_0x3fab97,'resourceId':_0x3b4d1d['id']}})[_0xcaf6('0x1e')](function(){return _0x10c683;});})[_0xcaf6('0x1e')](function(){_0x373fdd['status'](0xcc)[_0xcaf6('0x22')]();});}};}function handleEntityNotFound(_0x11c300,_0x387acc){return function(_0x5c52dd){if(!_0x5c52dd){_0x11c300[_0xcaf6('0x13')](0x194);}return _0x5c52dd;};}function handleError(_0x5177f4,_0xc24d9d){_0xc24d9d=_0xc24d9d||0x1f4;return function(_0xe3c08){logger[_0xcaf6('0x23')](_0xe3c08[_0xcaf6('0x24')]);if(_0xe3c08[_0xcaf6('0x25')]){delete _0xe3c08[_0xcaf6('0x25')];}_0x5177f4[_0xcaf6('0x14')](_0xc24d9d)['send'](_0xe3c08);};}exports['index']=function(_0x11fef7,_0x5b04a5){var _0x3ef390={},_0x4cead9={},_0x1e0072={'count':0x0,'rows':[]};var _0x2223a9=_[_0xcaf6('0x26')](db['AnalyticCustomReport'][_0xcaf6('0x27')],function(_0x328c80){return{'name':_0x328c80['fieldName'],'type':_0x328c80[_0xcaf6('0x28')][_0xcaf6('0x29')]};});_0x4cead9[_0xcaf6('0x2a')]=_['map'](_0x2223a9,_0xcaf6('0x25'));_0x4cead9[_0xcaf6('0x2b')]=_['keys'](_0x11fef7[_0xcaf6('0x2b')]);_0x4cead9[_0xcaf6('0x2c')]=_[_0xcaf6('0x2d')](_0x4cead9[_0xcaf6('0x2a')],_0x4cead9[_0xcaf6('0x2b')]);_0x3ef390['attributes']=_[_0xcaf6('0x2d')](_0x4cead9[_0xcaf6('0x2a')],qs[_0xcaf6('0x2e')](_0x11fef7['query'][_0xcaf6('0x2e')]));_0x3ef390[_0xcaf6('0x2f')]=_0x3ef390[_0xcaf6('0x2f')][_0xcaf6('0x30')]?_0x3ef390[_0xcaf6('0x2f')]:_0x4cead9[_0xcaf6('0x2a')];if(!_0x11fef7[_0xcaf6('0x2b')][_0xcaf6('0x31')](_0xcaf6('0x32'))){_0x3ef390['limit']=qs[_0xcaf6('0x18')](_0x11fef7[_0xcaf6('0x2b')][_0xcaf6('0x18')]);_0x3ef390[_0xcaf6('0x17')]=qs[_0xcaf6('0x17')](_0x11fef7[_0xcaf6('0x2b')]['offset']);}_0x3ef390['order']=qs['sort'](_0x11fef7[_0xcaf6('0x2b')][_0xcaf6('0x33')]);_0x3ef390['where']=qs[_0xcaf6('0x2c')](_['pick'](_0x11fef7[_0xcaf6('0x2b')],_0x4cead9[_0xcaf6('0x2c')]));if(_0x11fef7[_0xcaf6('0x2b')][_0xcaf6('0x34')]){_0x3ef390[_0xcaf6('0x35')]=_[_0xcaf6('0x36')](_0x3ef390[_0xcaf6('0x35')],{'$or':_[_0xcaf6('0x26')](_0x2223a9,function(_0x4b21a2){if(_0x4b21a2[_0xcaf6('0x28')]!==_0xcaf6('0x37')){var _0x406627={};_0x406627[_0x4b21a2['name']]={'$like':'%'+_0x11fef7[_0xcaf6('0x2b')][_0xcaf6('0x34')]+'%'};return _0x406627;}})});}_0x3ef390=_[_0xcaf6('0x36')]({},_0x3ef390,_0x11fef7['options']);var _0x11faa7={'where':_0x3ef390[_0xcaf6('0x35')]};return db[_0xcaf6('0x38')][_0xcaf6('0x16')](_0x11faa7)['then'](function(_0x42cc1d){_0x1e0072[_0xcaf6('0x16')]=_0x42cc1d;if(_0x11fef7[_0xcaf6('0x2b')]['includeAll']){_0x3ef390[_0xcaf6('0x39')]=[{'all':!![]}];}return db[_0xcaf6('0x38')][_0xcaf6('0x3a')](_0x3ef390);})[_0xcaf6('0x1e')](function(_0x450119){_0x1e0072[_0xcaf6('0x3b')]=_0x450119;return _0x1e0072;})['then'](respondWithFilteredResult(_0x5b04a5,_0x3ef390))[_0xcaf6('0x3c')](handleError(_0x5b04a5,null));};exports[_0xcaf6('0x3d')]=function(_0x24dcb5,_0x827630){var _0x202946={'raw':![],'where':{'id':_0x24dcb5[_0xcaf6('0x3e')]['id']}},_0x430925={};_0x430925[_0xcaf6('0x2a')]=_['keys'](db[_0xcaf6('0x38')][_0xcaf6('0x27')]);_0x430925[_0xcaf6('0x2b')]=_[_0xcaf6('0x3f')](_0x24dcb5[_0xcaf6('0x2b')]);_0x430925[_0xcaf6('0x2c')]=_[_0xcaf6('0x2d')](_0x430925[_0xcaf6('0x2a')],_0x430925[_0xcaf6('0x2b')]);_0x202946[_0xcaf6('0x2f')]=_[_0xcaf6('0x2d')](_0x430925[_0xcaf6('0x2a')],qs[_0xcaf6('0x2e')](_0x24dcb5[_0xcaf6('0x2b')][_0xcaf6('0x2e')]));_0x202946['attributes']=_0x202946[_0xcaf6('0x2f')][_0xcaf6('0x30')]?_0x202946[_0xcaf6('0x2f')]:_0x430925[_0xcaf6('0x2a')];if(_0x24dcb5[_0xcaf6('0x2b')][_0xcaf6('0x40')]){_0x202946['include']=[{'all':!![]}];}_0x202946=_['merge']({},_0x202946,_0x24dcb5[_0xcaf6('0x41')]);return db[_0xcaf6('0x38')]['find'](_0x202946)[_0xcaf6('0x1e')](handleEntityNotFound(_0x827630,null))[_0xcaf6('0x1e')](respondWithResult(_0x827630,null))[_0xcaf6('0x3c')](handleError(_0x827630,null));};exports[_0xcaf6('0x42')]=function(_0xa7459a,_0x3c373d){return db[_0xcaf6('0x38')][_0xcaf6('0x42')](_0xa7459a[_0xcaf6('0x43')],{})[_0xcaf6('0x1e')](function(_0x16cac2){var _0x35e432=_0xa7459a[_0xcaf6('0x44')][_0xcaf6('0x45')]({'plain':!![]});if(!_0x35e432)throw new Error(_0xcaf6('0x46'));if(_0x35e432['role']===_0xcaf6('0x44')){var _0x38d4d4=_0x16cac2[_0xcaf6('0x45')]({'plain':!![]});var _0x1f679a='Reports';return db[_0xcaf6('0x47')][_0xcaf6('0x48')]({'where':{'name':_0x1f679a,'userProfileId':_0x35e432[_0xcaf6('0x49')]},'raw':!![]})[_0xcaf6('0x1e')](function(_0x169a55){if(_0x169a55&&_0x169a55[_0xcaf6('0x4a')]===0x0){return db['UserProfileResource'][_0xcaf6('0x42')]({'name':_0x38d4d4['name'],'resourceId':_0x38d4d4['id'],'type':_0xcaf6('0x20'),'sectionId':_0x169a55['id']},{})[_0xcaf6('0x1e')](function(){return _0x16cac2;});}else{return _0x16cac2;}})[_0xcaf6('0x3c')](function(_0x3ce2a2){logger[_0xcaf6('0x23')](_0xcaf6('0x4b'),_0x3ce2a2);throw _0x3ce2a2;});}return _0x16cac2;})[_0xcaf6('0x1e')](respondWithResult(_0x3c373d,0xc9))[_0xcaf6('0x3c')](handleError(_0x3c373d,null));};exports[_0xcaf6('0x1d')]=function(_0x578f18,_0x4c4ebb){if(_0x578f18[_0xcaf6('0x43')]['id']){delete _0x578f18[_0xcaf6('0x43')]['id'];}return db[_0xcaf6('0x38')][_0xcaf6('0x48')]({'where':{'id':_0x578f18[_0xcaf6('0x3e')]['id']}})[_0xcaf6('0x1e')](handleEntityNotFound(_0x4c4ebb,null))[_0xcaf6('0x1e')](saveUpdates(_0x578f18['body'],null))[_0xcaf6('0x1e')](respondWithResult(_0x4c4ebb,null))['catch'](handleError(_0x4c4ebb,null));};exports[_0xcaf6('0x1f')]=function(_0xfa5fc0,_0x325f11){return db[_0xcaf6('0x38')]['find']({'where':{'id':_0xfa5fc0[_0xcaf6('0x3e')]['id']}})[_0xcaf6('0x1e')](handleEntityNotFound(_0x325f11,null))['then'](removeEntity(_0x325f11,null))[_0xcaf6('0x3c')](handleError(_0x325f11,null));};exports['preview']=function(_0x4d1bdc,_0x491a35){var _0x6e2292=0xa;var _0x599d89=['join',_0xcaf6('0x4c'),_0xcaf6('0x4d'),_0xcaf6('0x4e')];var _0x4ef50a={'SUM':_0xcaf6('0x4f'),'COUNT':'COUNT(%s)','COUNT DISTINCT':_0xcaf6('0x50'),'MAX':'MAX(%s)','MIN':'MIN(%s)','AVG':_0xcaf6('0x51'),'GROUP_CONCAT':_0xcaf6('0x52'),'GROUP_CONCAT ASC':_0xcaf6('0x53'),'GROUP_CONCAT DESC':_0xcaf6('0x54')};var _0x5d5acf={'SEC_TO_TIME':_0xcaf6('0x55'),'DATE':_0xcaf6('0x56'),'HOUR':'HOUR(%s)','ROUND':_0xcaf6('0x57'),'UNIX_TIMESTAMP':_0xcaf6('0x58')};var _0x2d0626=function(_0x561821){return!_[_0xcaf6('0x59')]([_0xcaf6('0x5a'),'IS\x20NOT\x20NULL',_0xcaf6('0x5b'),_0xcaf6('0x5c')],_0x561821);};var _0x5eb912=function(_0x6af028){if(!_0x6af028||!_0x6af028[_0xcaf6('0x5d')][_0xcaf6('0x30')]){return'';}for(var _0x126360='(',_0x3ce604=0x0;_0x3ce604<_0x6af028['rules']['length'];_0x3ce604+=0x1){_0x3ce604>0x0&&(_0x126360+='\x20'+_0x6af028['operator']+'\x20');_0x126360+=_0x6af028[_0xcaf6('0x5d')][_0x3ce604][_0xcaf6('0x5e')]?_0x5eb912(_0x6af028[_0xcaf6('0x5d')][_0x3ce604][_0xcaf6('0x5e')]):_0x6af028[_0xcaf6('0x5d')][_0x3ce604][_0xcaf6('0x5f')]+'\x20'+_0x6af028[_0xcaf6('0x5d')][_0x3ce604][_0xcaf6('0x60')]+(_0x2d0626(_0x6af028[_0xcaf6('0x5d')][_0x3ce604]['condition'])?'\x20'+_0x6af028[_0xcaf6('0x5d')][_0x3ce604][_0xcaf6('0x61')]:'');}return _0x126360+')';};var _0x202994={'where':{'id':_0x4d1bdc[_0xcaf6('0x3e')]['id']}},_0x1aa619,_0x2261fd,_0x3f67b8,_0xf40b1e,_0x4e541c;_0x202994=_[_0xcaf6('0x36')]({},_0x202994,_0x4d1bdc[_0xcaf6('0x41')]);return db[_0xcaf6('0x38')][_0xcaf6('0x48')](_0x202994)['then'](function(_0x4cffe0){if(_0x4cffe0){_0x1aa619=_0x4cffe0;return _0x4cffe0[_0xcaf6('0x62')]();}return null;})['then'](function(_0x42fd23){if(_0x42fd23){if(!_0x42fd23[_0xcaf6('0x30')]){throw new db[(_0xcaf6('0x63'))][(_0xcaf6('0x64'))](_0xcaf6('0x65'),0x193);}_0x2261fd=_0x42fd23;return db[_0xcaf6('0x66')][_0xcaf6('0x3a')]({'raw':!![]});}return null;})[_0xcaf6('0x1e')](function(_0x56bda0){if(_0x56bda0){_0x3f67b8=_[_0xcaf6('0x67')](_0x56bda0,'id');var _0x23594c;var _0x579f09=squel[_0xcaf6('0x68')]();_0x579f09['from'](_0x1aa619[_0xcaf6('0x69')]);for(var _0xad2b9a=0x0;_0xad2b9a<_0x2261fd[_0xcaf6('0x30')];_0xad2b9a+=0x1){_0x23594c=_0x2261fd[_0xad2b9a][_0xcaf6('0x6a')]?_0x3f67b8[_0x2261fd[_0xad2b9a][_0xcaf6('0x6a')]][_0xcaf6('0x6b')]:_0x2261fd[_0xad2b9a][_0xcaf6('0x5f')];_0x23594c=_0x2261fd[_0xad2b9a][_0xcaf6('0x6c')]?_['replace'](_0x4ef50a[_0x2261fd[_0xad2b9a][_0xcaf6('0x6c')]],'%s',_0x23594c):_0x23594c;_0x23594c=_0x2261fd[_0xad2b9a][_0xcaf6('0x6d')]?_[_0xcaf6('0x6e')](_0x5d5acf[_0x2261fd[_0xad2b9a][_0xcaf6('0x6d')]],'%s',_0x23594c):_0x23594c;if(_0x2261fd[_0xad2b9a][_0xcaf6('0x6f')]){_0x579f09['group'](_0x23594c);}_0x2261fd[_0xad2b9a]['orderBy']&&_0x579f09[_0xcaf6('0x70')](_0x23594c,_0x2261fd[_0xad2b9a][_0xcaf6('0x71')]===_0xcaf6('0x72')?![]:!![]);_0x579f09[_0xcaf6('0x5f')](_0x23594c,_0x2261fd[_0xad2b9a][_0xcaf6('0x73')]||_0x23594c);}if(_0x1aa619[_0xcaf6('0x74')]){_0x1aa619[_0xcaf6('0x74')]=JSON[_0xcaf6('0x75')](_0x1aa619[_0xcaf6('0x74')]);for(var _0x29c0b8=0x0;_0x29c0b8<_0x1aa619[_0xcaf6('0x74')][_0xcaf6('0x30')];_0x29c0b8+=0x1){if(_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x28')]&&_['includes'](_0x599d89,_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x28')])&&_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x76')]&&_0x1aa619['joins'][_0x29c0b8]['foreignTable']&&_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x77')]){_0x579f09[_0x1aa619[_0xcaf6('0x74')][_0x29c0b8]['type']](_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x78')],null,util[_0xcaf6('0x6d')](_0xcaf6('0x79'),_0x1aa619[_0xcaf6('0x69')],_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x76')],_0x1aa619[_0xcaf6('0x74')][_0x29c0b8]['foreignTable'],_0x1aa619[_0xcaf6('0x74')][_0x29c0b8][_0xcaf6('0x77')]));}}}if(_0x1aa619[_0xcaf6('0x7a')]){_0x1aa619['conditions']=JSON[_0xcaf6('0x75')](_0x1aa619[_0xcaf6('0x7a')]);_0x579f09['where'](_0x5eb912(_0x1aa619[_0xcaf6('0x7a')]['group']));}_0x4e541c=_0x579f09[_0xcaf6('0x7b')]();_0x579f09[_0xcaf6('0x18')](_0x6e2292);_0x579f09[_0xcaf6('0x17')](0x0);logger[_0xcaf6('0x7c')](_0xcaf6('0x7d'),_0x579f09['toString']());return db[_0xcaf6('0x7e')][_0xcaf6('0x2b')](_0x579f09[_0xcaf6('0x7f')](),{'type':db[_0xcaf6('0x7e')][_0xcaf6('0x80')][_0xcaf6('0x81')]});}})['then'](respondWithResult(_0x491a35,null))[_0xcaf6('0x3c')](handleError(_0x491a35,null));};function runReport(_0x4b4cfb,_0x1aa646,_0x469533){var _0x61c944=_0x1aa646[_0xcaf6('0x25')];var _0x269f0e=0xa;var _0x4c1725=[_0xcaf6('0x82'),_0xcaf6('0x4c'),'right_join',_0xcaf6('0x4e')];var _0x5c9d87={'SUM':_0xcaf6('0x4f'),'COUNT':_0xcaf6('0x83'),'COUNT DISTINCT':_0xcaf6('0x50'),'MAX':_0xcaf6('0x84'),'MIN':_0xcaf6('0x85'),'AVG':_0xcaf6('0x51'),'GROUP_CONCAT':_0xcaf6('0x52'),'GROUP_CONCAT ASC':_0xcaf6('0x53'),'GROUP_CONCAT DESC':_0xcaf6('0x54')};var _0x2fe5a7={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0xcaf6('0x56'),'HOUR':_0xcaf6('0x86'),'ROUND':_0xcaf6('0x57'),'UNIX_TIMESTAMP':_0xcaf6('0x58')};var _0x1c2c4c=function(_0x397df3){return!_[_0xcaf6('0x59')](['IS\x20NULL',_0xcaf6('0x87'),'IS\x20EMPTY',_0xcaf6('0x5c')],_0x397df3);};var _0x2f89ea=function(_0x1e9f46){if(!_0x1e9f46||!_0x1e9f46[_0xcaf6('0x5d')][_0xcaf6('0x30')]){return'';}for(var _0x1e53cc='(',_0x5ecda5=0x0;_0x5ecda5<_0x1e9f46[_0xcaf6('0x5d')]['length'];_0x5ecda5+=0x1){_0x5ecda5>0x0&&(_0x1e53cc+='\x20'+_0x1e9f46['operator']+'\x20');_0x1e53cc+=_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5]['group']?_0x2f89ea(_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5][_0xcaf6('0x5e')]):_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5][_0xcaf6('0x5f')]+'\x20'+_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5][_0xcaf6('0x60')]+(_0x1c2c4c(_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5][_0xcaf6('0x60')])?'\x20'+_0x1e9f46[_0xcaf6('0x5d')][_0x5ecda5]['value']:'');}return _0x1e53cc+')';};var _0xcfc56c={'where':{'id':_0x4b4cfb['id']}},_0x3c21da,_0x566831,_0x4db7c0,_0x5171d1,_0x71cc9c;_0xcfc56c=_[_0xcaf6('0x36')]({},_0xcfc56c,_0x469533);return db[_0xcaf6('0x38')][_0xcaf6('0x48')](_0xcfc56c)[_0xcaf6('0x1e')](function(_0x24f12c){if(_0x24f12c){_0x3c21da=_0x24f12c;return _0x24f12c[_0xcaf6('0x62')]();}return null;})['then'](function(_0x2c4ec2){if(_0x2c4ec2){if(!_0x2c4ec2['length']){throw new db[(_0xcaf6('0x63'))]['ValidationErrorItem'](_0xcaf6('0x65'),0x193);}_0x566831=_0x2c4ec2;return db['AnalyticMetric']['findAll']({'raw':!![]});}return null;})[_0xcaf6('0x1e')](function(_0x2816c9){if(_0x2816c9){_0x4db7c0=_[_0xcaf6('0x67')](_0x2816c9,'id');var _0x24bad0;var _0x1d7694=squel[_0xcaf6('0x68')]();_0x1d7694[_0xcaf6('0x88')](_0x3c21da[_0xcaf6('0x69')]);for(var _0x328843=0x0;_0x328843<_0x566831[_0xcaf6('0x30')];_0x328843+=0x1){_0x24bad0=_0x566831[_0x328843]['MetricId']?_0x4db7c0[_0x566831[_0x328843][_0xcaf6('0x6a')]][_0xcaf6('0x6b')]:_0x566831[_0x328843][_0xcaf6('0x5f')];_0x24bad0=_0x566831[_0x328843][_0xcaf6('0x6c')]?_['replace'](_0x5c9d87[_0x566831[_0x328843][_0xcaf6('0x6c')]],'%s',_0x24bad0):_0x24bad0;_0x24bad0=_0x566831[_0x328843][_0xcaf6('0x6d')]?_[_0xcaf6('0x6e')](_0x2fe5a7[_0x566831[_0x328843][_0xcaf6('0x6d')]],'%s',_0x24bad0):_0x24bad0;if(_0x566831[_0x328843][_0xcaf6('0x6f')]){_0x1d7694['group'](_0x24bad0);}_0x566831[_0x328843]['orderBy']&&_0x1d7694[_0xcaf6('0x70')](_0x24bad0,_0x566831[_0x328843]['orderBy']===_0xcaf6('0x72')?![]:!![]);_0x1d7694[_0xcaf6('0x5f')](_0x24bad0,_0x566831[_0x328843][_0xcaf6('0x73')]||_0x24bad0);}if(_0x3c21da[_0xcaf6('0x74')]){_0x3c21da[_0xcaf6('0x74')]=JSON[_0xcaf6('0x75')](_0x3c21da[_0xcaf6('0x74')]);for(var _0x654e2d=0x0;_0x654e2d<_0x3c21da[_0xcaf6('0x74')][_0xcaf6('0x30')];_0x654e2d+=0x1){if(_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x28')]&&_['includes'](_0x4c1725,_0x3c21da['joins'][_0x654e2d][_0xcaf6('0x28')])&&_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x76')]&&_0x3c21da['joins'][_0x654e2d][_0xcaf6('0x78')]&&_0x3c21da['joins'][_0x654e2d][_0xcaf6('0x77')]){_0x1d7694[_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x28')]](_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x78')],null,util[_0xcaf6('0x6d')](_0xcaf6('0x79'),_0x3c21da['table'],_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x76')],_0x3c21da['joins'][_0x654e2d][_0xcaf6('0x78')],_0x3c21da[_0xcaf6('0x74')][_0x654e2d][_0xcaf6('0x77')]));}}}if(_0x3c21da[_0xcaf6('0x7a')]){_0x3c21da[_0xcaf6('0x7a')]=JSON[_0xcaf6('0x75')](_0x3c21da['conditions']);_0x1d7694['where'](_0x2f89ea(_0x3c21da[_0xcaf6('0x7a')]['group']));}_0x71cc9c=_0x1d7694[_0xcaf6('0x7b')]();_0x1d7694['limit'](_0x269f0e);_0x1d7694[_0xcaf6('0x17')](0x0);logger[_0xcaf6('0x7c')](_0xcaf6('0x7d'),_0x1d7694['toString']());return db[_0xcaf6('0x7e')][_0xcaf6('0x2b')](_0x1d7694[_0xcaf6('0x7f')](),{'type':db[_0xcaf6('0x7e')][_0xcaf6('0x80')]['SELECT']});}})[_0xcaf6('0x1e')](function(_0x469109){if(!_0x469109['length']){throw new db['Sequelize'][(_0xcaf6('0x64'))](_0xcaf6('0x89'),0xcc);}if(_0x1aa646[_0xcaf6('0x8a')]===_0xcaf6('0x8b')){return null;}var _0x62e848=_[_0xcaf6('0x36')](_0x1aa646,{'name':_0x1aa646[_0xcaf6('0x8c')]||_0x1aa646[_0xcaf6('0x25')]||_0x3c21da[_0xcaf6('0x25')],'basename':_0x61c944,'savename':util[_0xcaf6('0x6d')](_0xcaf6('0x8d'),_0x1aa646[_0xcaf6('0x25')]||_0x3c21da[_0xcaf6('0x25')],require('randomstring')['generate'](0x4),_0x1aa646[_0xcaf6('0x8a')]||_0xcaf6('0x8e')),'reportId':_0x3c21da['id'],'reportType':'custom'});return db['AnalyticExtractedReport'][_0xcaf6('0x42')](_0x62e848,{'raw':!![]});})[_0xcaf6('0x1e')](function(_0x32fcc8){if(_0x3c21da[_0xcaf6('0x69')]===_0xcaf6('0x8f')){_0x71cc9c[_0xcaf6('0x35')](_0x3c21da[_0xcaf6('0x69')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x1aa646[_0xcaf6('0x90')],_0x1aa646[_0xcaf6('0x91')]);}else{_0x71cc9c['where'](_0x3c21da[_0xcaf6('0x69')]+_0xcaf6('0x92'),_0x1aa646['startDate'],_0x1aa646['endDate']);}if(_0x32fcc8){logger[_0xcaf6('0x93')]('Run\x20Query:',_0x71cc9c[_0xcaf6('0x7f')]());require(_0xcaf6('0x94'))[_0xcaf6('0x95')](path['join'](__dirname,_0xcaf6('0x96'),_0x32fcc8[_0xcaf6('0x8a')]),[_0x32fcc8['id'],_0x71cc9c[_0xcaf6('0x7f')](),path[_0xcaf6('0x82')](__dirname,_0xcaf6('0x97'),_0x32fcc8[_0xcaf6('0x98')]),_0x61c944]);return _0x32fcc8;}else{var _0x3043e4=squel[_0xcaf6('0x68')]();_0x3043e4['from']('('+_0x71cc9c['toString']()+')','countTable');_0x3043e4[_0xcaf6('0x5f')](_0xcaf6('0x99'),_0xcaf6('0x16'));_0x71cc9c['limit'](_0x1aa646[_0xcaf6('0x18')]||_0x269f0e);_0x71cc9c[_0xcaf6('0x17')](_0x1aa646['offset']||0x0);return db[_0xcaf6('0x7e')][_0xcaf6('0x2b')](_0x3043e4[_0xcaf6('0x7f')](),{'type':db[_0xcaf6('0x7e')][_0xcaf6('0x80')][_0xcaf6('0x81')]})[_0xcaf6('0x1e')](function(_0x173c78){if(!_0x173c78[_0xcaf6('0x30')]){_0x5171d1=0x0;}else{_0x5171d1=_0x173c78[0x0][_0xcaf6('0x16')]||0x0;}return db['sequelize']['query'](_0x71cc9c['toString'](),{'type':db[_0xcaf6('0x7e')][_0xcaf6('0x80')]['SELECT']});})[_0xcaf6('0x1e')](function(_0x3f594e){return{'rows':_0x3f594e||[],'count':_0x5171d1};});}});}exports[_0xcaf6('0x9a')]=function(_0x3f111f,_0x402049){return runReport(_0x3f111f[_0xcaf6('0x3e')],_0x3f111f[_0xcaf6('0x2b')],_0x3f111f[_0xcaf6('0x41')])[_0xcaf6('0x1e')](respondWithResult(_0x402049,null))[_0xcaf6('0x3c')](handleError(_0x402049,null));};exports[_0xcaf6('0x9b')]=runReport;exports[_0xcaf6('0x2b')]=function(_0x1a4d8d,_0x541b95){var _0x38918d=0xa;var _0x1fc822=[_0xcaf6('0x82'),_0xcaf6('0x4c'),'right_join',_0xcaf6('0x4e')];var _0x47e0f7={'SUM':'SUM(%s)','COUNT':_0xcaf6('0x83'),'COUNT DISTINCT':_0xcaf6('0x50'),'MAX':_0xcaf6('0x84'),'MIN':'MIN(%s)','AVG':_0xcaf6('0x51'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT DESC':_0xcaf6('0x54')};var _0x485f75={'SEC_TO_TIME':_0xcaf6('0x55'),'DATE':_0xcaf6('0x56'),'HOUR':_0xcaf6('0x86'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'};var _0x2adc6f=function(_0x4dc7aa){return!_['includes'](['IS\x20NULL',_0xcaf6('0x87'),_0xcaf6('0x5b'),_0xcaf6('0x5c')],_0x4dc7aa);};var _0x4e4f73=function(_0xc0628f){if(!_0xc0628f||!_0xc0628f[_0xcaf6('0x5d')][_0xcaf6('0x30')]){return'';}for(var _0x7f73f2='(',_0x187635=0x0;_0x187635<_0xc0628f[_0xcaf6('0x5d')][_0xcaf6('0x30')];_0x187635+=0x1){_0x187635>0x0&&(_0x7f73f2+='\x20'+_0xc0628f['operator']+'\x20');_0x7f73f2+=_0xc0628f[_0xcaf6('0x5d')][_0x187635][_0xcaf6('0x5e')]?_0x4e4f73(_0xc0628f[_0xcaf6('0x5d')][_0x187635]['group']):_0xc0628f['rules'][_0x187635][_0xcaf6('0x5f')]+'\x20'+_0xc0628f[_0xcaf6('0x5d')][_0x187635][_0xcaf6('0x60')]+(_0x2adc6f(_0xc0628f['rules'][_0x187635][_0xcaf6('0x60')])?'\x20'+_0xc0628f[_0xcaf6('0x5d')][_0x187635][_0xcaf6('0x61')]:'');}return _0x7f73f2+')';};var _0x3d4da7={'where':{'id':_0x1a4d8d[_0xcaf6('0x3e')]['id']}},_0x101fb2,_0x4a7777,_0x3ec370,_0x39b108,_0x1415dc;_0x3d4da7=_[_0xcaf6('0x36')]({},_0x3d4da7,_0x1a4d8d[_0xcaf6('0x41')]);return db[_0xcaf6('0x38')][_0xcaf6('0x48')](_0x3d4da7)[_0xcaf6('0x1e')](function(_0x51fd64){if(_0x51fd64){_0x101fb2=_0x51fd64;return _0x51fd64[_0xcaf6('0x62')]();}return null;})[_0xcaf6('0x1e')](function(_0x5954ff){if(_0x5954ff){if(!_0x5954ff[_0xcaf6('0x30')]){throw new db['Sequelize'][(_0xcaf6('0x64'))](_0xcaf6('0x65'),0x193);}_0x4a7777=_0x5954ff;return db[_0xcaf6('0x66')][_0xcaf6('0x3a')]({'raw':!![]});}return null;})[_0xcaf6('0x1e')](function(_0x109ac5){if(_0x109ac5){_0x3ec370=_[_0xcaf6('0x67')](_0x109ac5,'id');var _0x89847d;var _0x346a31=squel['select']();_0x346a31['from'](_0x101fb2[_0xcaf6('0x69')]);for(var _0xb8470d=0x0;_0xb8470d<_0x4a7777[_0xcaf6('0x30')];_0xb8470d+=0x1){_0x89847d=_0x4a7777[_0xb8470d][_0xcaf6('0x6a')]?_0x3ec370[_0x4a7777[_0xb8470d][_0xcaf6('0x6a')]][_0xcaf6('0x6b')]:_0x4a7777[_0xb8470d][_0xcaf6('0x5f')];_0x89847d=_0x4a7777[_0xb8470d][_0xcaf6('0x6c')]?_['replace'](_0x47e0f7[_0x4a7777[_0xb8470d][_0xcaf6('0x6c')]],'%s',_0x89847d):_0x89847d;_0x89847d=_0x4a7777[_0xb8470d][_0xcaf6('0x6d')]?_[_0xcaf6('0x6e')](_0x485f75[_0x4a7777[_0xb8470d][_0xcaf6('0x6d')]],'%s',_0x89847d):_0x89847d;if(_0x4a7777[_0xb8470d][_0xcaf6('0x6f')]){_0x346a31[_0xcaf6('0x5e')](_0x89847d);}_0x4a7777[_0xb8470d]['orderBy']&&_0x346a31[_0xcaf6('0x70')](_0x89847d,_0x4a7777[_0xb8470d][_0xcaf6('0x71')]==='DESC'?![]:!![]);_0x346a31[_0xcaf6('0x5f')](_0x89847d,_0x4a7777[_0xb8470d][_0xcaf6('0x73')]||_0x89847d);}if(_0x101fb2[_0xcaf6('0x74')]){_0x101fb2['joins']=JSON[_0xcaf6('0x75')](_0x101fb2['joins']);for(var _0x26c5bf=0x0;_0x26c5bf<_0x101fb2[_0xcaf6('0x74')]['length'];_0x26c5bf+=0x1){if(_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x28')]&&_['includes'](_0x1fc822,_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x28')])&&_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x76')]&&_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x78')]&&_0x101fb2['joins'][_0x26c5bf]['foreignKey']){_0x346a31[_0x101fb2['joins'][_0x26c5bf][_0xcaf6('0x28')]](_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x78')],null,util['format']('%s.%s\x20=\x20%s.%s',_0x101fb2[_0xcaf6('0x69')],_0x101fb2[_0xcaf6('0x74')][_0x26c5bf][_0xcaf6('0x76')],_0x101fb2['joins'][_0x26c5bf][_0xcaf6('0x78')],_0x101fb2['joins'][_0x26c5bf]['foreignKey']));}}}if(_0x101fb2['conditions']){_0x101fb2[_0xcaf6('0x7a')]=JSON[_0xcaf6('0x75')](_0x101fb2[_0xcaf6('0x7a')]);_0x346a31[_0xcaf6('0x35')](_0x4e4f73(_0x101fb2[_0xcaf6('0x7a')][_0xcaf6('0x5e')]));}_0x1415dc=_0x346a31[_0xcaf6('0x7b')]();_0x346a31[_0xcaf6('0x18')](_0x38918d);_0x346a31[_0xcaf6('0x17')](0x0);logger[_0xcaf6('0x7c')](_0xcaf6('0x7d'),_0x346a31[_0xcaf6('0x7f')]());return db[_0xcaf6('0x7e')][_0xcaf6('0x2b')](_0x346a31['toString'](),{'type':db[_0xcaf6('0x7e')][_0xcaf6('0x80')][_0xcaf6('0x81')]});}})[_0xcaf6('0x1e')](function(){return{'sql':_0x1415dc[_0xcaf6('0x7f')]()};})[_0xcaf6('0x1e')](respondWithResult(_0x541b95,null))[_0xcaf6('0x3c')](handleError(_0x541b95,null));};
\ No newline at end of file
+var _0xc8ed=['get','then','end','stack','name','send','index','map','AnalyticCustomReport','type','model','query','intersection','attributes','fields','nolimit','order','sort','where','filters','pick','merge','VIRTUAL','options','includeAll','rows','show','params','rawAttributes','keys','length','include','find','catch','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','user','UserProfileSection','userProfileId','autoAssociation','UserProfileResource','create','CustomReports','error','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','body','cross_join','COUNT(DISTINCT\x20%s)','MAX(%s)','MIN(%s)','AVG(%s)','GROUP_CONCAT(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','SEC_TO_TIME(%s)','HOUR(%s)','ROUND(%s)','includes','IS\x20NOT\x20NULL','IS\x20EMPTY','IS\x20NOT\x20EMPTY','rules','operator','group','condition','Sequelize','ValidationErrorItem','Please\x20insert\x20at\x20least\x20one\x20field','AnalyticMetric','findAll','keyBy','select','from','MetricId','metric','field','replace','format','groupBy','orderBy','DESC','alias','joins','parse','parentKey','foreignTable','foreignKey','table','conditions','debug','toString','join','left_join','SUM(%s)','COUNT(%s)','DATE(%s)','IS\x20NULL','getFields','function','%s.%s\x20=\x20%s.%s','sequelize','QueryTypes','SELECT','fullPath','%s-%s.%s','randomstring','output','custom','cdr','.calldate\x20BETWEEN\x20?\x20AND\x20?','startDate','endDate','.createdAt\x20BETWEEN\x20?\x20AND\x20?','info','Run\x20Query:','fork','../../components/export/','../../files/reports','countTable','COUNT(*)','runReport','right_join','UNIX_TIMESTAMP(%s)','value','clone','Limited\x20Query:','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','sox','ejs','lodash','squel','crypto','jsforce','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','destroy'];(function(_0x37796d,_0xb401f4){var _0x9a110d=function(_0x2c00b1){while(--_0x2c00b1){_0x37796d['push'](_0x37796d['shift']());}};_0x9a110d(++_0xb401f4);}(_0xc8ed,0x1c4));var _0xdc8e=function(_0x14f8d8,_0x4ef9fc){_0x14f8d8=_0x14f8d8-0x0;var _0x3477d5=_0xc8ed[_0x14f8d8];return _0x3477d5;};'use strict';var pdf=require(_0xdc8e('0x0'));var emlformat=require(_0xdc8e('0x1'));var rimraf=require(_0xdc8e('0x2'));var zipdir=require(_0xdc8e('0x3'));var jsonpatch=require(_0xdc8e('0x4'));var rp=require(_0xdc8e('0x5'));var moment=require('moment');var BPromise=require(_0xdc8e('0x6'));var Mustache=require(_0xdc8e('0x7'));var util=require('util');var path=require(_0xdc8e('0x8'));var sox=require(_0xdc8e('0x9'));var csv=require('to-csv');var ejs=require(_0xdc8e('0xa'));var fs=require('fs');var _=require(_0xdc8e('0xb'));var squel=require(_0xdc8e('0xc'));var crypto=require(_0xdc8e('0xd'));var jsforce=require(_0xdc8e('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xdc8e('0xf'));var querystring=require('querystring');var Papa=require(_0xdc8e('0x10'));var Redis=require(_0xdc8e('0x11'));var authService=require(_0xdc8e('0x12'));var qs=require(_0xdc8e('0x13'));var as=require(_0xdc8e('0x14'));var hardwareService=require(_0xdc8e('0x15'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require(_0xdc8e('0x16'));var db=require(_0xdc8e('0x17'))['db'];function respondWithStatusCode(_0x35e3b9,_0x457d8d){_0x457d8d=_0x457d8d||0xcc;return function(_0x2cd331){if(_0x2cd331){return _0x35e3b9[_0xdc8e('0x18')](_0x457d8d);}return _0x35e3b9[_0xdc8e('0x19')](_0x457d8d)['end']();};}function respondWithResult(_0x3e1d1e,_0x21511b){_0x21511b=_0x21511b||0xc8;return function(_0x36fcd5){if(_0x36fcd5){return _0x3e1d1e[_0xdc8e('0x19')](_0x21511b)[_0xdc8e('0x1a')](_0x36fcd5);}};}function respondWithFilteredResult(_0x238a35,_0x31f839){return function(_0x26983a){if(_0x26983a){var _0x552c01=_0x26983a[_0xdc8e('0x1b')],_0x3bf8fe=_0x31f839[_0xdc8e('0x1c')],_0x572be8=_0x31f839[_0xdc8e('0x1c')]+_0x31f839[_0xdc8e('0x1d')],_0x1eeec4;if(_0x572be8>=_0x552c01){_0x572be8=_0x552c01;_0x1eeec4=0xc8;}else{_0x1eeec4=0xce;}_0x238a35[_0xdc8e('0x19')](_0x1eeec4);return _0x238a35[_0xdc8e('0x1e')](_0xdc8e('0x1f'),_0x3bf8fe+'-'+_0x572be8+'/'+_0x552c01)[_0xdc8e('0x1a')](_0x26983a);}return null;};}function patchUpdates(_0x5b0984){return function(_0x2f601d){try{jsonpatch[_0xdc8e('0x20')](_0x2f601d,_0x5b0984,!![]);}catch(_0x4b27de){return BPromise[_0xdc8e('0x21')](_0x4b27de);}return _0x2f601d[_0xdc8e('0x22')]();};}function saveUpdates(_0x3b5563,_0x4537ba){return function(_0x13bce4){if(_0x13bce4){return _0x13bce4[_0xdc8e('0x23')](_0x3b5563)['then'](function(_0x3e3ea0){return _0x3e3ea0;});}return null;};}function removeEntity(_0x384dbf,_0x4af85c){return function(_0x1da3c4){if(_0x1da3c4){return _0x1da3c4[_0xdc8e('0x24')]()['then'](function(){var _0x3f585a=_0x1da3c4[_0xdc8e('0x25')]({'plain':!![]});var _0x2b6521='CustomReports';return db['UserProfileResource'][_0xdc8e('0x24')]({'where':{'type':_0x2b6521,'resourceId':_0x3f585a['id']}})['then'](function(){return _0x1da3c4;});})[_0xdc8e('0x26')](function(){_0x384dbf[_0xdc8e('0x19')](0xcc)[_0xdc8e('0x27')]();});}};}function handleEntityNotFound(_0x17c7d9,_0x370b94){return function(_0x45334f){if(!_0x45334f){_0x17c7d9['sendStatus'](0x194);}return _0x45334f;};}function handleError(_0x2aa547,_0x431cd5){_0x431cd5=_0x431cd5||0x1f4;return function(_0x515ef3){logger['error'](_0x515ef3[_0xdc8e('0x28')]);if(_0x515ef3[_0xdc8e('0x29')]){delete _0x515ef3[_0xdc8e('0x29')];}_0x2aa547['status'](_0x431cd5)[_0xdc8e('0x2a')](_0x515ef3);};}exports[_0xdc8e('0x2b')]=function(_0x1d31fb,_0x524d4d){var _0x5da683={},_0x14f5e1={},_0x1b9e1b={'count':0x0,'rows':[]};var _0x3c4e1a=_[_0xdc8e('0x2c')](db[_0xdc8e('0x2d')]['rawAttributes'],function(_0xa1e01c){return{'name':_0xa1e01c['fieldName'],'type':_0xa1e01c[_0xdc8e('0x2e')]['key']};});_0x14f5e1[_0xdc8e('0x2f')]=_[_0xdc8e('0x2c')](_0x3c4e1a,_0xdc8e('0x29'));_0x14f5e1['query']=_['keys'](_0x1d31fb[_0xdc8e('0x30')]);_0x14f5e1['filters']=_[_0xdc8e('0x31')](_0x14f5e1['model'],_0x14f5e1[_0xdc8e('0x30')]);_0x5da683[_0xdc8e('0x32')]=_['intersection'](_0x14f5e1[_0xdc8e('0x2f')],qs[_0xdc8e('0x33')](_0x1d31fb[_0xdc8e('0x30')][_0xdc8e('0x33')]));_0x5da683[_0xdc8e('0x32')]=_0x5da683[_0xdc8e('0x32')]['length']?_0x5da683['attributes']:_0x14f5e1[_0xdc8e('0x2f')];if(!_0x1d31fb['query']['hasOwnProperty'](_0xdc8e('0x34'))){_0x5da683['limit']=qs['limit'](_0x1d31fb[_0xdc8e('0x30')][_0xdc8e('0x1d')]);_0x5da683['offset']=qs[_0xdc8e('0x1c')](_0x1d31fb['query']['offset']);}_0x5da683[_0xdc8e('0x35')]=qs[_0xdc8e('0x36')](_0x1d31fb['query'][_0xdc8e('0x36')]);_0x5da683[_0xdc8e('0x37')]=qs[_0xdc8e('0x38')](_[_0xdc8e('0x39')](_0x1d31fb[_0xdc8e('0x30')],_0x14f5e1[_0xdc8e('0x38')]));if(_0x1d31fb[_0xdc8e('0x30')]['filter']){_0x5da683[_0xdc8e('0x37')]=_[_0xdc8e('0x3a')](_0x5da683['where'],{'$or':_[_0xdc8e('0x2c')](_0x3c4e1a,function(_0x5c5096){if(_0x5c5096[_0xdc8e('0x2e')]!==_0xdc8e('0x3b')){var _0x10a584={};_0x10a584[_0x5c5096[_0xdc8e('0x29')]]={'$like':'%'+_0x1d31fb['query']['filter']+'%'};return _0x10a584;}})});}_0x5da683=_[_0xdc8e('0x3a')]({},_0x5da683,_0x1d31fb[_0xdc8e('0x3c')]);var _0x34ccdb={'where':_0x5da683['where']};return db[_0xdc8e('0x2d')]['count'](_0x34ccdb)['then'](function(_0x195102){_0x1b9e1b[_0xdc8e('0x1b')]=_0x195102;if(_0x1d31fb['query'][_0xdc8e('0x3d')]){_0x5da683['include']=[{'all':!![]}];}return db[_0xdc8e('0x2d')]['findAll'](_0x5da683);})['then'](function(_0x530c45){_0x1b9e1b[_0xdc8e('0x3e')]=_0x530c45;return _0x1b9e1b;})['then'](respondWithFilteredResult(_0x524d4d,_0x5da683))['catch'](handleError(_0x524d4d,null));};exports[_0xdc8e('0x3f')]=function(_0x4010d5,_0x124725){var _0x15f11c={'raw':![],'where':{'id':_0x4010d5[_0xdc8e('0x40')]['id']}},_0x1fab75={};_0x1fab75['model']=_['keys'](db[_0xdc8e('0x2d')][_0xdc8e('0x41')]);_0x1fab75[_0xdc8e('0x30')]=_[_0xdc8e('0x42')](_0x4010d5[_0xdc8e('0x30')]);_0x1fab75['filters']=_[_0xdc8e('0x31')](_0x1fab75['model'],_0x1fab75[_0xdc8e('0x30')]);_0x15f11c[_0xdc8e('0x32')]=_[_0xdc8e('0x31')](_0x1fab75[_0xdc8e('0x2f')],qs[_0xdc8e('0x33')](_0x4010d5[_0xdc8e('0x30')]['fields']));_0x15f11c['attributes']=_0x15f11c[_0xdc8e('0x32')][_0xdc8e('0x43')]?_0x15f11c[_0xdc8e('0x32')]:_0x1fab75[_0xdc8e('0x2f')];if(_0x4010d5[_0xdc8e('0x30')][_0xdc8e('0x3d')]){_0x15f11c[_0xdc8e('0x44')]=[{'all':!![]}];}_0x15f11c=_['merge']({},_0x15f11c,_0x4010d5['options']);return db[_0xdc8e('0x2d')][_0xdc8e('0x45')](_0x15f11c)[_0xdc8e('0x26')](handleEntityNotFound(_0x124725,null))[_0xdc8e('0x26')](respondWithResult(_0x124725,null))[_0xdc8e('0x46')](handleError(_0x124725,null));};exports['create']=function(_0x14c52a,_0x1f22ff){return db[_0xdc8e('0x2d')]['create'](_0x14c52a['body'],{})[_0xdc8e('0x26')](function(_0x2d5654){var _0x524f5b=_0x14c52a['user'][_0xdc8e('0x25')]({'plain':!![]});if(!_0x524f5b)throw new Error(_0xdc8e('0x47'));if(_0x524f5b[_0xdc8e('0x48')]===_0xdc8e('0x49')){var _0x5c44f0=_0x2d5654[_0xdc8e('0x25')]({'plain':!![]});var _0x50db3f='Reports';return db[_0xdc8e('0x4a')][_0xdc8e('0x45')]({'where':{'name':_0x50db3f,'userProfileId':_0x524f5b[_0xdc8e('0x4b')]},'raw':!![]})['then'](function(_0x2396c8){if(_0x2396c8&&_0x2396c8[_0xdc8e('0x4c')]===0x0){return db[_0xdc8e('0x4d')][_0xdc8e('0x4e')]({'name':_0x5c44f0['name'],'resourceId':_0x5c44f0['id'],'type':_0xdc8e('0x4f'),'sectionId':_0x2396c8['id']},{})[_0xdc8e('0x26')](function(){return _0x2d5654;});}else{return _0x2d5654;}})[_0xdc8e('0x46')](function(_0x492bb8){logger[_0xdc8e('0x50')](_0xdc8e('0x51'),_0x492bb8);throw _0x492bb8;});}return _0x2d5654;})[_0xdc8e('0x26')](respondWithResult(_0x1f22ff,0xc9))['catch'](handleError(_0x1f22ff,null));};exports[_0xdc8e('0x23')]=function(_0x351aee,_0x53e534){if(_0x351aee[_0xdc8e('0x52')]['id']){delete _0x351aee[_0xdc8e('0x52')]['id'];}return db[_0xdc8e('0x2d')][_0xdc8e('0x45')]({'where':{'id':_0x351aee[_0xdc8e('0x40')]['id']}})[_0xdc8e('0x26')](handleEntityNotFound(_0x53e534,null))['then'](saveUpdates(_0x351aee[_0xdc8e('0x52')],null))[_0xdc8e('0x26')](respondWithResult(_0x53e534,null))[_0xdc8e('0x46')](handleError(_0x53e534,null));};exports['destroy']=function(_0x4e29af,_0x365244){return db[_0xdc8e('0x2d')]['find']({'where':{'id':_0x4e29af[_0xdc8e('0x40')]['id']}})[_0xdc8e('0x26')](handleEntityNotFound(_0x365244,null))['then'](removeEntity(_0x365244,null))[_0xdc8e('0x46')](handleError(_0x365244,null));};exports['preview']=function(_0x1a9492,_0x5ae676){var _0x384530=0xa;var _0x10da50=['join','left_join','right_join',_0xdc8e('0x53')];var _0x66d4a4={'SUM':'SUM(%s)','COUNT':'COUNT(%s)','COUNT DISTINCT':_0xdc8e('0x54'),'MAX':_0xdc8e('0x55'),'MIN':_0xdc8e('0x56'),'AVG':_0xdc8e('0x57'),'GROUP_CONCAT':_0xdc8e('0x58'),'GROUP_CONCAT ASC':_0xdc8e('0x59'),'GROUP_CONCAT DESC':_0xdc8e('0x5a')};var _0x1c3b4d={'SEC_TO_TIME':_0xdc8e('0x5b'),'DATE':'DATE(%s)','HOUR':_0xdc8e('0x5c'),'ROUND':_0xdc8e('0x5d'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'};var _0x2ccc8e=function(_0x206800){return!_[_0xdc8e('0x5e')](['IS\x20NULL',_0xdc8e('0x5f'),_0xdc8e('0x60'),_0xdc8e('0x61')],_0x206800);};var _0x423d50=function(_0x54166c){if(!_0x54166c||!_0x54166c[_0xdc8e('0x62')][_0xdc8e('0x43')]){return'';}for(var _0x55488c='(',_0x3a10ee=0x0;_0x3a10ee<_0x54166c[_0xdc8e('0x62')][_0xdc8e('0x43')];_0x3a10ee+=0x1){_0x3a10ee>0x0&&(_0x55488c+='\x20'+_0x54166c[_0xdc8e('0x63')]+'\x20');_0x55488c+=_0x54166c[_0xdc8e('0x62')][_0x3a10ee][_0xdc8e('0x64')]?_0x423d50(_0x54166c[_0xdc8e('0x62')][_0x3a10ee][_0xdc8e('0x64')]):_0x54166c['rules'][_0x3a10ee]['field']+'\x20'+_0x54166c['rules'][_0x3a10ee][_0xdc8e('0x65')]+(_0x2ccc8e(_0x54166c[_0xdc8e('0x62')][_0x3a10ee][_0xdc8e('0x65')])?'\x20'+_0x54166c[_0xdc8e('0x62')][_0x3a10ee]['value']:'');}return _0x55488c+')';};var _0x55f85f={'where':{'id':_0x1a9492[_0xdc8e('0x40')]['id']}},_0x16a13f,_0x133162,_0x2d889f,_0x9219a1,_0x400723;_0x55f85f=_[_0xdc8e('0x3a')]({},_0x55f85f,_0x1a9492[_0xdc8e('0x3c')]);return db[_0xdc8e('0x2d')][_0xdc8e('0x45')](_0x55f85f)[_0xdc8e('0x26')](function(_0x2743f5){if(_0x2743f5){_0x16a13f=_0x2743f5;return _0x2743f5['getFields']();}return null;})[_0xdc8e('0x26')](function(_0x72b988){if(_0x72b988){if(!_0x72b988['length']){throw new db[(_0xdc8e('0x66'))][(_0xdc8e('0x67'))](_0xdc8e('0x68'),0x193);}_0x133162=_0x72b988;return db[_0xdc8e('0x69')][_0xdc8e('0x6a')]({'raw':!![]});}return null;})[_0xdc8e('0x26')](function(_0x2efecf){if(_0x2efecf){_0x2d889f=_[_0xdc8e('0x6b')](_0x2efecf,'id');var _0x59060c;var _0x54a20f=squel[_0xdc8e('0x6c')]();_0x54a20f[_0xdc8e('0x6d')](_0x16a13f['table']);for(var _0x455eb4=0x0;_0x455eb4<_0x133162[_0xdc8e('0x43')];_0x455eb4+=0x1){_0x59060c=_0x133162[_0x455eb4][_0xdc8e('0x6e')]?_0x2d889f[_0x133162[_0x455eb4][_0xdc8e('0x6e')]][_0xdc8e('0x6f')]:_0x133162[_0x455eb4][_0xdc8e('0x70')];_0x59060c=_0x133162[_0x455eb4]['function']?_[_0xdc8e('0x71')](_0x66d4a4[_0x133162[_0x455eb4]['function']],'%s',_0x59060c):_0x59060c;_0x59060c=_0x133162[_0x455eb4][_0xdc8e('0x72')]?_[_0xdc8e('0x71')](_0x1c3b4d[_0x133162[_0x455eb4][_0xdc8e('0x72')]],'%s',_0x59060c):_0x59060c;if(_0x133162[_0x455eb4][_0xdc8e('0x73')]){_0x54a20f['group'](_0x59060c);}_0x133162[_0x455eb4][_0xdc8e('0x74')]&&_0x54a20f[_0xdc8e('0x35')](_0x59060c,_0x133162[_0x455eb4][_0xdc8e('0x74')]===_0xdc8e('0x75')?![]:!![]);_0x54a20f[_0xdc8e('0x70')](_0x59060c,_0x133162[_0x455eb4][_0xdc8e('0x76')]||_0x59060c);}if(_0x16a13f[_0xdc8e('0x77')]){_0x16a13f[_0xdc8e('0x77')]=JSON[_0xdc8e('0x78')](_0x16a13f[_0xdc8e('0x77')]);for(var _0x2e2c52=0x0;_0x2e2c52<_0x16a13f['joins'][_0xdc8e('0x43')];_0x2e2c52+=0x1){if(_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x2e')]&&_['includes'](_0x10da50,_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x2e')])&&_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x79')]&&_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x7a')]&&_0x16a13f['joins'][_0x2e2c52][_0xdc8e('0x7b')]){_0x54a20f[_0x16a13f['joins'][_0x2e2c52][_0xdc8e('0x2e')]](_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x7a')],null,util[_0xdc8e('0x72')]('%s.%s\x20=\x20%s.%s',_0x16a13f[_0xdc8e('0x7c')],_0x16a13f[_0xdc8e('0x77')][_0x2e2c52][_0xdc8e('0x79')],_0x16a13f['joins'][_0x2e2c52][_0xdc8e('0x7a')],_0x16a13f[_0xdc8e('0x77')][_0x2e2c52]['foreignKey']));}}}if(_0x16a13f['conditions']){_0x16a13f[_0xdc8e('0x7d')]=JSON[_0xdc8e('0x78')](_0x16a13f['conditions']);_0x54a20f[_0xdc8e('0x37')](_0x423d50(_0x16a13f['conditions'][_0xdc8e('0x64')]));}_0x400723=_0x54a20f['clone']();_0x54a20f[_0xdc8e('0x1d')](_0x384530);_0x54a20f[_0xdc8e('0x1c')](0x0);logger[_0xdc8e('0x7e')]('Limited\x20Query:',_0x54a20f[_0xdc8e('0x7f')]());return db['sequelize'][_0xdc8e('0x30')](_0x54a20f['toString'](),{'type':db['sequelize']['QueryTypes']['SELECT']});}})[_0xdc8e('0x26')](respondWithResult(_0x5ae676,null))[_0xdc8e('0x46')](handleError(_0x5ae676,null));};function runReport(_0x5b82a5,_0x388cb0,_0x571c79){var _0x46ce93=_0x388cb0['name'];var _0x244894=0xa;var _0x524433=[_0xdc8e('0x80'),_0xdc8e('0x81'),'right_join',_0xdc8e('0x53')];var _0x12845d={'SUM':_0xdc8e('0x82'),'COUNT':_0xdc8e('0x83'),'COUNT DISTINCT':_0xdc8e('0x54'),'MAX':_0xdc8e('0x55'),'MIN':_0xdc8e('0x56'),'AVG':_0xdc8e('0x57'),'GROUP_CONCAT':_0xdc8e('0x58'),'GROUP_CONCAT ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT DESC':_0xdc8e('0x5a')};var _0x3b3523={'SEC_TO_TIME':_0xdc8e('0x5b'),'DATE':_0xdc8e('0x84'),'HOUR':_0xdc8e('0x5c'),'ROUND':_0xdc8e('0x5d'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'};var _0x466499=function(_0x16913a){return!_['includes']([_0xdc8e('0x85'),_0xdc8e('0x5f'),'IS\x20EMPTY',_0xdc8e('0x61')],_0x16913a);};var _0x25433f=function(_0x5dcba6){if(!_0x5dcba6||!_0x5dcba6[_0xdc8e('0x62')][_0xdc8e('0x43')]){return'';}for(var _0x3790d1='(',_0x3b8a63=0x0;_0x3b8a63<_0x5dcba6[_0xdc8e('0x62')]['length'];_0x3b8a63+=0x1){_0x3b8a63>0x0&&(_0x3790d1+='\x20'+_0x5dcba6[_0xdc8e('0x63')]+'\x20');_0x3790d1+=_0x5dcba6[_0xdc8e('0x62')][_0x3b8a63][_0xdc8e('0x64')]?_0x25433f(_0x5dcba6[_0xdc8e('0x62')][_0x3b8a63][_0xdc8e('0x64')]):_0x5dcba6[_0xdc8e('0x62')][_0x3b8a63]['field']+'\x20'+_0x5dcba6[_0xdc8e('0x62')][_0x3b8a63][_0xdc8e('0x65')]+(_0x466499(_0x5dcba6[_0xdc8e('0x62')][_0x3b8a63][_0xdc8e('0x65')])?'\x20'+_0x5dcba6['rules'][_0x3b8a63]['value']:'');}return _0x3790d1+')';};var _0x439485={'where':{'id':_0x5b82a5['id']}},_0x2fef7b,_0x3fcf22,_0x26d18c,_0x1959a9,_0x43615b;_0x439485=_[_0xdc8e('0x3a')]({},_0x439485,_0x571c79);return db[_0xdc8e('0x2d')][_0xdc8e('0x45')](_0x439485)[_0xdc8e('0x26')](function(_0x2049f3){if(_0x2049f3){_0x2fef7b=_0x2049f3;return _0x2049f3[_0xdc8e('0x86')]();}return null;})[_0xdc8e('0x26')](function(_0x2106e7){if(_0x2106e7){if(!_0x2106e7[_0xdc8e('0x43')]){throw new db[(_0xdc8e('0x66'))][(_0xdc8e('0x67'))](_0xdc8e('0x68'),0x193);}_0x3fcf22=_0x2106e7;return db['AnalyticMetric']['findAll']({'raw':!![]});}return null;})[_0xdc8e('0x26')](function(_0x2f4ee1){if(_0x2f4ee1){_0x26d18c=_[_0xdc8e('0x6b')](_0x2f4ee1,'id');var _0x469512;var _0x3c6714=squel[_0xdc8e('0x6c')]();_0x3c6714[_0xdc8e('0x6d')](_0x2fef7b[_0xdc8e('0x7c')]);for(var _0x279f22=0x0;_0x279f22<_0x3fcf22[_0xdc8e('0x43')];_0x279f22+=0x1){_0x469512=_0x3fcf22[_0x279f22][_0xdc8e('0x6e')]?_0x26d18c[_0x3fcf22[_0x279f22]['MetricId']][_0xdc8e('0x6f')]:_0x3fcf22[_0x279f22][_0xdc8e('0x70')];_0x469512=_0x3fcf22[_0x279f22][_0xdc8e('0x87')]?_[_0xdc8e('0x71')](_0x12845d[_0x3fcf22[_0x279f22][_0xdc8e('0x87')]],'%s',_0x469512):_0x469512;_0x469512=_0x3fcf22[_0x279f22][_0xdc8e('0x72')]?_['replace'](_0x3b3523[_0x3fcf22[_0x279f22]['format']],'%s',_0x469512):_0x469512;if(_0x3fcf22[_0x279f22][_0xdc8e('0x73')]){_0x3c6714[_0xdc8e('0x64')](_0x469512);}_0x3fcf22[_0x279f22][_0xdc8e('0x74')]&&_0x3c6714[_0xdc8e('0x35')](_0x469512,_0x3fcf22[_0x279f22][_0xdc8e('0x74')]===_0xdc8e('0x75')?![]:!![]);_0x3c6714[_0xdc8e('0x70')](_0x469512,_0x3fcf22[_0x279f22][_0xdc8e('0x76')]||_0x469512);}if(_0x2fef7b['joins']){_0x2fef7b['joins']=JSON[_0xdc8e('0x78')](_0x2fef7b[_0xdc8e('0x77')]);for(var _0x316367=0x0;_0x316367<_0x2fef7b[_0xdc8e('0x77')]['length'];_0x316367+=0x1){if(_0x2fef7b['joins'][_0x316367][_0xdc8e('0x2e')]&&_['includes'](_0x524433,_0x2fef7b[_0xdc8e('0x77')][_0x316367]['type'])&&_0x2fef7b[_0xdc8e('0x77')][_0x316367]['parentKey']&&_0x2fef7b[_0xdc8e('0x77')][_0x316367]['foreignTable']&&_0x2fef7b[_0xdc8e('0x77')][_0x316367][_0xdc8e('0x7b')]){_0x3c6714[_0x2fef7b[_0xdc8e('0x77')][_0x316367][_0xdc8e('0x2e')]](_0x2fef7b['joins'][_0x316367][_0xdc8e('0x7a')],null,util['format'](_0xdc8e('0x88'),_0x2fef7b[_0xdc8e('0x7c')],_0x2fef7b[_0xdc8e('0x77')][_0x316367][_0xdc8e('0x79')],_0x2fef7b[_0xdc8e('0x77')][_0x316367][_0xdc8e('0x7a')],_0x2fef7b[_0xdc8e('0x77')][_0x316367][_0xdc8e('0x7b')]));}}}if(_0x2fef7b['conditions']){_0x2fef7b['conditions']=JSON[_0xdc8e('0x78')](_0x2fef7b[_0xdc8e('0x7d')]);_0x3c6714[_0xdc8e('0x37')](_0x25433f(_0x2fef7b[_0xdc8e('0x7d')][_0xdc8e('0x64')]));}_0x43615b=_0x3c6714['clone']();_0x3c6714[_0xdc8e('0x1d')](_0x244894);_0x3c6714[_0xdc8e('0x1c')](0x0);logger[_0xdc8e('0x7e')]('Limited\x20Query:',_0x3c6714[_0xdc8e('0x7f')]());return db[_0xdc8e('0x89')][_0xdc8e('0x30')](_0x3c6714[_0xdc8e('0x7f')](),{'type':db['sequelize'][_0xdc8e('0x8a')][_0xdc8e('0x8b')]});}})[_0xdc8e('0x26')](function(_0x5ab451){if(!_0x5ab451[_0xdc8e('0x43')]){throw new db['Sequelize'][(_0xdc8e('0x67'))]('No\x20available\x20data',0xcc);}if(_0x388cb0['output']==='web'){return null;}var _0x14748a=_[_0xdc8e('0x3a')](_0x388cb0,{'name':_0x388cb0[_0xdc8e('0x8c')]||_0x388cb0[_0xdc8e('0x29')]||_0x2fef7b[_0xdc8e('0x29')],'basename':_0x46ce93,'savename':util[_0xdc8e('0x72')](_0xdc8e('0x8d'),_0x388cb0['name']||_0x2fef7b[_0xdc8e('0x29')],require(_0xdc8e('0x8e'))['generate'](0x4),_0x388cb0[_0xdc8e('0x8f')]||'csv'),'reportId':_0x2fef7b['id'],'reportType':_0xdc8e('0x90')});return db['AnalyticExtractedReport'][_0xdc8e('0x4e')](_0x14748a,{'raw':!![]});})['then'](function(_0x23371e){if(_0x2fef7b[_0xdc8e('0x7c')]===_0xdc8e('0x91')){_0x43615b[_0xdc8e('0x37')](_0x2fef7b[_0xdc8e('0x7c')]+_0xdc8e('0x92'),_0x388cb0[_0xdc8e('0x93')],_0x388cb0[_0xdc8e('0x94')]);}else{_0x43615b['where'](_0x2fef7b[_0xdc8e('0x7c')]+_0xdc8e('0x95'),_0x388cb0[_0xdc8e('0x93')],_0x388cb0[_0xdc8e('0x94')]);}if(_0x23371e){logger[_0xdc8e('0x96')](_0xdc8e('0x97'),_0x43615b[_0xdc8e('0x7f')]());require('child_process')[_0xdc8e('0x98')](path[_0xdc8e('0x80')](__dirname,_0xdc8e('0x99'),_0x23371e[_0xdc8e('0x8f')]),[_0x23371e['id'],_0x43615b[_0xdc8e('0x7f')](),path[_0xdc8e('0x80')](__dirname,_0xdc8e('0x9a'),_0x23371e['savename']),_0x46ce93]);return _0x23371e;}else{var _0x38b840=squel[_0xdc8e('0x6c')]();_0x38b840[_0xdc8e('0x6d')]('('+_0x43615b[_0xdc8e('0x7f')]()+')',_0xdc8e('0x9b'));_0x38b840[_0xdc8e('0x70')](_0xdc8e('0x9c'),_0xdc8e('0x1b'));_0x43615b[_0xdc8e('0x1d')](_0x388cb0[_0xdc8e('0x1d')]||_0x244894);_0x43615b[_0xdc8e('0x1c')](_0x388cb0[_0xdc8e('0x1c')]||0x0);return db[_0xdc8e('0x89')]['query'](_0x38b840[_0xdc8e('0x7f')](),{'type':db[_0xdc8e('0x89')]['QueryTypes']['SELECT']})[_0xdc8e('0x26')](function(_0x2e2a6f){if(!_0x2e2a6f[_0xdc8e('0x43')]){_0x1959a9=0x0;}else{_0x1959a9=_0x2e2a6f[0x0][_0xdc8e('0x1b')]||0x0;}return db[_0xdc8e('0x89')][_0xdc8e('0x30')](_0x43615b[_0xdc8e('0x7f')](),{'type':db[_0xdc8e('0x89')][_0xdc8e('0x8a')][_0xdc8e('0x8b')]});})[_0xdc8e('0x26')](function(_0xa79548){return{'rows':_0xa79548||[],'count':_0x1959a9};});}});}exports['run']=function(_0x3acd33,_0x442948){return runReport(_0x3acd33[_0xdc8e('0x40')],_0x3acd33['query'],_0x3acd33['options'])[_0xdc8e('0x26')](respondWithResult(_0x442948,null))[_0xdc8e('0x46')](handleError(_0x442948,null));};exports[_0xdc8e('0x9d')]=runReport;exports[_0xdc8e('0x30')]=function(_0x35ed58,_0x5a599b){var _0x3b76bb=0xa;var _0x529b6f=[_0xdc8e('0x80'),_0xdc8e('0x81'),_0xdc8e('0x9e'),_0xdc8e('0x53')];var _0x2e6643={'SUM':_0xdc8e('0x82'),'COUNT':_0xdc8e('0x83'),'COUNT DISTINCT':_0xdc8e('0x54'),'MAX':_0xdc8e('0x55'),'MIN':'MIN(%s)','AVG':'AVG(%s)','GROUP_CONCAT':_0xdc8e('0x58'),'GROUP_CONCAT ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT DESC':_0xdc8e('0x5a')};var _0x11db02={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0xdc8e('0x84'),'HOUR':_0xdc8e('0x5c'),'ROUND':_0xdc8e('0x5d'),'UNIX_TIMESTAMP':_0xdc8e('0x9f')};var _0x13ff4a=function(_0x3f2ed5){return!_[_0xdc8e('0x5e')](['IS\x20NULL',_0xdc8e('0x5f'),_0xdc8e('0x60'),'IS\x20NOT\x20EMPTY'],_0x3f2ed5);};var _0x1820e2=function(_0x519d03){if(!_0x519d03||!_0x519d03[_0xdc8e('0x62')]['length']){return'';}for(var _0x234809='(',_0x3090ff=0x0;_0x3090ff<_0x519d03[_0xdc8e('0x62')][_0xdc8e('0x43')];_0x3090ff+=0x1){_0x3090ff>0x0&&(_0x234809+='\x20'+_0x519d03['operator']+'\x20');_0x234809+=_0x519d03[_0xdc8e('0x62')][_0x3090ff][_0xdc8e('0x64')]?_0x1820e2(_0x519d03[_0xdc8e('0x62')][_0x3090ff][_0xdc8e('0x64')]):_0x519d03[_0xdc8e('0x62')][_0x3090ff][_0xdc8e('0x70')]+'\x20'+_0x519d03[_0xdc8e('0x62')][_0x3090ff]['condition']+(_0x13ff4a(_0x519d03['rules'][_0x3090ff]['condition'])?'\x20'+_0x519d03['rules'][_0x3090ff][_0xdc8e('0xa0')]:'');}return _0x234809+')';};var _0x466788={'where':{'id':_0x35ed58[_0xdc8e('0x40')]['id']}},_0x35e4e7,_0x577232,_0x2449e9,_0x573dfd,_0x4fd26e;_0x466788=_['merge']({},_0x466788,_0x35ed58[_0xdc8e('0x3c')]);return db[_0xdc8e('0x2d')]['find'](_0x466788)[_0xdc8e('0x26')](function(_0x2c1b32){if(_0x2c1b32){_0x35e4e7=_0x2c1b32;return _0x2c1b32[_0xdc8e('0x86')]();}return null;})[_0xdc8e('0x26')](function(_0x5bd51f){if(_0x5bd51f){if(!_0x5bd51f[_0xdc8e('0x43')]){throw new db[(_0xdc8e('0x66'))][(_0xdc8e('0x67'))](_0xdc8e('0x68'),0x193);}_0x577232=_0x5bd51f;return db[_0xdc8e('0x69')]['findAll']({'raw':!![]});}return null;})[_0xdc8e('0x26')](function(_0x3713da){if(_0x3713da){_0x2449e9=_[_0xdc8e('0x6b')](_0x3713da,'id');var _0x47b9d7;var _0x58168b=squel['select']();_0x58168b['from'](_0x35e4e7[_0xdc8e('0x7c')]);for(var _0x3ec072=0x0;_0x3ec072<_0x577232[_0xdc8e('0x43')];_0x3ec072+=0x1){_0x47b9d7=_0x577232[_0x3ec072][_0xdc8e('0x6e')]?_0x2449e9[_0x577232[_0x3ec072][_0xdc8e('0x6e')]][_0xdc8e('0x6f')]:_0x577232[_0x3ec072][_0xdc8e('0x70')];_0x47b9d7=_0x577232[_0x3ec072]['function']?_[_0xdc8e('0x71')](_0x2e6643[_0x577232[_0x3ec072]['function']],'%s',_0x47b9d7):_0x47b9d7;_0x47b9d7=_0x577232[_0x3ec072]['format']?_[_0xdc8e('0x71')](_0x11db02[_0x577232[_0x3ec072][_0xdc8e('0x72')]],'%s',_0x47b9d7):_0x47b9d7;if(_0x577232[_0x3ec072][_0xdc8e('0x73')]){_0x58168b[_0xdc8e('0x64')](_0x47b9d7);}_0x577232[_0x3ec072][_0xdc8e('0x74')]&&_0x58168b[_0xdc8e('0x35')](_0x47b9d7,_0x577232[_0x3ec072][_0xdc8e('0x74')]==='DESC'?![]:!![]);_0x58168b[_0xdc8e('0x70')](_0x47b9d7,_0x577232[_0x3ec072][_0xdc8e('0x76')]||_0x47b9d7);}if(_0x35e4e7['joins']){_0x35e4e7['joins']=JSON[_0xdc8e('0x78')](_0x35e4e7['joins']);for(var _0x130985=0x0;_0x130985<_0x35e4e7[_0xdc8e('0x77')][_0xdc8e('0x43')];_0x130985+=0x1){if(_0x35e4e7[_0xdc8e('0x77')][_0x130985][_0xdc8e('0x2e')]&&_['includes'](_0x529b6f,_0x35e4e7[_0xdc8e('0x77')][_0x130985][_0xdc8e('0x2e')])&&_0x35e4e7['joins'][_0x130985][_0xdc8e('0x79')]&&_0x35e4e7['joins'][_0x130985][_0xdc8e('0x7a')]&&_0x35e4e7['joins'][_0x130985][_0xdc8e('0x7b')]){_0x58168b[_0x35e4e7[_0xdc8e('0x77')][_0x130985][_0xdc8e('0x2e')]](_0x35e4e7[_0xdc8e('0x77')][_0x130985][_0xdc8e('0x7a')],null,util['format'](_0xdc8e('0x88'),_0x35e4e7[_0xdc8e('0x7c')],_0x35e4e7[_0xdc8e('0x77')][_0x130985][_0xdc8e('0x79')],_0x35e4e7['joins'][_0x130985]['foreignTable'],_0x35e4e7['joins'][_0x130985][_0xdc8e('0x7b')]));}}}if(_0x35e4e7['conditions']){_0x35e4e7[_0xdc8e('0x7d')]=JSON[_0xdc8e('0x78')](_0x35e4e7[_0xdc8e('0x7d')]);_0x58168b[_0xdc8e('0x37')](_0x1820e2(_0x35e4e7[_0xdc8e('0x7d')]['group']));}_0x4fd26e=_0x58168b[_0xdc8e('0xa1')]();_0x58168b[_0xdc8e('0x1d')](_0x3b76bb);_0x58168b[_0xdc8e('0x1c')](0x0);logger['debug'](_0xdc8e('0xa2'),_0x58168b['toString']());return db[_0xdc8e('0x89')][_0xdc8e('0x30')](_0x58168b[_0xdc8e('0x7f')](),{'type':db[_0xdc8e('0x89')][_0xdc8e('0x8a')]['SELECT']});}})['then'](function(){return{'sql':_0x4fd26e[_0xdc8e('0x7f')]()};})[_0xdc8e('0x26')](respondWithResult(_0x5a599b,null))[_0xdc8e('0x46')](handleError(_0x5a599b,null));};
\ No newline at end of file
diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js
index c2df373..e470e64 100644
--- a/server/api/analyticCustomReport/analyticCustomReport.model.js
+++ b/server/api/analyticCustomReport/analyticCustomReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x930b=['define','analytics_custom_reports','lodash','util','api','moment','bluebird','rimraf','../../config/environment','./analyticCustomReport.attributes'];(function(_0x5dca82,_0x136a46){var _0x403d5e=function(_0x111b29){while(--_0x111b29){_0x5dca82['push'](_0x5dca82['shift']());}};_0x403d5e(++_0x136a46);}(_0x930b,0x106));var _0xb930=function(_0xf43ada,_0x4b7ef5){_0xf43ada=_0xf43ada-0x0;var _0x4fcb27=_0x930b[_0xf43ada];return _0x4fcb27;};'use strict';var _=require(_0xb930('0x0'));var util=require(_0xb930('0x1'));var logger=require('../../config/logger')(_0xb930('0x2'));var moment=require(_0xb930('0x3'));var BPromise=require(_0xb930('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xb930('0x5'));var config=require(_0xb930('0x6'));var attributes=require(_0xb930('0x7'));module['exports']=function(_0x438633,_0x2ba50a){return _0x438633[_0xb930('0x8')]('AnalyticCustomReport',attributes,{'tableName':_0xb930('0x9'),'paranoid':!![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xb81a=['util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','lodash'];(function(_0xbc14ff,_0x4f5f43){var _0x49f13d=function(_0x5bd08c){while(--_0x5bd08c){_0xbc14ff['push'](_0xbc14ff['shift']());}};_0x49f13d(++_0x4f5f43);}(_0xb81a,0x16a));var _0xab81=function(_0x502a5c,_0x1e5506){_0x502a5c=_0x502a5c-0x0;var _0x119398=_0xb81a[_0x502a5c];return _0x119398;};'use strict';var _=require(_0xab81('0x0'));var util=require(_0xab81('0x1'));var logger=require(_0xab81('0x2'))(_0xab81('0x3'));var moment=require(_0xab81('0x4'));var BPromise=require('bluebird');var rp=require(_0xab81('0x5'));var fs=require('fs');var path=require(_0xab81('0x6'));var rimraf=require(_0xab81('0x7'));var config=require(_0xab81('0x8'));var attributes=require('./analyticCustomReport.attributes');module[_0xab81('0x9')]=function(_0x1090e7,_0x5b51f2){return _0x1090e7[_0xab81('0xa')]('AnalyticCustomReport',attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticCustomReport/analyticCustomReport.rpc.js b/server/api/analyticCustomReport/analyticCustomReport.rpc.js
index 9d11c0e..973417e 100644
--- a/server/api/analyticCustomReport/analyticCustomReport.rpc.js
+++ b/server/api/analyticCustomReport/analyticCustomReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7d57=['client','http','then','info','AnalyticCustomReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticCustomReport,\x20%s,\x20%s,\x20%s','error','code','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc'];(function(_0x368e37,_0x1758c4){var _0x3a8438=function(_0x178085){while(--_0x178085){_0x368e37['push'](_0x368e37['shift']());}};_0x3a8438(++_0x1758c4);}(_0x7d57,0xdf));var _0x77d5=function(_0x2faddb,_0xc18b78){_0x2faddb=_0x2faddb-0x0;var _0x273c05=_0x7d57[_0x2faddb];return _0x273c05;};'use strict';var _=require(_0x77d5('0x0'));var util=require(_0x77d5('0x1'));var moment=require('moment');var BPromise=require(_0x77d5('0x2'));var rs=require(_0x77d5('0x3'));var fs=require('fs');var Redis=require(_0x77d5('0x4'));var db=require(_0x77d5('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x77d5('0x6'))(_0x77d5('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x77d5('0x8')][_0x77d5('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x229da8,_0xce27df,_0x5480e9){return new BPromise(function(_0x231d6c,_0x42e68d){return client['request'](_0x229da8,_0x5480e9)[_0x77d5('0xa')](function(_0x2b5bef){logger[_0x77d5('0xb')](_0x77d5('0xc'),_0xce27df,_0x77d5('0xd'));logger[_0x77d5('0xe')](_0x77d5('0xf'),_0xce27df,_0x77d5('0xd'),JSON['stringify'](_0x2b5bef));if(_0x2b5bef[_0x77d5('0x10')]){if(_0x2b5bef[_0x77d5('0x10')][_0x77d5('0x11')]===0x1f4){logger['error'](_0x77d5('0xc'),_0xce27df,_0x2b5bef[_0x77d5('0x10')]['message']);return _0x42e68d(_0x2b5bef[_0x77d5('0x10')][_0x77d5('0x12')]);}logger['error']('AnalyticCustomReport,\x20%s,\x20%s',_0xce27df,_0x2b5bef[_0x77d5('0x10')][_0x77d5('0x12')]);return _0x231d6c(_0x2b5bef[_0x77d5('0x10')]['message']);}else{logger[_0x77d5('0xb')]('AnalyticCustomReport,\x20%s,\x20%s',_0xce27df,_0x77d5('0xd'));_0x231d6c(_0x2b5bef[_0x77d5('0x13')]['message']);}})[_0x77d5('0x14')](function(_0x35a2b0){logger[_0x77d5('0x10')](_0x77d5('0xc'),_0xce27df,_0x35a2b0);_0x42e68d(_0x35a2b0);});});}
\ No newline at end of file
+var _0x6c13=['client','then','info','debug','AnalyticCustomReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','AnalyticCustomReport,\x20%s,\x20%s','request\x20sent','result','lodash','util','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x9260f5,_0x33597f){var _0x17ae93=function(_0x3dbe61){while(--_0x3dbe61){_0x9260f5['push'](_0x9260f5['shift']());}};_0x17ae93(++_0x33597f);}(_0x6c13,0xb4));var _0x36c1=function(_0x514c5e,_0x8c0875){_0x514c5e=_0x514c5e-0x0;var _0x34c3e6=_0x6c13[_0x514c5e];return _0x34c3e6;};'use strict';var _=require(_0x36c1('0x0'));var util=require(_0x36c1('0x1'));var moment=require('moment');var BPromise=require(_0x36c1('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x36c1('0x3'));var db=require(_0x36c1('0x4'))['db'];var utils=require(_0x36c1('0x5'));var logger=require(_0x36c1('0x6'))(_0x36c1('0x7'));var config=require(_0x36c1('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x36c1('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4378fd,_0x561dac,_0x391596){return new BPromise(function(_0x386e31,_0x3561bd){return client['request'](_0x4378fd,_0x391596)[_0x36c1('0xa')](function(_0x1fc276){logger[_0x36c1('0xb')]('AnalyticCustomReport,\x20%s,\x20%s',_0x561dac,'request\x20sent');logger[_0x36c1('0xc')](_0x36c1('0xd'),_0x561dac,'request\x20sent',JSON[_0x36c1('0xe')](_0x1fc276));if(_0x1fc276[_0x36c1('0xf')]){if(_0x1fc276['error'][_0x36c1('0x10')]===0x1f4){logger[_0x36c1('0xf')]('AnalyticCustomReport,\x20%s,\x20%s',_0x561dac,_0x1fc276[_0x36c1('0xf')]['message']);return _0x3561bd(_0x1fc276[_0x36c1('0xf')][_0x36c1('0x11')]);}logger[_0x36c1('0xf')](_0x36c1('0x12'),_0x561dac,_0x1fc276[_0x36c1('0xf')][_0x36c1('0x11')]);return _0x386e31(_0x1fc276[_0x36c1('0xf')][_0x36c1('0x11')]);}else{logger[_0x36c1('0xb')](_0x36c1('0x12'),_0x561dac,_0x36c1('0x13'));_0x386e31(_0x1fc276[_0x36c1('0x14')]['message']);}})['catch'](function(_0x1cc443){logger['error'](_0x36c1('0x12'),_0x561dac,_0x1cc443);_0x3561bd(_0x1cc443);});});}
\ No newline at end of file
diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js
index 29419af..a997d16 100644
--- a/server/api/analyticCustomReport/index.js
+++ b/server/api/analyticCustomReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x70bb=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/preview','preview','/:id/run','run','post','create','put','update','delete','destroy','exports'];(function(_0x54ed58,_0xa2ee82){var _0x59df49=function(_0x31c6c6){while(--_0x31c6c6){_0x54ed58['push'](_0x54ed58['shift']());}};_0x59df49(++_0xa2ee82);}(_0x70bb,0x176));var _0xb70b=function(_0x9f6f64,_0x4cd6df){_0x9f6f64=_0x9f6f64-0x0;var _0x3b9f5c=_0x70bb[_0x9f6f64];return _0x3b9f5c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb70b('0x0'));var timeout=require('connect-timeout');var express=require(_0xb70b('0x1'));var router=express[_0xb70b('0x2')]();var auth=require(_0xb70b('0x3'));var interaction=require(_0xb70b('0x4'));var config=require(_0xb70b('0x5'));var controller=require('./analyticCustomReport.controller');router[_0xb70b('0x6')]('/',auth[_0xb70b('0x7')](),controller[_0xb70b('0x8')]);router[_0xb70b('0x6')](_0xb70b('0x9'),auth[_0xb70b('0x7')](),controller[_0xb70b('0xa')]);router[_0xb70b('0x6')](_0xb70b('0xb'),auth['isAuthenticated'](),controller[_0xb70b('0xc')]);router['get'](_0xb70b('0xd'),auth[_0xb70b('0x7')](),controller[_0xb70b('0xe')]);router[_0xb70b('0x6')]('/:id/query',auth[_0xb70b('0x7')](),controller['query']);router[_0xb70b('0xf')]('/',auth['isAuthenticated'](),controller[_0xb70b('0x10')]);router[_0xb70b('0x11')](_0xb70b('0x9'),auth['isAuthenticated'](),controller[_0xb70b('0x12')]);router[_0xb70b('0x13')](_0xb70b('0x9'),auth[_0xb70b('0x7')](),controller[_0xb70b('0x14')]);module[_0xb70b('0x15')]=router;
\ No newline at end of file
+var _0x102f=['/:id/preview','/:id/query','query','create','put','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','./analyticCustomReport.controller','get','isAuthenticated','index','/:id','show'];(function(_0x3e4add,_0x34cc79){var _0x57e78e=function(_0x38fb47){while(--_0x38fb47){_0x3e4add['push'](_0x3e4add['shift']());}};_0x57e78e(++_0x34cc79);}(_0x102f,0xcd));var _0xf102=function(_0x4da7da,_0x17974b){_0x4da7da=_0x4da7da-0x0;var _0x30485d=_0x102f[_0x4da7da];return _0x30485d;};'use strict';var multer=require('multer');var util=require(_0xf102('0x0'));var path=require(_0xf102('0x1'));var timeout=require(_0xf102('0x2'));var express=require('express');var router=express[_0xf102('0x3')]();var auth=require(_0xf102('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf102('0x5'));router[_0xf102('0x6')]('/',auth[_0xf102('0x7')](),controller[_0xf102('0x8')]);router[_0xf102('0x6')](_0xf102('0x9'),auth['isAuthenticated'](),controller[_0xf102('0xa')]);router[_0xf102('0x6')](_0xf102('0xb'),auth[_0xf102('0x7')](),controller['preview']);router['get']('/:id/run',auth[_0xf102('0x7')](),controller['run']);router[_0xf102('0x6')](_0xf102('0xc'),auth[_0xf102('0x7')](),controller[_0xf102('0xd')]);router['post']('/',auth[_0xf102('0x7')](),controller[_0xf102('0xe')]);router[_0xf102('0xf')](_0xf102('0x9'),auth[_0xf102('0x7')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xf102('0x10')]);module[_0xf102('0x11')]=router;
\ No newline at end of file
diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js
index 7dfdd16..fc14e29 100644
--- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js
+++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3dee=['exports','STRING','sequelize'];(function(_0x1ea1e8,_0x5aa4ad){var _0xd2c012=function(_0x42f8c8){while(--_0x42f8c8){_0x1ea1e8['push'](_0x1ea1e8['shift']());}};_0xd2c012(++_0x5aa4ad);}(_0x3dee,0x9b));var _0xe3de=function(_0x4f0fc7,_0x2cfce8){_0x4f0fc7=_0x4f0fc7-0x0;var _0x2a4bd6=_0x3dee[_0x4f0fc7];return _0x2a4bd6;};'use strict';var Sequelize=require(_0xe3de('0x0'));module[_0xe3de('0x1')]={'name':{'type':Sequelize[_0xe3de('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'parent':{'type':Sequelize['STRING']},'table':{'type':Sequelize[_0xe3de('0x2')]},'conditions':{'type':Sequelize['TEXT']},'joins':{'type':Sequelize['TEXT']}};
\ No newline at end of file
+var _0x4de6=['STRING','TEXT','exports'];(function(_0x4180b4,_0xc23d46){var _0x14e688=function(_0xeca499){while(--_0xeca499){_0x4180b4['push'](_0x4180b4['shift']());}};_0x14e688(++_0xc23d46);}(_0x4de6,0x1b8));var _0x64de=function(_0x52c0d0,_0x20b184){_0x52c0d0=_0x52c0d0-0x0;var _0x38946d=_0x4de6[_0x52c0d0];return _0x38946d;};'use strict';var Sequelize=require('sequelize');module[_0x64de('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x64de('0x1')]},'parent':{'type':Sequelize[_0x64de('0x1')]},'table':{'type':Sequelize[_0x64de('0x1')]},'conditions':{'type':Sequelize[_0x64de('0x2')]},'joins':{'type':Sequelize[_0x64de('0x2')]}};
\ No newline at end of file
diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js
index d6df152..f5de3ca 100644
--- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js
+++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7953=['VIRTUAL','options','includeAll','include','findAll','rows','catch','params','find','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','userProfileId','autoAssociation','error','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','preview','join','left_join','SUM(%s)','COUNT(%s)','COUNT(DISTINCT\x20%s)','MAX(%s)','MIN(%s)','AVG(%s)','GROUP_CONCAT(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','SEC_TO_TIME(%s)','DATE(%s)','HOUR(%s)','ROUND(%s)','includes','IS\x20NULL','IS\x20NOT\x20NULL','IS\x20NOT\x20EMPTY','rules','group','condition','getFields','Please\x20insert\x20at\x20least\x20one\x20field','AnalyticMetric','keyBy','from','table','MetricId','metric','function','replace','format','groupBy','orderBy','DESC','field','joins','parse','parentKey','foreignTable','foreignKey','%s.%s\x20=\x20%s.%s','conditions','Limited\x20Query:','toString','sequelize','QueryTypes','right_join','cross_join','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','IS\x20EMPTY','operator','Sequelize','ValidationErrorItem','alias','clone','debug','web','fullPath','%s-%s.%s','randomstring','generate','csv','default','AnalyticExtractedReport','cdr','.calldate\x20BETWEEN\x20?\x20AND\x20?','startDate','endDate','info','Run\x20Query:','child_process','../../components/export/','output','../../files/reports','savename','countTable','COUNT(*)','SELECT','runReport','UNIX_TIMESTAMP(%s)','value','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','path','sox','to-csv','ejs','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../mysqldb','sendStatus','status','end','count','offset','limit','Content-Range','json','apply','save','update','then','destroy','get','DefaultReports','stack','name','send','map','AnalyticDefaultReport','rawAttributes','fieldName','type','keys','query','filters','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge'];(function(_0x5b54c7,_0x423c32){var _0x43f07b=function(_0x208bd8){while(--_0x208bd8){_0x5b54c7['push'](_0x5b54c7['shift']());}};_0x43f07b(++_0x423c32);}(_0x7953,0x66));var _0x3795=function(_0x289e64,_0x5adb3c){_0x289e64=_0x289e64-0x0;var _0x30246c=_0x7953[_0x289e64];return _0x30246c;};'use strict';var pdf=require(_0x3795('0x0'));var emlformat=require(_0x3795('0x1'));var rimraf=require(_0x3795('0x2'));var zipdir=require(_0x3795('0x3'));var jsonpatch=require(_0x3795('0x4'));var rp=require(_0x3795('0x5'));var moment=require(_0x3795('0x6'));var BPromise=require(_0x3795('0x7'));var Mustache=require('mustache');var util=require('util');var path=require(_0x3795('0x8'));var sox=require(_0x3795('0x9'));var csv=require(_0x3795('0xa'));var ejs=require(_0x3795('0xb'));var fs=require('fs');var _=require('lodash');var squel=require(_0x3795('0xc'));var crypto=require('crypto');var jsforce=require(_0x3795('0xd'));var deskjs=require(_0x3795('0xe'));var toCsv=require(_0x3795('0xa'));var querystring=require(_0x3795('0xf'));var Papa=require(_0x3795('0x10'));var Redis=require(_0x3795('0x11'));var authService=require(_0x3795('0x12'));var qs=require('../../components/parsers/qs');var as=require(_0x3795('0x13'));var hardwareService=require(_0x3795('0x14'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0x3795('0x15'))['db'];function respondWithStatusCode(_0x2368f4,_0x324d32){_0x324d32=_0x324d32||0xcc;return function(_0x154327){if(_0x154327){return _0x2368f4[_0x3795('0x16')](_0x324d32);}return _0x2368f4[_0x3795('0x17')](_0x324d32)[_0x3795('0x18')]();};}function respondWithResult(_0x2dce50,_0x233d57){_0x233d57=_0x233d57||0xc8;return function(_0x3d8f3c){if(_0x3d8f3c){return _0x2dce50[_0x3795('0x17')](_0x233d57)['json'](_0x3d8f3c);}};}function respondWithFilteredResult(_0x15a662,_0x45975d){return function(_0x2cf2a3){if(_0x2cf2a3){var _0x3f8974=_0x2cf2a3[_0x3795('0x19')],_0x596380=_0x45975d[_0x3795('0x1a')],_0x1a4d7d=_0x45975d[_0x3795('0x1a')]+_0x45975d[_0x3795('0x1b')],_0x587874;if(_0x1a4d7d>=_0x3f8974){_0x1a4d7d=_0x3f8974;_0x587874=0xc8;}else{_0x587874=0xce;}_0x15a662[_0x3795('0x17')](_0x587874);return _0x15a662['set'](_0x3795('0x1c'),_0x596380+'-'+_0x1a4d7d+'/'+_0x3f8974)[_0x3795('0x1d')](_0x2cf2a3);}return null;};}function patchUpdates(_0x31c9fb){return function(_0x3ad8da){try{jsonpatch[_0x3795('0x1e')](_0x3ad8da,_0x31c9fb,!![]);}catch(_0xd71e1f){return BPromise['reject'](_0xd71e1f);}return _0x3ad8da[_0x3795('0x1f')]();};}function saveUpdates(_0x2d507b,_0x5cb8ba){return function(_0x360391){if(_0x360391){return _0x360391[_0x3795('0x20')](_0x2d507b)[_0x3795('0x21')](function(_0x13ee38){return _0x13ee38;});}return null;};}function removeEntity(_0x2c9445,_0x3145e2){return function(_0xd72898){if(_0xd72898){return _0xd72898[_0x3795('0x22')]()[_0x3795('0x21')](function(){var _0x115bd6=_0xd72898[_0x3795('0x23')]({'plain':!![]});var _0x3924c1=_0x3795('0x24');return db['UserProfileResource'][_0x3795('0x22')]({'where':{'type':_0x3924c1,'resourceId':_0x115bd6['id']}})[_0x3795('0x21')](function(){return _0xd72898;});})['then'](function(){_0x2c9445[_0x3795('0x17')](0xcc)[_0x3795('0x18')]();});}};}function handleEntityNotFound(_0x22bb58,_0x389b01){return function(_0x596170){if(!_0x596170){_0x22bb58[_0x3795('0x16')](0x194);}return _0x596170;};}function handleError(_0x9fe5c0,_0x311a05){_0x311a05=_0x311a05||0x1f4;return function(_0x53ed2c){logger['error'](_0x53ed2c[_0x3795('0x25')]);if(_0x53ed2c[_0x3795('0x26')]){delete _0x53ed2c[_0x3795('0x26')];}_0x9fe5c0['status'](_0x311a05)[_0x3795('0x27')](_0x53ed2c);};}exports['index']=function(_0x14dece,_0x9e86cc){var _0x436d54={},_0x8b8a00={},_0x13b64b={'count':0x0,'rows':[]};var _0x16f170=_[_0x3795('0x28')](db[_0x3795('0x29')][_0x3795('0x2a')],function(_0x4cdacd){return{'name':_0x4cdacd[_0x3795('0x2b')],'type':_0x4cdacd[_0x3795('0x2c')]['key']};});_0x8b8a00['model']=_['map'](_0x16f170,_0x3795('0x26'));_0x8b8a00['query']=_[_0x3795('0x2d')](_0x14dece[_0x3795('0x2e')]);_0x8b8a00[_0x3795('0x2f')]=_[_0x3795('0x30')](_0x8b8a00[_0x3795('0x31')],_0x8b8a00[_0x3795('0x2e')]);_0x436d54[_0x3795('0x32')]=_[_0x3795('0x30')](_0x8b8a00[_0x3795('0x31')],qs[_0x3795('0x33')](_0x14dece[_0x3795('0x2e')][_0x3795('0x33')]));_0x436d54[_0x3795('0x32')]=_0x436d54[_0x3795('0x32')][_0x3795('0x34')]?_0x436d54['attributes']:_0x8b8a00[_0x3795('0x31')];if(!_0x14dece['query'][_0x3795('0x35')](_0x3795('0x36'))){_0x436d54[_0x3795('0x1b')]=qs[_0x3795('0x1b')](_0x14dece[_0x3795('0x2e')][_0x3795('0x1b')]);_0x436d54[_0x3795('0x1a')]=qs[_0x3795('0x1a')](_0x14dece[_0x3795('0x2e')][_0x3795('0x1a')]);}_0x436d54[_0x3795('0x37')]=qs['sort'](_0x14dece[_0x3795('0x2e')][_0x3795('0x38')]);_0x436d54[_0x3795('0x39')]=qs[_0x3795('0x2f')](_[_0x3795('0x3a')](_0x14dece[_0x3795('0x2e')],_0x8b8a00[_0x3795('0x2f')]));if(_0x14dece[_0x3795('0x2e')][_0x3795('0x3b')]){_0x436d54[_0x3795('0x39')]=_[_0x3795('0x3c')](_0x436d54[_0x3795('0x39')],{'$or':_[_0x3795('0x28')](_0x16f170,function(_0x2c2923){if(_0x2c2923[_0x3795('0x2c')]!==_0x3795('0x3d')){var _0xcb5a5={};_0xcb5a5[_0x2c2923[_0x3795('0x26')]]={'$like':'%'+_0x14dece[_0x3795('0x2e')][_0x3795('0x3b')]+'%'};return _0xcb5a5;}})});}_0x436d54=_[_0x3795('0x3c')]({},_0x436d54,_0x14dece[_0x3795('0x3e')]);var _0x5cbe39={'where':_0x436d54[_0x3795('0x39')]};return db[_0x3795('0x29')]['count'](_0x5cbe39)[_0x3795('0x21')](function(_0x1d380f){_0x13b64b[_0x3795('0x19')]=_0x1d380f;if(_0x14dece[_0x3795('0x2e')][_0x3795('0x3f')]){_0x436d54[_0x3795('0x40')]=[{'all':!![]}];}return db[_0x3795('0x29')][_0x3795('0x41')](_0x436d54);})[_0x3795('0x21')](function(_0x2061a5){_0x13b64b[_0x3795('0x42')]=_0x2061a5;return _0x13b64b;})[_0x3795('0x21')](respondWithFilteredResult(_0x9e86cc,_0x436d54))[_0x3795('0x43')](handleError(_0x9e86cc,null));};exports['show']=function(_0x13a264,_0x304755){var _0xde7b99={'raw':!![],'where':{'id':_0x13a264[_0x3795('0x44')]['id']}},_0xcf0420={};_0xcf0420[_0x3795('0x31')]=_['keys'](db[_0x3795('0x29')]['rawAttributes']);_0xcf0420[_0x3795('0x2e')]=_[_0x3795('0x2d')](_0x13a264[_0x3795('0x2e')]);_0xcf0420[_0x3795('0x2f')]=_[_0x3795('0x30')](_0xcf0420['model'],_0xcf0420['query']);_0xde7b99[_0x3795('0x32')]=_[_0x3795('0x30')](_0xcf0420[_0x3795('0x31')],qs[_0x3795('0x33')](_0x13a264[_0x3795('0x2e')]['fields']));_0xde7b99[_0x3795('0x32')]=_0xde7b99[_0x3795('0x32')]['length']?_0xde7b99['attributes']:_0xcf0420['model'];if(_0x13a264[_0x3795('0x2e')][_0x3795('0x3f')]){_0xde7b99[_0x3795('0x40')]=[{'all':!![]}];}_0xde7b99=_[_0x3795('0x3c')]({},_0xde7b99,_0x13a264['options']);return db[_0x3795('0x29')][_0x3795('0x45')](_0xde7b99)['then'](handleEntityNotFound(_0x304755,null))[_0x3795('0x21')](respondWithResult(_0x304755,null))['catch'](handleError(_0x304755,null));};exports[_0x3795('0x46')]=function(_0x1768ba,_0x4a6cb8){return db['AnalyticDefaultReport'][_0x3795('0x46')](_0x1768ba[_0x3795('0x47')],{})[_0x3795('0x21')](function(_0x3fdfea){var _0x1e9433=_0x1768ba[_0x3795('0x48')]['get']({'plain':!![]});if(!_0x1e9433)throw new Error(_0x3795('0x49'));if(_0x1e9433[_0x3795('0x4a')]===_0x3795('0x48')){var _0x16c49a=_0x3fdfea[_0x3795('0x23')]({'plain':!![]});var _0x42103c='Reports';return db[_0x3795('0x4b')][_0x3795('0x45')]({'where':{'name':_0x42103c,'userProfileId':_0x1e9433[_0x3795('0x4c')]},'raw':!![]})[_0x3795('0x21')](function(_0x436006){if(_0x436006&&_0x436006[_0x3795('0x4d')]===0x0){return db['UserProfileResource'][_0x3795('0x46')]({'name':_0x16c49a[_0x3795('0x26')],'resourceId':_0x16c49a['id'],'type':_0x3795('0x24'),'sectionId':_0x436006['id']},{})[_0x3795('0x21')](function(){return _0x3fdfea;});}else{return _0x3fdfea;}})[_0x3795('0x43')](function(_0xee31e1){logger[_0x3795('0x4e')](_0x3795('0x4f'),_0xee31e1);throw _0xee31e1;});}return _0x3fdfea;})[_0x3795('0x21')](respondWithResult(_0x4a6cb8,0xc9))[_0x3795('0x43')](handleError(_0x4a6cb8,null));};exports[_0x3795('0x20')]=function(_0x1e2a4b,_0x3cb30a){if(_0x1e2a4b['body']['id']){delete _0x1e2a4b[_0x3795('0x47')]['id'];}return db[_0x3795('0x29')][_0x3795('0x45')]({'where':{'id':_0x1e2a4b[_0x3795('0x44')]['id']}})[_0x3795('0x21')](handleEntityNotFound(_0x3cb30a,null))[_0x3795('0x21')](saveUpdates(_0x1e2a4b[_0x3795('0x47')],null))[_0x3795('0x21')](respondWithResult(_0x3cb30a,null))[_0x3795('0x43')](handleError(_0x3cb30a,null));};exports[_0x3795('0x22')]=function(_0x5080b6,_0x579c69){return db[_0x3795('0x29')][_0x3795('0x45')]({'where':{'id':_0x5080b6['params']['id']}})[_0x3795('0x21')](handleEntityNotFound(_0x579c69,null))[_0x3795('0x21')](removeEntity(_0x579c69,null))[_0x3795('0x43')](handleError(_0x579c69,null));};exports[_0x3795('0x50')]=function(_0x19f8af,_0x5626d2){var _0xcaf614=0xa;var _0x487ebf=[_0x3795('0x51'),_0x3795('0x52'),'right_join','cross_join'];var _0x12970f={'SUM':_0x3795('0x53'),'COUNT':_0x3795('0x54'),'COUNT DISTINCT':_0x3795('0x55'),'MAX':_0x3795('0x56'),'MIN':_0x3795('0x57'),'AVG':_0x3795('0x58'),'GROUP_CONCAT':_0x3795('0x59'),'GROUP_CONCAT ASC':_0x3795('0x5a'),'GROUP_CONCAT DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'};var _0x451372={'SEC_TO_TIME':_0x3795('0x5b'),'DATE':_0x3795('0x5c'),'HOUR':_0x3795('0x5d'),'ROUND':_0x3795('0x5e'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'};var _0x16f5de=function(_0x27ca09){return!_[_0x3795('0x5f')]([_0x3795('0x60'),_0x3795('0x61'),'IS\x20EMPTY',_0x3795('0x62')],_0x27ca09);};var _0x8ea3b4=function(_0x3ce914){if(!_0x3ce914||!_0x3ce914['rules'][_0x3795('0x34')]){return'';}for(var _0x1e8c72='(',_0x1c0c3c=0x0;_0x1c0c3c<_0x3ce914['rules'][_0x3795('0x34')];_0x1c0c3c+=0x1){_0x1c0c3c>0x0&&(_0x1e8c72+='\x20'+_0x3ce914['operator']+'\x20');_0x1e8c72+=_0x3ce914[_0x3795('0x63')][_0x1c0c3c][_0x3795('0x64')]?_0x8ea3b4(_0x3ce914['rules'][_0x1c0c3c][_0x3795('0x64')]):_0x3ce914['rules'][_0x1c0c3c]['field']+'\x20'+_0x3ce914[_0x3795('0x63')][_0x1c0c3c][_0x3795('0x65')]+(_0x16f5de(_0x3ce914[_0x3795('0x63')][_0x1c0c3c][_0x3795('0x65')])?'\x20'+_0x3ce914['rules'][_0x1c0c3c]['value']:'');}return _0x1e8c72+')';};var _0x1a5d17={'where':{'id':_0x19f8af[_0x3795('0x44')]['id']}},_0x35e089,_0x55a2a8,_0x4d79c2,_0x1b83fc,_0x4aba4d;_0x1a5d17=_[_0x3795('0x3c')]({},_0x1a5d17,_0x19f8af[_0x3795('0x3e')]);return db['AnalyticDefaultReport'][_0x3795('0x45')](_0x1a5d17)['then'](function(_0x40a9e8){if(_0x40a9e8){_0x35e089=_0x40a9e8;return _0x40a9e8[_0x3795('0x66')]();}return null;})[_0x3795('0x21')](function(_0x38aa9c){if(_0x38aa9c){if(!_0x38aa9c['length']){throw new db['Sequelize']['ValidationErrorItem'](_0x3795('0x67'),0x193);}_0x55a2a8=_0x38aa9c;return db[_0x3795('0x68')][_0x3795('0x41')]({'raw':!![]});}return null;})['then'](function(_0x3dbb1f){if(_0x3dbb1f){_0x4d79c2=_[_0x3795('0x69')](_0x3dbb1f,'id');var _0x28b4df;var _0x322b98=squel['select']();_0x322b98[_0x3795('0x6a')](_0x35e089[_0x3795('0x6b')]);for(var _0x1bc954=0x0;_0x1bc954<_0x55a2a8[_0x3795('0x34')];_0x1bc954+=0x1){_0x28b4df=_0x55a2a8[_0x1bc954][_0x3795('0x6c')]?_0x4d79c2[_0x55a2a8[_0x1bc954][_0x3795('0x6c')]][_0x3795('0x6d')]:_0x55a2a8[_0x1bc954]['field'];_0x28b4df=_0x55a2a8[_0x1bc954][_0x3795('0x6e')]?_[_0x3795('0x6f')](_0x12970f[_0x55a2a8[_0x1bc954]['function']],'%s',_0x28b4df):_0x28b4df;_0x28b4df=_0x55a2a8[_0x1bc954][_0x3795('0x70')]?_[_0x3795('0x6f')](_0x451372[_0x55a2a8[_0x1bc954][_0x3795('0x70')]],'%s',_0x28b4df):_0x28b4df;if(_0x55a2a8[_0x1bc954][_0x3795('0x71')]){_0x322b98[_0x3795('0x64')](_0x28b4df);}_0x55a2a8[_0x1bc954][_0x3795('0x72')]&&_0x322b98[_0x3795('0x37')](_0x28b4df,_0x55a2a8[_0x1bc954][_0x3795('0x72')]===_0x3795('0x73')?![]:!![]);_0x322b98[_0x3795('0x74')](_0x28b4df,_0x55a2a8[_0x1bc954]['alias']||_0x28b4df);}if(_0x35e089[_0x3795('0x75')]){_0x35e089[_0x3795('0x75')]=JSON[_0x3795('0x76')](_0x35e089[_0x3795('0x75')]);for(var _0x1513f8=0x0;_0x1513f8<_0x35e089[_0x3795('0x75')][_0x3795('0x34')];_0x1513f8+=0x1){if(_0x35e089[_0x3795('0x75')][_0x1513f8][_0x3795('0x2c')]&&_['includes'](_0x487ebf,_0x35e089['joins'][_0x1513f8][_0x3795('0x2c')])&&_0x35e089['joins'][_0x1513f8][_0x3795('0x77')]&&_0x35e089[_0x3795('0x75')][_0x1513f8][_0x3795('0x78')]&&_0x35e089[_0x3795('0x75')][_0x1513f8][_0x3795('0x79')]){_0x322b98[_0x35e089['joins'][_0x1513f8]['type']](_0x35e089[_0x3795('0x75')][_0x1513f8][_0x3795('0x78')],null,util[_0x3795('0x70')](_0x3795('0x7a'),_0x35e089[_0x3795('0x6b')],_0x35e089['joins'][_0x1513f8][_0x3795('0x77')],_0x35e089[_0x3795('0x75')][_0x1513f8]['foreignTable'],_0x35e089[_0x3795('0x75')][_0x1513f8][_0x3795('0x79')]));}}}if(_0x35e089[_0x3795('0x7b')]){_0x35e089[_0x3795('0x7b')]=JSON['parse'](_0x35e089[_0x3795('0x7b')]);_0x322b98[_0x3795('0x39')](_0x8ea3b4(_0x35e089[_0x3795('0x7b')][_0x3795('0x64')]));}_0x4aba4d=_0x322b98['clone']();_0x322b98[_0x3795('0x1b')](_0xcaf614);_0x322b98['offset'](0x0);logger['debug'](_0x3795('0x7c'),_0x322b98[_0x3795('0x7d')]());return db['sequelize']['query'](_0x322b98[_0x3795('0x7d')](),{'type':db[_0x3795('0x7e')][_0x3795('0x7f')]['SELECT']});}})[_0x3795('0x21')](respondWithResult(_0x5626d2,null))[_0x3795('0x43')](handleError(_0x5626d2,null));};function runReport(_0x31826,_0x4247dd,_0x19f93e){var _0x591ad9=_0x4247dd[_0x3795('0x26')];var _0xeaa5b=0xa;var _0x117ef0=['join',_0x3795('0x52'),_0x3795('0x80'),_0x3795('0x81')];var _0x533c36={'SUM':_0x3795('0x53'),'COUNT':'COUNT(%s)','COUNT DISTINCT':_0x3795('0x55'),'MAX':'MAX(%s)','MIN':_0x3795('0x57'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x3795('0x59'),'GROUP_CONCAT ASC':_0x3795('0x5a'),'GROUP_CONCAT DESC':_0x3795('0x82')};var _0x5d2d46={'SEC_TO_TIME':_0x3795('0x5b'),'DATE':_0x3795('0x5c'),'HOUR':_0x3795('0x5d'),'ROUND':_0x3795('0x5e'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'};var _0x390a32=function(_0x5a3f05){return!_[_0x3795('0x5f')](['IS\x20NULL','IS\x20NOT\x20NULL',_0x3795('0x83'),'IS\x20NOT\x20EMPTY'],_0x5a3f05);};var _0x379ebc=function(_0xf23d30){if(!_0xf23d30||!_0xf23d30['rules'][_0x3795('0x34')]){return'';}for(var _0x1464bb='(',_0x50cad4=0x0;_0x50cad4<_0xf23d30[_0x3795('0x63')][_0x3795('0x34')];_0x50cad4+=0x1){_0x50cad4>0x0&&(_0x1464bb+='\x20'+_0xf23d30[_0x3795('0x84')]+'\x20');_0x1464bb+=_0xf23d30[_0x3795('0x63')][_0x50cad4][_0x3795('0x64')]?_0x379ebc(_0xf23d30[_0x3795('0x63')][_0x50cad4]['group']):_0xf23d30[_0x3795('0x63')][_0x50cad4][_0x3795('0x74')]+'\x20'+_0xf23d30[_0x3795('0x63')][_0x50cad4][_0x3795('0x65')]+(_0x390a32(_0xf23d30[_0x3795('0x63')][_0x50cad4][_0x3795('0x65')])?'\x20'+_0xf23d30['rules'][_0x50cad4]['value']:'');}return _0x1464bb+')';};var _0x1df5b6={'where':{'id':_0x31826['id']}},_0x40d38f,_0x38e4cb,_0xfc55ca,_0x5e35c8,_0x41bc49;_0x1df5b6=_['merge']({},_0x1df5b6,_0x19f93e);return db[_0x3795('0x29')][_0x3795('0x45')](_0x1df5b6)[_0x3795('0x21')](function(_0xb58bb3){if(_0xb58bb3){_0x40d38f=_0xb58bb3;return _0xb58bb3[_0x3795('0x66')]();}return null;})[_0x3795('0x21')](function(_0x21e0f7){if(_0x21e0f7){if(!_0x21e0f7[_0x3795('0x34')]){throw new db[(_0x3795('0x85'))][(_0x3795('0x86'))](_0x3795('0x67'),0x193);}_0x38e4cb=_0x21e0f7;return db[_0x3795('0x68')][_0x3795('0x41')]({'raw':!![]});}return null;})[_0x3795('0x21')](function(_0x43c6f6){if(_0x43c6f6){_0xfc55ca=_['keyBy'](_0x43c6f6,'id');var _0x4fe8eb;var _0x2dffac=squel['select']();_0x2dffac[_0x3795('0x6a')](_0x40d38f[_0x3795('0x6b')]);for(var _0x5d8f1c=0x0;_0x5d8f1c<_0x38e4cb[_0x3795('0x34')];_0x5d8f1c+=0x1){_0x4fe8eb=_0x38e4cb[_0x5d8f1c][_0x3795('0x6c')]?_0xfc55ca[_0x38e4cb[_0x5d8f1c][_0x3795('0x6c')]][_0x3795('0x6d')]:_0x38e4cb[_0x5d8f1c][_0x3795('0x74')];_0x4fe8eb=_0x38e4cb[_0x5d8f1c][_0x3795('0x6e')]?_[_0x3795('0x6f')](_0x533c36[_0x38e4cb[_0x5d8f1c][_0x3795('0x6e')]],'%s',_0x4fe8eb):_0x4fe8eb;_0x4fe8eb=_0x38e4cb[_0x5d8f1c]['format']?_[_0x3795('0x6f')](_0x5d2d46[_0x38e4cb[_0x5d8f1c][_0x3795('0x70')]],'%s',_0x4fe8eb):_0x4fe8eb;if(_0x38e4cb[_0x5d8f1c][_0x3795('0x71')]){_0x2dffac[_0x3795('0x64')](_0x4fe8eb);}_0x38e4cb[_0x5d8f1c][_0x3795('0x72')]&&_0x2dffac[_0x3795('0x37')](_0x4fe8eb,_0x38e4cb[_0x5d8f1c][_0x3795('0x72')]==='DESC'?![]:!![]);_0x2dffac['field'](_0x4fe8eb,_0x38e4cb[_0x5d8f1c][_0x3795('0x87')]||_0x4fe8eb);}if(_0x40d38f[_0x3795('0x75')]){_0x40d38f[_0x3795('0x75')]=JSON['parse'](_0x40d38f[_0x3795('0x75')]);for(var _0x4a0e8d=0x0;_0x4a0e8d<_0x40d38f['joins'][_0x3795('0x34')];_0x4a0e8d+=0x1){if(_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x2c')]&&_[_0x3795('0x5f')](_0x117ef0,_0x40d38f[_0x3795('0x75')][_0x4a0e8d]['type'])&&_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x77')]&&_0x40d38f[_0x3795('0x75')][_0x4a0e8d]['foreignTable']&&_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x79')]){_0x2dffac[_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x2c')]](_0x40d38f['joins'][_0x4a0e8d][_0x3795('0x78')],null,util[_0x3795('0x70')](_0x3795('0x7a'),_0x40d38f[_0x3795('0x6b')],_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x77')],_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x78')],_0x40d38f[_0x3795('0x75')][_0x4a0e8d][_0x3795('0x79')]));}}}if(_0x40d38f[_0x3795('0x7b')]){_0x40d38f[_0x3795('0x7b')]=JSON[_0x3795('0x76')](_0x40d38f[_0x3795('0x7b')]);_0x2dffac[_0x3795('0x39')](_0x379ebc(_0x40d38f['conditions']['group']));}_0x41bc49=_0x2dffac[_0x3795('0x88')]();_0x2dffac['limit'](_0xeaa5b);_0x2dffac[_0x3795('0x1a')](0x0);logger[_0x3795('0x89')](_0x3795('0x7c'),_0x2dffac[_0x3795('0x7d')]());return db['sequelize']['query'](_0x2dffac[_0x3795('0x7d')](),{'type':db[_0x3795('0x7e')][_0x3795('0x7f')]['SELECT']});}})[_0x3795('0x21')](function(_0x4c8acf){if(!_0x4c8acf[_0x3795('0x34')]){throw new db['Sequelize'][(_0x3795('0x86'))]('No\x20available\x20data',0xcc);}if(_0x4247dd['output']===_0x3795('0x8a')){return null;}var _0x1facac=_[_0x3795('0x3c')](_0x4247dd,{'name':_0x4247dd[_0x3795('0x8b')]||_0x4247dd['name']||_0x40d38f[_0x3795('0x26')],'basename':_0x591ad9,'savename':util[_0x3795('0x70')](_0x3795('0x8c'),_0x4247dd[_0x3795('0x26')]||_0x40d38f['name'],require(_0x3795('0x8d'))[_0x3795('0x8e')](0x4),_0x4247dd['output']||_0x3795('0x8f')),'reportId':_0x40d38f['id'],'reportType':_0x3795('0x90')});return db[_0x3795('0x91')]['create'](_0x1facac,{'raw':!![]});})[_0x3795('0x21')](function(_0x5f4166){if(_0x40d38f[_0x3795('0x6b')]===_0x3795('0x92')){_0x41bc49[_0x3795('0x39')](_0x40d38f['table']+_0x3795('0x93'),_0x4247dd[_0x3795('0x94')],_0x4247dd[_0x3795('0x95')]);}else{_0x41bc49[_0x3795('0x39')](_0x40d38f[_0x3795('0x6b')]+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x4247dd['startDate'],_0x4247dd[_0x3795('0x95')]);}if(_0x5f4166){logger[_0x3795('0x96')](_0x3795('0x97'),_0x41bc49[_0x3795('0x7d')]());require(_0x3795('0x98'))['fork'](path[_0x3795('0x51')](__dirname,_0x3795('0x99'),_0x5f4166[_0x3795('0x9a')]),[_0x5f4166['id'],_0x41bc49[_0x3795('0x7d')](),path[_0x3795('0x51')](__dirname,_0x3795('0x9b'),_0x5f4166[_0x3795('0x9c')]),_0x591ad9]);return _0x5f4166;}else{var _0x29d33e=squel['select']();_0x29d33e[_0x3795('0x6a')]('('+_0x41bc49[_0x3795('0x7d')]()+')',_0x3795('0x9d'));_0x29d33e['field'](_0x3795('0x9e'),_0x3795('0x19'));_0x41bc49[_0x3795('0x1b')](_0x4247dd[_0x3795('0x1b')]||_0xeaa5b);_0x41bc49[_0x3795('0x1a')](_0x4247dd['offset']||0x0);return db[_0x3795('0x7e')][_0x3795('0x2e')](_0x29d33e[_0x3795('0x7d')](),{'type':db[_0x3795('0x7e')][_0x3795('0x7f')][_0x3795('0x9f')]})['then'](function(_0x252742){if(!_0x252742[_0x3795('0x34')]){_0x5e35c8=0x0;}else{_0x5e35c8=_0x252742[0x0]['count']||0x0;}return db[_0x3795('0x7e')]['query'](_0x41bc49[_0x3795('0x7d')](),{'type':db['sequelize'][_0x3795('0x7f')][_0x3795('0x9f')]});})[_0x3795('0x21')](function(_0x362c7b){return{'rows':_0x362c7b||[],'count':_0x5e35c8};});}});}exports['run']=function(_0x247558,_0x48dc7c){return runReport(_0x247558[_0x3795('0x44')],_0x247558[_0x3795('0x2e')],_0x247558[_0x3795('0x3e')])['then'](respondWithResult(_0x48dc7c,null))[_0x3795('0x43')](handleError(_0x48dc7c,null));};exports[_0x3795('0xa0')]=runReport;exports[_0x3795('0x2e')]=function(_0x186965,_0x4a5548){var _0x32c48b=0xa;var _0x478537=[_0x3795('0x51'),_0x3795('0x52'),_0x3795('0x80'),_0x3795('0x81')];var _0x2526cb={'SUM':_0x3795('0x53'),'COUNT':_0x3795('0x54'),'COUNT DISTINCT':_0x3795('0x55'),'MAX':_0x3795('0x56'),'MIN':_0x3795('0x57'),'AVG':_0x3795('0x58'),'GROUP_CONCAT':_0x3795('0x59'),'GROUP_CONCAT ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT DESC':_0x3795('0x82')};var _0x373f4e={'SEC_TO_TIME':_0x3795('0x5b'),'DATE':_0x3795('0x5c'),'HOUR':'HOUR(%s)','ROUND':_0x3795('0x5e'),'UNIX_TIMESTAMP':_0x3795('0xa1')};var _0x3b9141=function(_0x2c09ac){return!_[_0x3795('0x5f')]([_0x3795('0x60'),_0x3795('0x61'),_0x3795('0x83'),_0x3795('0x62')],_0x2c09ac);};var _0x1fc76b=function(_0xe6bef8){if(!_0xe6bef8||!_0xe6bef8['rules'][_0x3795('0x34')]){return'';}for(var _0x1e8e79='(',_0x1fea09=0x0;_0x1fea09<_0xe6bef8[_0x3795('0x63')][_0x3795('0x34')];_0x1fea09+=0x1){_0x1fea09>0x0&&(_0x1e8e79+='\x20'+_0xe6bef8['operator']+'\x20');_0x1e8e79+=_0xe6bef8[_0x3795('0x63')][_0x1fea09]['group']?_0x1fc76b(_0xe6bef8[_0x3795('0x63')][_0x1fea09][_0x3795('0x64')]):_0xe6bef8[_0x3795('0x63')][_0x1fea09][_0x3795('0x74')]+'\x20'+_0xe6bef8[_0x3795('0x63')][_0x1fea09][_0x3795('0x65')]+(_0x3b9141(_0xe6bef8[_0x3795('0x63')][_0x1fea09][_0x3795('0x65')])?'\x20'+_0xe6bef8[_0x3795('0x63')][_0x1fea09][_0x3795('0xa2')]:'');}return _0x1e8e79+')';};var _0x2d9c13={'where':{'id':_0x186965[_0x3795('0x44')]['id']}},_0x538785,_0x3916cf,_0x3d60a5,_0x4f30a2,_0x4f9b2f;_0x2d9c13=_[_0x3795('0x3c')]({},_0x2d9c13,_0x186965[_0x3795('0x3e')]);return db[_0x3795('0x29')][_0x3795('0x45')](_0x2d9c13)[_0x3795('0x21')](function(_0x35e799){if(_0x35e799){_0x538785=_0x35e799;return _0x35e799['getFields']();}return null;})[_0x3795('0x21')](function(_0x1d737c){if(_0x1d737c){if(!_0x1d737c[_0x3795('0x34')]){throw new db[(_0x3795('0x85'))][(_0x3795('0x86'))]('Please\x20insert\x20at\x20least\x20one\x20field',0x193);}_0x3916cf=_0x1d737c;return db[_0x3795('0x68')][_0x3795('0x41')]({'raw':!![]});}return null;})[_0x3795('0x21')](function(_0x54b661){if(_0x54b661){_0x3d60a5=_['keyBy'](_0x54b661,'id');var _0x5d6802;var _0x3ba2e8=squel['select']();_0x3ba2e8[_0x3795('0x6a')](_0x538785['table']);for(var _0x452ea3=0x0;_0x452ea3<_0x3916cf[_0x3795('0x34')];_0x452ea3+=0x1){_0x5d6802=_0x3916cf[_0x452ea3][_0x3795('0x6c')]?_0x3d60a5[_0x3916cf[_0x452ea3][_0x3795('0x6c')]][_0x3795('0x6d')]:_0x3916cf[_0x452ea3][_0x3795('0x74')];_0x5d6802=_0x3916cf[_0x452ea3][_0x3795('0x6e')]?_['replace'](_0x2526cb[_0x3916cf[_0x452ea3][_0x3795('0x6e')]],'%s',_0x5d6802):_0x5d6802;_0x5d6802=_0x3916cf[_0x452ea3][_0x3795('0x70')]?_[_0x3795('0x6f')](_0x373f4e[_0x3916cf[_0x452ea3][_0x3795('0x70')]],'%s',_0x5d6802):_0x5d6802;if(_0x3916cf[_0x452ea3]['groupBy']){_0x3ba2e8[_0x3795('0x64')](_0x5d6802);}_0x3916cf[_0x452ea3][_0x3795('0x72')]&&_0x3ba2e8['order'](_0x5d6802,_0x3916cf[_0x452ea3][_0x3795('0x72')]===_0x3795('0x73')?![]:!![]);_0x3ba2e8[_0x3795('0x74')](_0x5d6802,_0x3916cf[_0x452ea3][_0x3795('0x87')]||_0x5d6802);}if(_0x538785[_0x3795('0x75')]){_0x538785['joins']=JSON[_0x3795('0x76')](_0x538785['joins']);for(var _0x375aab=0x0;_0x375aab<_0x538785[_0x3795('0x75')][_0x3795('0x34')];_0x375aab+=0x1){if(_0x538785[_0x3795('0x75')][_0x375aab][_0x3795('0x2c')]&&_[_0x3795('0x5f')](_0x478537,_0x538785[_0x3795('0x75')][_0x375aab]['type'])&&_0x538785['joins'][_0x375aab][_0x3795('0x77')]&&_0x538785['joins'][_0x375aab][_0x3795('0x78')]&&_0x538785['joins'][_0x375aab][_0x3795('0x79')]){_0x3ba2e8[_0x538785[_0x3795('0x75')][_0x375aab]['type']](_0x538785[_0x3795('0x75')][_0x375aab][_0x3795('0x78')],null,util[_0x3795('0x70')]('%s.%s\x20=\x20%s.%s',_0x538785[_0x3795('0x6b')],_0x538785['joins'][_0x375aab][_0x3795('0x77')],_0x538785['joins'][_0x375aab][_0x3795('0x78')],_0x538785[_0x3795('0x75')][_0x375aab][_0x3795('0x79')]));}}}if(_0x538785['conditions']){_0x538785[_0x3795('0x7b')]=JSON[_0x3795('0x76')](_0x538785[_0x3795('0x7b')]);_0x3ba2e8[_0x3795('0x39')](_0x1fc76b(_0x538785[_0x3795('0x7b')][_0x3795('0x64')]));}_0x4f9b2f=_0x3ba2e8[_0x3795('0x88')]();_0x3ba2e8[_0x3795('0x1b')](_0x32c48b);_0x3ba2e8[_0x3795('0x1a')](0x0);logger[_0x3795('0x89')](_0x3795('0x7c'),_0x3ba2e8[_0x3795('0x7d')]());return db[_0x3795('0x7e')]['query'](_0x3ba2e8[_0x3795('0x7d')](),{'type':db[_0x3795('0x7e')][_0x3795('0x7f')][_0x3795('0x9f')]});}})['then'](function(){return{'sql':_0x4f9b2f[_0x3795('0x7d')]()};})[_0x3795('0x21')](respondWithResult(_0x4a5548,null))['catch'](handleError(_0x4a5548,null));};
\ No newline at end of file
+var _0x989c=['metric','html-pdf','eml-format','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','get','DefaultReports','UserProfileResource','end','error','stack','name','index','AnalyticDefaultReport','type','key','model','map','query','keys','filters','attributes','fields','length','nolimit','order','sort','pick','filter','where','merge','VIRTUAL','options','include','findAll','rows','show','rawAttributes','intersection','includeAll','find','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','autoAssociation','catch','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','preview','left_join','right_join','cross_join','COUNT(%s)','COUNT(DISTINCT\x20%s)','MAX(%s)','AVG(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','SEC_TO_TIME(%s)','DATE(%s)','HOUR(%s)','ROUND(%s)','UNIX_TIMESTAMP(%s)','includes','IS\x20NULL','IS\x20NOT\x20NULL','IS\x20EMPTY','IS\x20NOT\x20EMPTY','rules','operator','group','field','condition','Sequelize','keyBy','select','from','MetricId','function','format','replace','groupBy','orderBy','alias','joins','parse','parentKey','foreignTable','foreignKey','%s.%s\x20=\x20%s.%s','conditions','clone','debug','sequelize','toString','QueryTypes','SELECT','join','SUM(%s)','GROUP_CONCAT(%s)','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','value','ValidationErrorItem','Please\x20insert\x20at\x20least\x20one\x20field','AnalyticMetric','DESC','table','Limited\x20Query:','No\x20available\x20data','output','web','fullPath','%s-%s.%s','randomstring','csv','default','AnalyticExtractedReport','startDate','.createdAt\x20BETWEEN\x20?\x20AND\x20?','endDate','info','Run\x20Query:','child_process','../../components/export/','../../files/reports','countTable','COUNT(*)','MIN(%s)','getFields'];(function(_0x1bb6aa,_0x40fe82){var _0x2ef28e=function(_0x32b4eb){while(--_0x32b4eb){_0x1bb6aa['push'](_0x1bb6aa['shift']());}};_0x2ef28e(++_0x40fe82);}(_0x989c,0x14d));var _0xc989=function(_0x2d53f8,_0x1a634b){_0x2d53f8=_0x2d53f8-0x0;var _0x529cdc=_0x989c[_0x2d53f8];return _0x529cdc;};'use strict';var pdf=require(_0xc989('0x0'));var emlformat=require(_0xc989('0x1'));var rimraf=require('rimraf');var zipdir=require(_0xc989('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xc989('0x3'));var moment=require(_0xc989('0x4'));var BPromise=require(_0xc989('0x5'));var Mustache=require(_0xc989('0x6'));var util=require(_0xc989('0x7'));var path=require(_0xc989('0x8'));var sox=require(_0xc989('0x9'));var csv=require(_0xc989('0xa'));var ejs=require(_0xc989('0xb'));var fs=require('fs');var _=require(_0xc989('0xc'));var squel=require(_0xc989('0xd'));var crypto=require('crypto');var jsforce=require(_0xc989('0xe'));var deskjs=require(_0xc989('0xf'));var toCsv=require(_0xc989('0xa'));var querystring=require(_0xc989('0x10'));var Papa=require(_0xc989('0x11'));var Redis=require(_0xc989('0x12'));var authService=require('../../components/auth/service');var qs=require(_0xc989('0x13'));var as=require(_0xc989('0x14'));var hardwareService=require(_0xc989('0x15'));var logger=require('../../config/logger')('api');var utils=require(_0xc989('0x16'));var config=require(_0xc989('0x17'));var db=require(_0xc989('0x18'))['db'];function respondWithStatusCode(_0x35a34a,_0x90e646){_0x90e646=_0x90e646||0xcc;return function(_0x4095fb){if(_0x4095fb){return _0x35a34a[_0xc989('0x19')](_0x90e646);}return _0x35a34a[_0xc989('0x1a')](_0x90e646)['end']();};}function respondWithResult(_0x11725f,_0x3a6859){_0x3a6859=_0x3a6859||0xc8;return function(_0x5379e3){if(_0x5379e3){return _0x11725f[_0xc989('0x1a')](_0x3a6859)[_0xc989('0x1b')](_0x5379e3);}};}function respondWithFilteredResult(_0x43094c,_0x65ba8b){return function(_0x45c2d3){if(_0x45c2d3){var _0x2b0f9f=_0x45c2d3[_0xc989('0x1c')],_0x450e0a=_0x65ba8b[_0xc989('0x1d')],_0x53c748=_0x65ba8b[_0xc989('0x1d')]+_0x65ba8b[_0xc989('0x1e')],_0x4a1cbe;if(_0x53c748>=_0x2b0f9f){_0x53c748=_0x2b0f9f;_0x4a1cbe=0xc8;}else{_0x4a1cbe=0xce;}_0x43094c[_0xc989('0x1a')](_0x4a1cbe);return _0x43094c[_0xc989('0x1f')](_0xc989('0x20'),_0x450e0a+'-'+_0x53c748+'/'+_0x2b0f9f)[_0xc989('0x1b')](_0x45c2d3);}return null;};}function patchUpdates(_0x396ca2){return function(_0x30baab){try{jsonpatch[_0xc989('0x21')](_0x30baab,_0x396ca2,!![]);}catch(_0x45abee){return BPromise[_0xc989('0x22')](_0x45abee);}return _0x30baab[_0xc989('0x23')]();};}function saveUpdates(_0x441606,_0x422eec){return function(_0x4bae09){if(_0x4bae09){return _0x4bae09[_0xc989('0x24')](_0x441606)[_0xc989('0x25')](function(_0x549213){return _0x549213;});}return null;};}function removeEntity(_0xe42e7f,_0xbeeafa){return function(_0x1251b9){if(_0x1251b9){return _0x1251b9[_0xc989('0x26')]()[_0xc989('0x25')](function(){var _0x555894=_0x1251b9[_0xc989('0x27')]({'plain':!![]});var _0x3657e3=_0xc989('0x28');return db[_0xc989('0x29')][_0xc989('0x26')]({'where':{'type':_0x3657e3,'resourceId':_0x555894['id']}})['then'](function(){return _0x1251b9;});})[_0xc989('0x25')](function(){_0xe42e7f['status'](0xcc)[_0xc989('0x2a')]();});}};}function handleEntityNotFound(_0x59eaa1,_0x359a2d){return function(_0x35e6f5){if(!_0x35e6f5){_0x59eaa1[_0xc989('0x19')](0x194);}return _0x35e6f5;};}function handleError(_0x587ef6,_0x44d310){_0x44d310=_0x44d310||0x1f4;return function(_0x1a4aff){logger[_0xc989('0x2b')](_0x1a4aff[_0xc989('0x2c')]);if(_0x1a4aff[_0xc989('0x2d')]){delete _0x1a4aff['name'];}_0x587ef6['status'](_0x44d310)['send'](_0x1a4aff);};}exports[_0xc989('0x2e')]=function(_0x5b06ca,_0x1476ec){var _0x559606={},_0x4e4442={},_0x36d6dd={'count':0x0,'rows':[]};var _0x3c2079=_['map'](db[_0xc989('0x2f')]['rawAttributes'],function(_0x2014aa){return{'name':_0x2014aa['fieldName'],'type':_0x2014aa[_0xc989('0x30')][_0xc989('0x31')]};});_0x4e4442[_0xc989('0x32')]=_[_0xc989('0x33')](_0x3c2079,_0xc989('0x2d'));_0x4e4442[_0xc989('0x34')]=_[_0xc989('0x35')](_0x5b06ca[_0xc989('0x34')]);_0x4e4442[_0xc989('0x36')]=_['intersection'](_0x4e4442[_0xc989('0x32')],_0x4e4442[_0xc989('0x34')]);_0x559606[_0xc989('0x37')]=_['intersection'](_0x4e4442[_0xc989('0x32')],qs[_0xc989('0x38')](_0x5b06ca[_0xc989('0x34')]['fields']));_0x559606[_0xc989('0x37')]=_0x559606[_0xc989('0x37')][_0xc989('0x39')]?_0x559606[_0xc989('0x37')]:_0x4e4442['model'];if(!_0x5b06ca[_0xc989('0x34')]['hasOwnProperty'](_0xc989('0x3a'))){_0x559606[_0xc989('0x1e')]=qs[_0xc989('0x1e')](_0x5b06ca[_0xc989('0x34')]['limit']);_0x559606[_0xc989('0x1d')]=qs[_0xc989('0x1d')](_0x5b06ca[_0xc989('0x34')][_0xc989('0x1d')]);}_0x559606[_0xc989('0x3b')]=qs[_0xc989('0x3c')](_0x5b06ca[_0xc989('0x34')][_0xc989('0x3c')]);_0x559606['where']=qs['filters'](_[_0xc989('0x3d')](_0x5b06ca[_0xc989('0x34')],_0x4e4442[_0xc989('0x36')]));if(_0x5b06ca[_0xc989('0x34')][_0xc989('0x3e')]){_0x559606[_0xc989('0x3f')]=_[_0xc989('0x40')](_0x559606[_0xc989('0x3f')],{'$or':_[_0xc989('0x33')](_0x3c2079,function(_0x5eaf3f){if(_0x5eaf3f[_0xc989('0x30')]!==_0xc989('0x41')){var _0x2db955={};_0x2db955[_0x5eaf3f[_0xc989('0x2d')]]={'$like':'%'+_0x5b06ca[_0xc989('0x34')][_0xc989('0x3e')]+'%'};return _0x2db955;}})});}_0x559606=_[_0xc989('0x40')]({},_0x559606,_0x5b06ca[_0xc989('0x42')]);var _0x4412e8={'where':_0x559606[_0xc989('0x3f')]};return db[_0xc989('0x2f')][_0xc989('0x1c')](_0x4412e8)[_0xc989('0x25')](function(_0x268d8e){_0x36d6dd[_0xc989('0x1c')]=_0x268d8e;if(_0x5b06ca[_0xc989('0x34')]['includeAll']){_0x559606[_0xc989('0x43')]=[{'all':!![]}];}return db[_0xc989('0x2f')][_0xc989('0x44')](_0x559606);})['then'](function(_0x2d6d0f){_0x36d6dd[_0xc989('0x45')]=_0x2d6d0f;return _0x36d6dd;})[_0xc989('0x25')](respondWithFilteredResult(_0x1476ec,_0x559606))['catch'](handleError(_0x1476ec,null));};exports[_0xc989('0x46')]=function(_0x3e2e0f,_0x1c6c35){var _0x37fedb={'raw':!![],'where':{'id':_0x3e2e0f['params']['id']}},_0x227cba={};_0x227cba[_0xc989('0x32')]=_[_0xc989('0x35')](db[_0xc989('0x2f')][_0xc989('0x47')]);_0x227cba[_0xc989('0x34')]=_['keys'](_0x3e2e0f[_0xc989('0x34')]);_0x227cba[_0xc989('0x36')]=_[_0xc989('0x48')](_0x227cba[_0xc989('0x32')],_0x227cba['query']);_0x37fedb[_0xc989('0x37')]=_[_0xc989('0x48')](_0x227cba[_0xc989('0x32')],qs[_0xc989('0x38')](_0x3e2e0f['query']['fields']));_0x37fedb[_0xc989('0x37')]=_0x37fedb['attributes'][_0xc989('0x39')]?_0x37fedb[_0xc989('0x37')]:_0x227cba[_0xc989('0x32')];if(_0x3e2e0f['query'][_0xc989('0x49')]){_0x37fedb['include']=[{'all':!![]}];}_0x37fedb=_[_0xc989('0x40')]({},_0x37fedb,_0x3e2e0f[_0xc989('0x42')]);return db[_0xc989('0x2f')][_0xc989('0x4a')](_0x37fedb)[_0xc989('0x25')](handleEntityNotFound(_0x1c6c35,null))[_0xc989('0x25')](respondWithResult(_0x1c6c35,null))['catch'](handleError(_0x1c6c35,null));};exports['create']=function(_0x3a967a,_0x15c3b5){return db[_0xc989('0x2f')][_0xc989('0x4b')](_0x3a967a[_0xc989('0x4c')],{})['then'](function(_0x397dcf){var _0xe4096e=_0x3a967a[_0xc989('0x4d')][_0xc989('0x27')]({'plain':!![]});if(!_0xe4096e)throw new Error(_0xc989('0x4e'));if(_0xe4096e[_0xc989('0x4f')]==='user'){var _0x362661=_0x397dcf[_0xc989('0x27')]({'plain':!![]});var _0x4258a4='Reports';return db[_0xc989('0x50')][_0xc989('0x4a')]({'where':{'name':_0x4258a4,'userProfileId':_0xe4096e['userProfileId']},'raw':!![]})['then'](function(_0x2f9bb1){if(_0x2f9bb1&&_0x2f9bb1[_0xc989('0x51')]===0x0){return db[_0xc989('0x29')][_0xc989('0x4b')]({'name':_0x362661[_0xc989('0x2d')],'resourceId':_0x362661['id'],'type':_0xc989('0x28'),'sectionId':_0x2f9bb1['id']},{})[_0xc989('0x25')](function(){return _0x397dcf;});}else{return _0x397dcf;}})[_0xc989('0x52')](function(_0x2358df){logger['error'](_0xc989('0x53'),_0x2358df);throw _0x2358df;});}return _0x397dcf;})[_0xc989('0x25')](respondWithResult(_0x15c3b5,0xc9))[_0xc989('0x52')](handleError(_0x15c3b5,null));};exports['update']=function(_0x307392,_0x20f296){if(_0x307392[_0xc989('0x4c')]['id']){delete _0x307392['body']['id'];}return db[_0xc989('0x2f')][_0xc989('0x4a')]({'where':{'id':_0x307392[_0xc989('0x54')]['id']}})['then'](handleEntityNotFound(_0x20f296,null))['then'](saveUpdates(_0x307392['body'],null))[_0xc989('0x25')](respondWithResult(_0x20f296,null))[_0xc989('0x52')](handleError(_0x20f296,null));};exports[_0xc989('0x26')]=function(_0x5d655f,_0x4464bc){return db[_0xc989('0x2f')][_0xc989('0x4a')]({'where':{'id':_0x5d655f[_0xc989('0x54')]['id']}})[_0xc989('0x25')](handleEntityNotFound(_0x4464bc,null))['then'](removeEntity(_0x4464bc,null))[_0xc989('0x52')](handleError(_0x4464bc,null));};exports[_0xc989('0x55')]=function(_0x13aeb6,_0x14adfd){var _0x410eee=0xa;var _0x5f3dd7=['join',_0xc989('0x56'),_0xc989('0x57'),_0xc989('0x58')];var _0x53a29c={'SUM':'SUM(%s)','COUNT':_0xc989('0x59'),'COUNT DISTINCT':_0xc989('0x5a'),'MAX':_0xc989('0x5b'),'MIN':'MIN(%s)','AVG':_0xc989('0x5c'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT ASC':_0xc989('0x5d'),'GROUP_CONCAT DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'};var _0x4001ca={'SEC_TO_TIME':_0xc989('0x5e'),'DATE':_0xc989('0x5f'),'HOUR':_0xc989('0x60'),'ROUND':_0xc989('0x61'),'UNIX_TIMESTAMP':_0xc989('0x62')};var _0x5b0f63=function(_0x183cca){return!_[_0xc989('0x63')]([_0xc989('0x64'),_0xc989('0x65'),_0xc989('0x66'),_0xc989('0x67')],_0x183cca);};var _0x5d59b4=function(_0x5b35de){if(!_0x5b35de||!_0x5b35de[_0xc989('0x68')][_0xc989('0x39')]){return'';}for(var _0xff9b8a='(',_0x3d11f8=0x0;_0x3d11f8<_0x5b35de[_0xc989('0x68')][_0xc989('0x39')];_0x3d11f8+=0x1){_0x3d11f8>0x0&&(_0xff9b8a+='\x20'+_0x5b35de[_0xc989('0x69')]+'\x20');_0xff9b8a+=_0x5b35de[_0xc989('0x68')][_0x3d11f8][_0xc989('0x6a')]?_0x5d59b4(_0x5b35de[_0xc989('0x68')][_0x3d11f8][_0xc989('0x6a')]):_0x5b35de[_0xc989('0x68')][_0x3d11f8][_0xc989('0x6b')]+'\x20'+_0x5b35de['rules'][_0x3d11f8]['condition']+(_0x5b0f63(_0x5b35de[_0xc989('0x68')][_0x3d11f8][_0xc989('0x6c')])?'\x20'+_0x5b35de[_0xc989('0x68')][_0x3d11f8]['value']:'');}return _0xff9b8a+')';};var _0x356700={'where':{'id':_0x13aeb6['params']['id']}},_0x51b38b,_0x425d1b,_0x591bc8,_0x5d2af7,_0x3679fd;_0x356700=_[_0xc989('0x40')]({},_0x356700,_0x13aeb6[_0xc989('0x42')]);return db[_0xc989('0x2f')]['find'](_0x356700)[_0xc989('0x25')](function(_0x4738d9){if(_0x4738d9){_0x51b38b=_0x4738d9;return _0x4738d9['getFields']();}return null;})[_0xc989('0x25')](function(_0x383793){if(_0x383793){if(!_0x383793[_0xc989('0x39')]){throw new db[(_0xc989('0x6d'))]['ValidationErrorItem']('Please\x20insert\x20at\x20least\x20one\x20field',0x193);}_0x425d1b=_0x383793;return db['AnalyticMetric'][_0xc989('0x44')]({'raw':!![]});}return null;})['then'](function(_0x20034e){if(_0x20034e){_0x591bc8=_[_0xc989('0x6e')](_0x20034e,'id');var _0xcfee13;var _0x36bf8f=squel[_0xc989('0x6f')]();_0x36bf8f[_0xc989('0x70')](_0x51b38b['table']);for(var _0x97e735=0x0;_0x97e735<_0x425d1b[_0xc989('0x39')];_0x97e735+=0x1){_0xcfee13=_0x425d1b[_0x97e735]['MetricId']?_0x591bc8[_0x425d1b[_0x97e735][_0xc989('0x71')]]['metric']:_0x425d1b[_0x97e735]['field'];_0xcfee13=_0x425d1b[_0x97e735]['function']?_['replace'](_0x53a29c[_0x425d1b[_0x97e735][_0xc989('0x72')]],'%s',_0xcfee13):_0xcfee13;_0xcfee13=_0x425d1b[_0x97e735][_0xc989('0x73')]?_[_0xc989('0x74')](_0x4001ca[_0x425d1b[_0x97e735][_0xc989('0x73')]],'%s',_0xcfee13):_0xcfee13;if(_0x425d1b[_0x97e735][_0xc989('0x75')]){_0x36bf8f[_0xc989('0x6a')](_0xcfee13);}_0x425d1b[_0x97e735][_0xc989('0x76')]&&_0x36bf8f[_0xc989('0x3b')](_0xcfee13,_0x425d1b[_0x97e735][_0xc989('0x76')]==='DESC'?![]:!![]);_0x36bf8f[_0xc989('0x6b')](_0xcfee13,_0x425d1b[_0x97e735][_0xc989('0x77')]||_0xcfee13);}if(_0x51b38b[_0xc989('0x78')]){_0x51b38b[_0xc989('0x78')]=JSON[_0xc989('0x79')](_0x51b38b[_0xc989('0x78')]);for(var _0x5d4bb9=0x0;_0x5d4bb9<_0x51b38b['joins'][_0xc989('0x39')];_0x5d4bb9+=0x1){if(_0x51b38b['joins'][_0x5d4bb9]['type']&&_['includes'](_0x5f3dd7,_0x51b38b['joins'][_0x5d4bb9][_0xc989('0x30')])&&_0x51b38b[_0xc989('0x78')][_0x5d4bb9][_0xc989('0x7a')]&&_0x51b38b[_0xc989('0x78')][_0x5d4bb9][_0xc989('0x7b')]&&_0x51b38b[_0xc989('0x78')][_0x5d4bb9][_0xc989('0x7c')]){_0x36bf8f[_0x51b38b[_0xc989('0x78')][_0x5d4bb9]['type']](_0x51b38b['joins'][_0x5d4bb9][_0xc989('0x7b')],null,util[_0xc989('0x73')](_0xc989('0x7d'),_0x51b38b['table'],_0x51b38b[_0xc989('0x78')][_0x5d4bb9]['parentKey'],_0x51b38b['joins'][_0x5d4bb9][_0xc989('0x7b')],_0x51b38b['joins'][_0x5d4bb9][_0xc989('0x7c')]));}}}if(_0x51b38b['conditions']){_0x51b38b[_0xc989('0x7e')]=JSON[_0xc989('0x79')](_0x51b38b[_0xc989('0x7e')]);_0x36bf8f[_0xc989('0x3f')](_0x5d59b4(_0x51b38b[_0xc989('0x7e')][_0xc989('0x6a')]));}_0x3679fd=_0x36bf8f[_0xc989('0x7f')]();_0x36bf8f['limit'](_0x410eee);_0x36bf8f[_0xc989('0x1d')](0x0);logger[_0xc989('0x80')]('Limited\x20Query:',_0x36bf8f['toString']());return db[_0xc989('0x81')][_0xc989('0x34')](_0x36bf8f[_0xc989('0x82')](),{'type':db['sequelize'][_0xc989('0x83')][_0xc989('0x84')]});}})['then'](respondWithResult(_0x14adfd,null))['catch'](handleError(_0x14adfd,null));};function runReport(_0x278539,_0x5e2505,_0x2b07ae){var _0x3e5254=_0x5e2505[_0xc989('0x2d')];var _0x561c49=0xa;var _0x4e9062=[_0xc989('0x85'),_0xc989('0x56'),'right_join',_0xc989('0x58')];var _0x3955a5={'SUM':_0xc989('0x86'),'COUNT':_0xc989('0x59'),'COUNT DISTINCT':_0xc989('0x5a'),'MAX':_0xc989('0x5b'),'MIN':'MIN(%s)','AVG':_0xc989('0x5c'),'GROUP_CONCAT':_0xc989('0x87'),'GROUP_CONCAT ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT DESC':_0xc989('0x88')};var _0x5b101c={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0xc989('0x5f'),'HOUR':_0xc989('0x60'),'ROUND':_0xc989('0x61'),'UNIX_TIMESTAMP':_0xc989('0x62')};var _0x360f38=function(_0x410577){return!_[_0xc989('0x63')](['IS\x20NULL',_0xc989('0x65'),_0xc989('0x66'),_0xc989('0x67')],_0x410577);};var _0x3c6d5a=function(_0x521ea8){if(!_0x521ea8||!_0x521ea8[_0xc989('0x68')][_0xc989('0x39')]){return'';}for(var _0x347685='(',_0x1f99c2=0x0;_0x1f99c2<_0x521ea8[_0xc989('0x68')][_0xc989('0x39')];_0x1f99c2+=0x1){_0x1f99c2>0x0&&(_0x347685+='\x20'+_0x521ea8['operator']+'\x20');_0x347685+=_0x521ea8[_0xc989('0x68')][_0x1f99c2][_0xc989('0x6a')]?_0x3c6d5a(_0x521ea8[_0xc989('0x68')][_0x1f99c2][_0xc989('0x6a')]):_0x521ea8[_0xc989('0x68')][_0x1f99c2][_0xc989('0x6b')]+'\x20'+_0x521ea8[_0xc989('0x68')][_0x1f99c2]['condition']+(_0x360f38(_0x521ea8['rules'][_0x1f99c2][_0xc989('0x6c')])?'\x20'+_0x521ea8['rules'][_0x1f99c2][_0xc989('0x89')]:'');}return _0x347685+')';};var _0x4e64da={'where':{'id':_0x278539['id']}},_0xdf452a,_0xedd7d4,_0x25d959,_0x309b44,_0x165a04;_0x4e64da=_[_0xc989('0x40')]({},_0x4e64da,_0x2b07ae);return db[_0xc989('0x2f')]['find'](_0x4e64da)['then'](function(_0xa8cbf9){if(_0xa8cbf9){_0xdf452a=_0xa8cbf9;return _0xa8cbf9['getFields']();}return null;})['then'](function(_0x2ee229){if(_0x2ee229){if(!_0x2ee229[_0xc989('0x39')]){throw new db[(_0xc989('0x6d'))][(_0xc989('0x8a'))](_0xc989('0x8b'),0x193);}_0xedd7d4=_0x2ee229;return db[_0xc989('0x8c')][_0xc989('0x44')]({'raw':!![]});}return null;})[_0xc989('0x25')](function(_0x7a2da6){if(_0x7a2da6){_0x25d959=_[_0xc989('0x6e')](_0x7a2da6,'id');var _0x21d147;var _0x29280c=squel[_0xc989('0x6f')]();_0x29280c[_0xc989('0x70')](_0xdf452a['table']);for(var _0x538317=0x0;_0x538317<_0xedd7d4['length'];_0x538317+=0x1){_0x21d147=_0xedd7d4[_0x538317]['MetricId']?_0x25d959[_0xedd7d4[_0x538317]['MetricId']]['metric']:_0xedd7d4[_0x538317][_0xc989('0x6b')];_0x21d147=_0xedd7d4[_0x538317]['function']?_['replace'](_0x3955a5[_0xedd7d4[_0x538317]['function']],'%s',_0x21d147):_0x21d147;_0x21d147=_0xedd7d4[_0x538317][_0xc989('0x73')]?_[_0xc989('0x74')](_0x5b101c[_0xedd7d4[_0x538317][_0xc989('0x73')]],'%s',_0x21d147):_0x21d147;if(_0xedd7d4[_0x538317]['groupBy']){_0x29280c[_0xc989('0x6a')](_0x21d147);}_0xedd7d4[_0x538317][_0xc989('0x76')]&&_0x29280c[_0xc989('0x3b')](_0x21d147,_0xedd7d4[_0x538317][_0xc989('0x76')]===_0xc989('0x8d')?![]:!![]);_0x29280c['field'](_0x21d147,_0xedd7d4[_0x538317]['alias']||_0x21d147);}if(_0xdf452a[_0xc989('0x78')]){_0xdf452a[_0xc989('0x78')]=JSON[_0xc989('0x79')](_0xdf452a['joins']);for(var _0x43f07e=0x0;_0x43f07e<_0xdf452a[_0xc989('0x78')][_0xc989('0x39')];_0x43f07e+=0x1){if(_0xdf452a[_0xc989('0x78')][_0x43f07e]['type']&&_[_0xc989('0x63')](_0x4e9062,_0xdf452a['joins'][_0x43f07e][_0xc989('0x30')])&&_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7a')]&&_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7b')]&&_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7c')]){_0x29280c[_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x30')]](_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7b')],null,util[_0xc989('0x73')](_0xc989('0x7d'),_0xdf452a[_0xc989('0x8e')],_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7a')],_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7b')],_0xdf452a[_0xc989('0x78')][_0x43f07e][_0xc989('0x7c')]));}}}if(_0xdf452a[_0xc989('0x7e')]){_0xdf452a[_0xc989('0x7e')]=JSON[_0xc989('0x79')](_0xdf452a[_0xc989('0x7e')]);_0x29280c['where'](_0x3c6d5a(_0xdf452a[_0xc989('0x7e')]['group']));}_0x165a04=_0x29280c['clone']();_0x29280c[_0xc989('0x1e')](_0x561c49);_0x29280c[_0xc989('0x1d')](0x0);logger[_0xc989('0x80')](_0xc989('0x8f'),_0x29280c[_0xc989('0x82')]());return db[_0xc989('0x81')][_0xc989('0x34')](_0x29280c['toString'](),{'type':db['sequelize'][_0xc989('0x83')][_0xc989('0x84')]});}})[_0xc989('0x25')](function(_0x56be65){if(!_0x56be65['length']){throw new db['Sequelize']['ValidationErrorItem'](_0xc989('0x90'),0xcc);}if(_0x5e2505[_0xc989('0x91')]===_0xc989('0x92')){return null;}var _0x2aa37f=_[_0xc989('0x40')](_0x5e2505,{'name':_0x5e2505[_0xc989('0x93')]||_0x5e2505[_0xc989('0x2d')]||_0xdf452a[_0xc989('0x2d')],'basename':_0x3e5254,'savename':util['format'](_0xc989('0x94'),_0x5e2505['name']||_0xdf452a[_0xc989('0x2d')],require(_0xc989('0x95'))['generate'](0x4),_0x5e2505['output']||_0xc989('0x96')),'reportId':_0xdf452a['id'],'reportType':_0xc989('0x97')});return db[_0xc989('0x98')]['create'](_0x2aa37f,{'raw':!![]});})['then'](function(_0x1c8184){if(_0xdf452a[_0xc989('0x8e')]==='cdr'){_0x165a04[_0xc989('0x3f')](_0xdf452a[_0xc989('0x8e')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x5e2505[_0xc989('0x99')],_0x5e2505['endDate']);}else{_0x165a04['where'](_0xdf452a[_0xc989('0x8e')]+_0xc989('0x9a'),_0x5e2505[_0xc989('0x99')],_0x5e2505[_0xc989('0x9b')]);}if(_0x1c8184){logger[_0xc989('0x9c')](_0xc989('0x9d'),_0x165a04[_0xc989('0x82')]());require(_0xc989('0x9e'))['fork'](path[_0xc989('0x85')](__dirname,_0xc989('0x9f'),_0x1c8184['output']),[_0x1c8184['id'],_0x165a04[_0xc989('0x82')](),path['join'](__dirname,_0xc989('0xa0'),_0x1c8184['savename']),_0x3e5254]);return _0x1c8184;}else{var _0x385a6d=squel[_0xc989('0x6f')]();_0x385a6d[_0xc989('0x70')]('('+_0x165a04[_0xc989('0x82')]()+')',_0xc989('0xa1'));_0x385a6d[_0xc989('0x6b')](_0xc989('0xa2'),_0xc989('0x1c'));_0x165a04['limit'](_0x5e2505[_0xc989('0x1e')]||_0x561c49);_0x165a04[_0xc989('0x1d')](_0x5e2505['offset']||0x0);return db[_0xc989('0x81')]['query'](_0x385a6d['toString'](),{'type':db[_0xc989('0x81')][_0xc989('0x83')][_0xc989('0x84')]})[_0xc989('0x25')](function(_0xc7009f){if(!_0xc7009f['length']){_0x309b44=0x0;}else{_0x309b44=_0xc7009f[0x0][_0xc989('0x1c')]||0x0;}return db[_0xc989('0x81')][_0xc989('0x34')](_0x165a04['toString'](),{'type':db['sequelize'][_0xc989('0x83')][_0xc989('0x84')]});})['then'](function(_0x5e5fe4){return{'rows':_0x5e5fe4||[],'count':_0x309b44};});}});}exports['run']=function(_0x3f13ec,_0x556c5c){return runReport(_0x3f13ec[_0xc989('0x54')],_0x3f13ec[_0xc989('0x34')],_0x3f13ec['options'])['then'](respondWithResult(_0x556c5c,null))[_0xc989('0x52')](handleError(_0x556c5c,null));};exports['runReport']=runReport;exports[_0xc989('0x34')]=function(_0x5bfc0d,_0x32e54d){var _0x4b2cc3=0xa;var _0xf4a930=[_0xc989('0x85'),_0xc989('0x56'),_0xc989('0x57'),_0xc989('0x58')];var _0x3ef17d={'SUM':_0xc989('0x86'),'COUNT':_0xc989('0x59'),'COUNT DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0xc989('0x5b'),'MIN':_0xc989('0xa3'),'AVG':_0xc989('0x5c'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT ASC':_0xc989('0x5d'),'GROUP_CONCAT DESC':_0xc989('0x88')};var _0x3e1f88={'SEC_TO_TIME':_0xc989('0x5e'),'DATE':'DATE(%s)','HOUR':_0xc989('0x60'),'ROUND':_0xc989('0x61'),'UNIX_TIMESTAMP':_0xc989('0x62')};var _0x1e0267=function(_0x3222b8){return!_[_0xc989('0x63')]([_0xc989('0x64'),'IS\x20NOT\x20NULL','IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x3222b8);};var _0xe9a8d2=function(_0x50ff3f){if(!_0x50ff3f||!_0x50ff3f[_0xc989('0x68')][_0xc989('0x39')]){return'';}for(var _0x7f0a0='(',_0x399010=0x0;_0x399010<_0x50ff3f[_0xc989('0x68')]['length'];_0x399010+=0x1){_0x399010>0x0&&(_0x7f0a0+='\x20'+_0x50ff3f['operator']+'\x20');_0x7f0a0+=_0x50ff3f[_0xc989('0x68')][_0x399010][_0xc989('0x6a')]?_0xe9a8d2(_0x50ff3f[_0xc989('0x68')][_0x399010][_0xc989('0x6a')]):_0x50ff3f[_0xc989('0x68')][_0x399010]['field']+'\x20'+_0x50ff3f['rules'][_0x399010][_0xc989('0x6c')]+(_0x1e0267(_0x50ff3f[_0xc989('0x68')][_0x399010][_0xc989('0x6c')])?'\x20'+_0x50ff3f[_0xc989('0x68')][_0x399010][_0xc989('0x89')]:'');}return _0x7f0a0+')';};var _0x46ebe2={'where':{'id':_0x5bfc0d[_0xc989('0x54')]['id']}},_0x45905f,_0x154537,_0x57db62,_0x17f6e0,_0x5dd11b;_0x46ebe2=_[_0xc989('0x40')]({},_0x46ebe2,_0x5bfc0d[_0xc989('0x42')]);return db[_0xc989('0x2f')]['find'](_0x46ebe2)[_0xc989('0x25')](function(_0x26fb00){if(_0x26fb00){_0x45905f=_0x26fb00;return _0x26fb00[_0xc989('0xa4')]();}return null;})['then'](function(_0x3c7266){if(_0x3c7266){if(!_0x3c7266[_0xc989('0x39')]){throw new db[(_0xc989('0x6d'))][(_0xc989('0x8a'))](_0xc989('0x8b'),0x193);}_0x154537=_0x3c7266;return db[_0xc989('0x8c')][_0xc989('0x44')]({'raw':!![]});}return null;})[_0xc989('0x25')](function(_0x4dda72){if(_0x4dda72){_0x57db62=_[_0xc989('0x6e')](_0x4dda72,'id');var _0xc70039;var _0x25ec15=squel[_0xc989('0x6f')]();_0x25ec15[_0xc989('0x70')](_0x45905f[_0xc989('0x8e')]);for(var _0x52455e=0x0;_0x52455e<_0x154537['length'];_0x52455e+=0x1){_0xc70039=_0x154537[_0x52455e][_0xc989('0x71')]?_0x57db62[_0x154537[_0x52455e][_0xc989('0x71')]][_0xc989('0xa5')]:_0x154537[_0x52455e]['field'];_0xc70039=_0x154537[_0x52455e]['function']?_[_0xc989('0x74')](_0x3ef17d[_0x154537[_0x52455e][_0xc989('0x72')]],'%s',_0xc70039):_0xc70039;_0xc70039=_0x154537[_0x52455e][_0xc989('0x73')]?_['replace'](_0x3e1f88[_0x154537[_0x52455e][_0xc989('0x73')]],'%s',_0xc70039):_0xc70039;if(_0x154537[_0x52455e]['groupBy']){_0x25ec15['group'](_0xc70039);}_0x154537[_0x52455e][_0xc989('0x76')]&&_0x25ec15[_0xc989('0x3b')](_0xc70039,_0x154537[_0x52455e][_0xc989('0x76')]===_0xc989('0x8d')?![]:!![]);_0x25ec15[_0xc989('0x6b')](_0xc70039,_0x154537[_0x52455e][_0xc989('0x77')]||_0xc70039);}if(_0x45905f[_0xc989('0x78')]){_0x45905f[_0xc989('0x78')]=JSON['parse'](_0x45905f[_0xc989('0x78')]);for(var _0x297a86=0x0;_0x297a86<_0x45905f[_0xc989('0x78')][_0xc989('0x39')];_0x297a86+=0x1){if(_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x30')]&&_['includes'](_0xf4a930,_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x30')])&&_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x7a')]&&_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x7b')]&&_0x45905f['joins'][_0x297a86]['foreignKey']){_0x25ec15[_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x30')]](_0x45905f[_0xc989('0x78')][_0x297a86]['foreignTable'],null,util['format'](_0xc989('0x7d'),_0x45905f[_0xc989('0x8e')],_0x45905f[_0xc989('0x78')][_0x297a86]['parentKey'],_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x7b')],_0x45905f[_0xc989('0x78')][_0x297a86][_0xc989('0x7c')]));}}}if(_0x45905f[_0xc989('0x7e')]){_0x45905f[_0xc989('0x7e')]=JSON[_0xc989('0x79')](_0x45905f[_0xc989('0x7e')]);_0x25ec15[_0xc989('0x3f')](_0xe9a8d2(_0x45905f[_0xc989('0x7e')][_0xc989('0x6a')]));}_0x5dd11b=_0x25ec15[_0xc989('0x7f')]();_0x25ec15[_0xc989('0x1e')](_0x4b2cc3);_0x25ec15[_0xc989('0x1d')](0x0);logger[_0xc989('0x80')](_0xc989('0x8f'),_0x25ec15[_0xc989('0x82')]());return db[_0xc989('0x81')][_0xc989('0x34')](_0x25ec15[_0xc989('0x82')](),{'type':db[_0xc989('0x81')]['QueryTypes'][_0xc989('0x84')]});}})[_0xc989('0x25')](function(){return{'sql':_0x5dd11b[_0xc989('0x82')]()};})['then'](respondWithResult(_0x32e54d,null))[_0xc989('0x52')](handleError(_0x32e54d,null));};
\ No newline at end of file
diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js
index 619b3d9..a3d4fe8 100644
--- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js
+++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x038d=['./analyticDefaultReport.attributes','define','AnalyticDefaultReport','../../config/logger','api','moment','bluebird','rimraf','../../config/environment'];(function(_0x482b06,_0x475ea9){var _0x404a0a=function(_0x20c047){while(--_0x20c047){_0x482b06['push'](_0x482b06['shift']());}};_0x404a0a(++_0x475ea9);}(_0x038d,0xae));var _0xd038=function(_0x2f446e,_0x87369d){_0x2f446e=_0x2f446e-0x0;var _0x1a1e5f=_0x038d[_0x2f446e];return _0x1a1e5f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xd038('0x0'))(_0xd038('0x1'));var moment=require(_0xd038('0x2'));var BPromise=require(_0xd038('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xd038('0x4'));var config=require(_0xd038('0x5'));var attributes=require(_0xd038('0x6'));module['exports']=function(_0x5b709c,_0x5d549e){return _0x5b709c[_0xd038('0x7')](_0xd038('0x8'),attributes,{'tableName':'analytics_default_reports','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x2152=['request-promise','./analyticDefaultReport.attributes','define','AnalyticDefaultReport','lodash','../../config/logger','api'];(function(_0x40822a,_0x582b60){var _0x357420=function(_0x6cee0b){while(--_0x6cee0b){_0x40822a['push'](_0x40822a['shift']());}};_0x357420(++_0x582b60);}(_0x2152,0x9e));var _0x2215=function(_0x22d60d,_0x4b2b29){_0x22d60d=_0x22d60d-0x0;var _0x3f26d5=_0x2152[_0x22d60d];return _0x3f26d5;};'use strict';var _=require(_0x2215('0x0'));var util=require('util');var logger=require(_0x2215('0x1'))(_0x2215('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x2215('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x2215('0x4'));module['exports']=function(_0x3570d4,_0x26c2d0){return _0x3570d4[_0x2215('0x5')](_0x2215('0x6'),attributes,{'tableName':'analytics_default_reports','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.rpc.js b/server/api/analyticDefaultReport/analyticDefaultReport.rpc.js
index ae88c54..aa8a232 100644
--- a/server/api/analyticDefaultReport/analyticDefaultReport.rpc.js
+++ b/server/api/analyticDefaultReport/analyticDefaultReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2bb0=['../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','AnalyticDefaultReport,\x20%s,\x20%s','request\x20sent','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','stringify','error','message','info','result','lodash','util','moment','randomstring'];(function(_0x27888d,_0x5ea940){var _0x5c4975=function(_0xc9d8e2){while(--_0xc9d8e2){_0x27888d['push'](_0x27888d['shift']());}};_0x5c4975(++_0x5ea940);}(_0x2bb0,0xf3));var _0x02bb=function(_0x5e1ab4,_0x424a14){_0x5e1ab4=_0x5e1ab4-0x0;var _0x1edc59=_0x2bb0[_0x5e1ab4];return _0x1edc59;};'use strict';var _=require(_0x02bb('0x0'));var util=require(_0x02bb('0x1'));var moment=require(_0x02bb('0x2'));var BPromise=require('bluebird');var rs=require(_0x02bb('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x02bb('0x4'));var logger=require('../../config/logger')(_0x02bb('0x5'));var config=require(_0x02bb('0x6'));var jayson=require(_0x02bb('0x7'));var client=jayson[_0x02bb('0x8')][_0x02bb('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x16bb7c,_0x440f9c,_0x47d7ae){return new BPromise(function(_0x6d064a,_0x15e425){return client[_0x02bb('0xa')](_0x16bb7c,_0x47d7ae)['then'](function(_0x3d28d5){logger['info'](_0x02bb('0xb'),_0x440f9c,_0x02bb('0xc'));logger['debug'](_0x02bb('0xd'),_0x440f9c,_0x02bb('0xc'),JSON[_0x02bb('0xe')](_0x3d28d5));if(_0x3d28d5['error']){if(_0x3d28d5[_0x02bb('0xf')]['code']===0x1f4){logger[_0x02bb('0xf')](_0x02bb('0xb'),_0x440f9c,_0x3d28d5[_0x02bb('0xf')]['message']);return _0x15e425(_0x3d28d5[_0x02bb('0xf')][_0x02bb('0x10')]);}logger[_0x02bb('0xf')]('AnalyticDefaultReport,\x20%s,\x20%s',_0x440f9c,_0x3d28d5[_0x02bb('0xf')]['message']);return _0x6d064a(_0x3d28d5[_0x02bb('0xf')][_0x02bb('0x10')]);}else{logger[_0x02bb('0x11')](_0x02bb('0xb'),_0x440f9c,_0x02bb('0xc'));_0x6d064a(_0x3d28d5[_0x02bb('0x12')]['message']);}})['catch'](function(_0x4711fb){logger[_0x02bb('0xf')](_0x02bb('0xb'),_0x440f9c,_0x4711fb);_0x15e425(_0x4711fb);});});}
\ No newline at end of file
+var _0xcbe1=['then','AnalyticDefaultReport,\x20%s,\x20%s','debug','AnalyticDefaultReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','result','util','../../mysqldb','../../config/utils','rpc','jayson/promise','client','request'];(function(_0x28c72a,_0x2bb385){var _0x3c14e3=function(_0x460792){while(--_0x460792){_0x28c72a['push'](_0x28c72a['shift']());}};_0x3c14e3(++_0x2bb385);}(_0xcbe1,0x1a2));var _0x1cbe=function(_0x5936c8,_0x5731e9){_0x5936c8=_0x5936c8-0x0;var _0x1dff51=_0xcbe1[_0x5936c8];return _0x1dff51;};'use strict';var _=require('lodash');var util=require(_0x1cbe('0x0'));var moment=require('moment');var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x1cbe('0x1'))['db'];var utils=require(_0x1cbe('0x2'));var logger=require('../../config/logger')(_0x1cbe('0x3'));var config=require('../../config/environment');var jayson=require(_0x1cbe('0x4'));var client=jayson[_0x1cbe('0x5')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1a02c7,_0x21342a,_0x3882e1){return new BPromise(function(_0x18e76b,_0x21b2a5){return client[_0x1cbe('0x6')](_0x1a02c7,_0x3882e1)[_0x1cbe('0x7')](function(_0x42232d){logger['info'](_0x1cbe('0x8'),_0x21342a,'request\x20sent');logger[_0x1cbe('0x9')](_0x1cbe('0xa'),_0x21342a,_0x1cbe('0xb'),JSON[_0x1cbe('0xc')](_0x42232d));if(_0x42232d['error']){if(_0x42232d[_0x1cbe('0xd')]['code']===0x1f4){logger[_0x1cbe('0xd')](_0x1cbe('0x8'),_0x21342a,_0x42232d['error'][_0x1cbe('0xe')]);return _0x21b2a5(_0x42232d[_0x1cbe('0xd')][_0x1cbe('0xe')]);}logger['error'](_0x1cbe('0x8'),_0x21342a,_0x42232d[_0x1cbe('0xd')][_0x1cbe('0xe')]);return _0x18e76b(_0x42232d[_0x1cbe('0xd')][_0x1cbe('0xe')]);}else{logger[_0x1cbe('0xf')](_0x1cbe('0x8'),_0x21342a,_0x1cbe('0xb'));_0x18e76b(_0x42232d[_0x1cbe('0x10')][_0x1cbe('0xe')]);}})['catch'](function(_0x228488){logger[_0x1cbe('0xd')](_0x1cbe('0x8'),_0x21342a,_0x228488);_0x21b2a5(_0x228488);});});}
\ No newline at end of file
diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js
index b23a9eb..0f0ebd8 100644
--- a/server/api/analyticDefaultReport/index.js
+++ b/server/api/analyticDefaultReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3a14=['get','isAuthenticated','index','/:id','show','/:id/preview','preview','/:id/run','run','/:id/query','post','create','put','update','delete','destroy','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','./analyticDefaultReport.controller'];(function(_0x5e99c7,_0x1abe64){var _0xd2e721=function(_0x41f2fc){while(--_0x41f2fc){_0x5e99c7['push'](_0x5e99c7['shift']());}};_0xd2e721(++_0x1abe64);}(_0x3a14,0xdf));var _0x43a1=function(_0x1c625a,_0x1b0d84){_0x1c625a=_0x1c625a-0x0;var _0x354170=_0x3a14[_0x1c625a];return _0x354170;};'use strict';var multer=require(_0x43a1('0x0'));var util=require(_0x43a1('0x1'));var path=require(_0x43a1('0x2'));var timeout=require(_0x43a1('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x43a1('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x43a1('0x5'));var controller=require(_0x43a1('0x6'));router[_0x43a1('0x7')]('/',auth[_0x43a1('0x8')](),controller[_0x43a1('0x9')]);router[_0x43a1('0x7')](_0x43a1('0xa'),auth[_0x43a1('0x8')](),controller[_0x43a1('0xb')]);router[_0x43a1('0x7')](_0x43a1('0xc'),auth[_0x43a1('0x8')](),controller[_0x43a1('0xd')]);router['get'](_0x43a1('0xe'),auth[_0x43a1('0x8')](),controller[_0x43a1('0xf')]);router['get'](_0x43a1('0x10'),auth['isAuthenticated'](),controller['query']);router[_0x43a1('0x11')]('/',auth[_0x43a1('0x8')](),controller[_0x43a1('0x12')]);router[_0x43a1('0x13')](_0x43a1('0xa'),auth[_0x43a1('0x8')](),controller[_0x43a1('0x14')]);router[_0x43a1('0x15')](_0x43a1('0xa'),auth[_0x43a1('0x8')](),controller[_0x43a1('0x16')]);module['exports']=router;
\ No newline at end of file
+var _0x5e16=['update','delete','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/preview','preview','/:id/run','run','query','post','create','put'];(function(_0x552434,_0x27faf4){var _0x4d4d56=function(_0x4cd35e){while(--_0x4cd35e){_0x552434['push'](_0x552434['shift']());}};_0x4d4d56(++_0x27faf4);}(_0x5e16,0x8d));var _0x65e1=function(_0x11f5ff,_0xa0ef18){_0x11f5ff=_0x11f5ff-0x0;var _0x46eefb=_0x5e16[_0x11f5ff];return _0x46eefb;};'use strict';var multer=require(_0x65e1('0x0'));var util=require(_0x65e1('0x1'));var path=require(_0x65e1('0x2'));var timeout=require(_0x65e1('0x3'));var express=require('express');var router=express[_0x65e1('0x4')]();var auth=require(_0x65e1('0x5'));var interaction=require(_0x65e1('0x6'));var config=require(_0x65e1('0x7'));var controller=require('./analyticDefaultReport.controller');router['get']('/',auth[_0x65e1('0x8')](),controller['index']);router[_0x65e1('0x9')](_0x65e1('0xa'),auth[_0x65e1('0x8')](),controller[_0x65e1('0xb')]);router[_0x65e1('0x9')](_0x65e1('0xc'),auth[_0x65e1('0x8')](),controller[_0x65e1('0xd')]);router[_0x65e1('0x9')](_0x65e1('0xe'),auth['isAuthenticated'](),controller[_0x65e1('0xf')]);router[_0x65e1('0x9')]('/:id/query',auth[_0x65e1('0x8')](),controller[_0x65e1('0x10')]);router[_0x65e1('0x11')]('/',auth[_0x65e1('0x8')](),controller[_0x65e1('0x12')]);router[_0x65e1('0x13')](_0x65e1('0xa'),auth[_0x65e1('0x8')](),controller[_0x65e1('0x14')]);router[_0x65e1('0x15')](_0x65e1('0xa'),auth['isAuthenticated'](),controller[_0x65e1('0x16')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js
index b428239..9f22f18 100644
--- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js
+++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0722=['pdf','xlsx','DATE','Loading','manual','INTEGER','sequelize','moment','exports','STRING','ENUM'];(function(_0x587f44,_0x1a9b10){var _0x531a29=function(_0x365c99){while(--_0x365c99){_0x587f44['push'](_0x587f44['shift']());}};_0x531a29(++_0x1a9b10);}(_0x0722,0x13a));var _0x2072=function(_0x1094c7,_0x35a488){_0x1094c7=_0x1094c7-0x0;var _0x391162=_0x0722[_0x1094c7];return _0x391162;};'use strict';var Sequelize=require(_0x2072('0x0'));var moment=require(_0x2072('0x1'));module[_0x2072('0x2')]={'name':{'type':Sequelize[_0x2072('0x3')],'allowNull':![]},'basename':{'type':Sequelize['STRING'],'allowNull':![]},'output':{'type':Sequelize[_0x2072('0x4')]('csv',_0x2072('0x5'),_0x2072('0x6')),'allowNull':![],'defaultValue':'csv'},'savename':{'type':Sequelize[_0x2072('0x3')],'allowNull':![]},'startDate':{'type':Sequelize[_0x2072('0x7')]},'endDate':{'type':Sequelize[_0x2072('0x7')]},'status':{'type':Sequelize[_0x2072('0x3')],'defaultValue':_0x2072('0x8')},'type':{'type':Sequelize[_0x2072('0x4')](_0x2072('0x9'),'scheduled'),'allowNull':![],'defaultValue':_0x2072('0x9')},'reportId':{'type':Sequelize[_0x2072('0xa')](0xb)['UNSIGNED']},'reportType':{'type':Sequelize[_0x2072('0x3')]}};
\ No newline at end of file
+var _0xcedd=['Loading','scheduled','manual','INTEGER','UNSIGNED','sequelize','exports','STRING','ENUM','csv','DATE'];(function(_0x2765e1,_0xb416f7){var _0x3f6fb1=function(_0x36f7ab){while(--_0x36f7ab){_0x2765e1['push'](_0x2765e1['shift']());}};_0x3f6fb1(++_0xb416f7);}(_0xcedd,0x17b));var _0xdced=function(_0x1d9fa4,_0x15b61d){_0x1d9fa4=_0x1d9fa4-0x0;var _0x26b93b=_0xcedd[_0x1d9fa4];return _0x26b93b;};'use strict';var Sequelize=require(_0xdced('0x0'));var moment=require('moment');module[_0xdced('0x1')]={'name':{'type':Sequelize[_0xdced('0x2')],'allowNull':![]},'basename':{'type':Sequelize[_0xdced('0x2')],'allowNull':![]},'output':{'type':Sequelize[_0xdced('0x3')](_0xdced('0x4'),'pdf','xlsx'),'allowNull':![],'defaultValue':_0xdced('0x4')},'savename':{'type':Sequelize[_0xdced('0x2')],'allowNull':![]},'startDate':{'type':Sequelize[_0xdced('0x5')]},'endDate':{'type':Sequelize[_0xdced('0x5')]},'status':{'type':Sequelize[_0xdced('0x2')],'defaultValue':_0xdced('0x6')},'type':{'type':Sequelize[_0xdced('0x3')]('manual',_0xdced('0x7')),'allowNull':![],'defaultValue':_0xdced('0x8')},'reportId':{'type':Sequelize[_0xdced('0x9')](0xb)[_0xdced('0xa')]},'reportType':{'type':Sequelize[_0xdced('0x2')]}};
\ No newline at end of file
diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js
index bdb0859..13f60ae 100644
--- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js
+++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc657=['length','nolimit','order','sort','filters','pick','filter','where','merge','options','includeAll','findAll','catch','show','params','include','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','ExtractedReports','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','find','download','basename','savename','output','existsSync','join','root','server/files/reports','Sequelize','ValidationError','format','%s.%s','html-pdf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','api','../../mysqldb','sendStatus','status','count','offset','limit','set','Content-Range','json','apply','reject','save','update','destroy','then','get','UserProfileResource','end','error','stack','name','send','map','AnalyticExtractedReport','rawAttributes','fieldName','key','model','keys','query','intersection','fields','attributes'];(function(_0x9a7dd3,_0x315993){var _0x3101d=function(_0x59ba1f){while(--_0x59ba1f){_0x9a7dd3['push'](_0x9a7dd3['shift']());}};_0x3101d(++_0x315993);}(_0xc657,0xda));var _0x7c65=function(_0x129681,_0x2f91b4){_0x129681=_0x129681-0x0;var _0x2c1b12=_0xc657[_0x129681];return _0x2c1b12;};'use strict';var pdf=require(_0x7c65('0x0'));var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x7c65('0x1'));var jsonpatch=require(_0x7c65('0x2'));var rp=require(_0x7c65('0x3'));var moment=require(_0x7c65('0x4'));var BPromise=require(_0x7c65('0x5'));var Mustache=require(_0x7c65('0x6'));var util=require('util');var path=require(_0x7c65('0x7'));var sox=require(_0x7c65('0x8'));var csv=require(_0x7c65('0x9'));var ejs=require(_0x7c65('0xa'));var fs=require('fs');var _=require('lodash');var squel=require(_0x7c65('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x7c65('0xc'));var toCsv=require(_0x7c65('0x9'));var querystring=require(_0x7c65('0xd'));var Papa=require(_0x7c65('0xe'));var Redis=require(_0x7c65('0xf'));var authService=require(_0x7c65('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0x7c65('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x7c65('0x12'));var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0x7c65('0x13'))['db'];function respondWithStatusCode(_0x143f77,_0x715be4){_0x715be4=_0x715be4||0xcc;return function(_0x9fad46){if(_0x9fad46){return _0x143f77[_0x7c65('0x14')](_0x715be4);}return _0x143f77[_0x7c65('0x15')](_0x715be4)['end']();};}function respondWithResult(_0x3ed69b,_0x44323d){_0x44323d=_0x44323d||0xc8;return function(_0x176e8a){if(_0x176e8a){return _0x3ed69b[_0x7c65('0x15')](_0x44323d)['json'](_0x176e8a);}};}function respondWithFilteredResult(_0x26c6ba,_0xf90f5b){return function(_0x501ee2){if(_0x501ee2){var _0x4194a4=_0x501ee2[_0x7c65('0x16')],_0xff887a=_0xf90f5b['offset'],_0x460110=_0xf90f5b[_0x7c65('0x17')]+_0xf90f5b[_0x7c65('0x18')],_0x3daad5;if(_0x460110>=_0x4194a4){_0x460110=_0x4194a4;_0x3daad5=0xc8;}else{_0x3daad5=0xce;}_0x26c6ba[_0x7c65('0x15')](_0x3daad5);return _0x26c6ba[_0x7c65('0x19')](_0x7c65('0x1a'),_0xff887a+'-'+_0x460110+'/'+_0x4194a4)[_0x7c65('0x1b')](_0x501ee2);}return null;};}function patchUpdates(_0x2cd04e){return function(_0xf35eed){try{jsonpatch[_0x7c65('0x1c')](_0xf35eed,_0x2cd04e,!![]);}catch(_0x214ab2){return BPromise[_0x7c65('0x1d')](_0x214ab2);}return _0xf35eed[_0x7c65('0x1e')]();};}function saveUpdates(_0x597e6e,_0x4f660e){return function(_0x384a0a){if(_0x384a0a){return _0x384a0a[_0x7c65('0x1f')](_0x597e6e)['then'](function(_0x586be9){return _0x586be9;});}return null;};}function removeEntity(_0xf8ea95,_0x3166b0){return function(_0x292340){if(_0x292340){return _0x292340[_0x7c65('0x20')]()[_0x7c65('0x21')](function(){var _0x272cfc=_0x292340[_0x7c65('0x22')]({'plain':!![]});var _0xb41dd9='ExtractedReports';return db[_0x7c65('0x23')][_0x7c65('0x20')]({'where':{'type':_0xb41dd9,'resourceId':_0x272cfc['id']}})['then'](function(){return _0x292340;});})[_0x7c65('0x21')](function(){_0xf8ea95[_0x7c65('0x15')](0xcc)[_0x7c65('0x24')]();});}};}function handleEntityNotFound(_0x4aa9ce,_0x5584fc){return function(_0x2d9715){if(!_0x2d9715){_0x4aa9ce[_0x7c65('0x14')](0x194);}return _0x2d9715;};}function handleError(_0x1844b0,_0xa9988c){_0xa9988c=_0xa9988c||0x1f4;return function(_0x12b673){logger[_0x7c65('0x25')](_0x12b673[_0x7c65('0x26')]);if(_0x12b673[_0x7c65('0x27')]){delete _0x12b673[_0x7c65('0x27')];}_0x1844b0[_0x7c65('0x15')](_0xa9988c)[_0x7c65('0x28')](_0x12b673);};}exports['index']=function(_0x847880,_0x47172c){var _0x51f782={},_0x44666b={},_0x3a1616={'count':0x0,'rows':[]};var _0x1033f5=_[_0x7c65('0x29')](db[_0x7c65('0x2a')][_0x7c65('0x2b')],function(_0x431397){return{'name':_0x431397[_0x7c65('0x2c')],'type':_0x431397['type'][_0x7c65('0x2d')]};});_0x44666b[_0x7c65('0x2e')]=_[_0x7c65('0x29')](_0x1033f5,_0x7c65('0x27'));_0x44666b['query']=_[_0x7c65('0x2f')](_0x847880[_0x7c65('0x30')]);_0x44666b['filters']=_[_0x7c65('0x31')](_0x44666b[_0x7c65('0x2e')],_0x44666b[_0x7c65('0x30')]);_0x51f782['attributes']=_[_0x7c65('0x31')](_0x44666b['model'],qs['fields'](_0x847880['query'][_0x7c65('0x32')]));_0x51f782[_0x7c65('0x33')]=_0x51f782['attributes'][_0x7c65('0x34')]?_0x51f782[_0x7c65('0x33')]:_0x44666b[_0x7c65('0x2e')];if(!_0x847880[_0x7c65('0x30')]['hasOwnProperty'](_0x7c65('0x35'))){_0x51f782[_0x7c65('0x18')]=qs[_0x7c65('0x18')](_0x847880[_0x7c65('0x30')][_0x7c65('0x18')]);_0x51f782[_0x7c65('0x17')]=qs[_0x7c65('0x17')](_0x847880[_0x7c65('0x30')]['offset']);}_0x51f782[_0x7c65('0x36')]=qs[_0x7c65('0x37')](_0x847880['query'][_0x7c65('0x37')]);_0x51f782['where']=qs[_0x7c65('0x38')](_[_0x7c65('0x39')](_0x847880[_0x7c65('0x30')],_0x44666b['filters']));if(_0x847880['query'][_0x7c65('0x3a')]){_0x51f782[_0x7c65('0x3b')]=_[_0x7c65('0x3c')](_0x51f782['where'],{'$or':_[_0x7c65('0x29')](_0x1033f5,function(_0x5f6f56){if(_0x5f6f56['type']!=='VIRTUAL'){var _0x3904ed={};_0x3904ed[_0x5f6f56[_0x7c65('0x27')]]={'$like':'%'+_0x847880['query'][_0x7c65('0x3a')]+'%'};return _0x3904ed;}})});}_0x51f782=_[_0x7c65('0x3c')]({},_0x51f782,_0x847880[_0x7c65('0x3d')]);var _0x47e025={'where':_0x51f782['where']};return db[_0x7c65('0x2a')][_0x7c65('0x16')](_0x47e025)[_0x7c65('0x21')](function(_0x118acb){_0x3a1616[_0x7c65('0x16')]=_0x118acb;if(_0x847880[_0x7c65('0x30')][_0x7c65('0x3e')]){_0x51f782['include']=[{'all':!![]}];}return db[_0x7c65('0x2a')][_0x7c65('0x3f')](_0x51f782);})[_0x7c65('0x21')](function(_0x370377){_0x3a1616['rows']=_0x370377;return _0x3a1616;})['then'](respondWithFilteredResult(_0x47172c,_0x51f782))[_0x7c65('0x40')](handleError(_0x47172c,null));};exports[_0x7c65('0x41')]=function(_0x58ed5d,_0x1e09f9){var _0x2867b7={'raw':!![],'where':{'id':_0x58ed5d[_0x7c65('0x42')]['id']}},_0xd7a2a5={};_0xd7a2a5['model']=_[_0x7c65('0x2f')](db[_0x7c65('0x2a')][_0x7c65('0x2b')]);_0xd7a2a5['query']=_[_0x7c65('0x2f')](_0x58ed5d['query']);_0xd7a2a5[_0x7c65('0x38')]=_[_0x7c65('0x31')](_0xd7a2a5[_0x7c65('0x2e')],_0xd7a2a5['query']);_0x2867b7[_0x7c65('0x33')]=_[_0x7c65('0x31')](_0xd7a2a5[_0x7c65('0x2e')],qs[_0x7c65('0x32')](_0x58ed5d[_0x7c65('0x30')]['fields']));_0x2867b7[_0x7c65('0x33')]=_0x2867b7[_0x7c65('0x33')][_0x7c65('0x34')]?_0x2867b7['attributes']:_0xd7a2a5[_0x7c65('0x2e')];if(_0x58ed5d[_0x7c65('0x30')]['includeAll']){_0x2867b7[_0x7c65('0x43')]=[{'all':!![]}];}_0x2867b7=_[_0x7c65('0x3c')]({},_0x2867b7,_0x58ed5d[_0x7c65('0x3d')]);return db['AnalyticExtractedReport']['find'](_0x2867b7)[_0x7c65('0x21')](handleEntityNotFound(_0x1e09f9,null))[_0x7c65('0x21')](respondWithResult(_0x1e09f9,null))[_0x7c65('0x40')](handleError(_0x1e09f9,null));};exports[_0x7c65('0x44')]=function(_0xcc092b,_0x5dfff7){return db['AnalyticExtractedReport']['create'](_0xcc092b[_0x7c65('0x45')],{})[_0x7c65('0x21')](function(_0x22e75b){var _0x5d9e15=_0xcc092b[_0x7c65('0x46')][_0x7c65('0x22')]({'plain':!![]});if(!_0x5d9e15)throw new Error(_0x7c65('0x47'));if(_0x5d9e15[_0x7c65('0x48')]===_0x7c65('0x46')){var _0x24aeba=_0x22e75b['get']({'plain':!![]});var _0x3affc8=_0x7c65('0x49');return db['UserProfileSection']['find']({'where':{'name':_0x3affc8,'userProfileId':_0x5d9e15[_0x7c65('0x4a')]},'raw':!![]})['then'](function(_0x5ba2bf){if(_0x5ba2bf&&_0x5ba2bf[_0x7c65('0x4b')]===0x0){return db[_0x7c65('0x23')][_0x7c65('0x44')]({'name':_0x24aeba['name'],'resourceId':_0x24aeba['id'],'type':_0x5ba2bf[_0x7c65('0x27')],'sectionId':_0x5ba2bf['id']},{})[_0x7c65('0x21')](function(){return _0x22e75b;});}else{return _0x22e75b;}})[_0x7c65('0x40')](function(_0xed0630){logger['error'](_0x7c65('0x4c'),_0xed0630);throw _0xed0630;});}return _0x22e75b;})[_0x7c65('0x21')](respondWithResult(_0x5dfff7,0xc9))[_0x7c65('0x40')](handleError(_0x5dfff7,null));};exports[_0x7c65('0x1f')]=function(_0x57cdfb,_0xef9670){if(_0x57cdfb['body']['id']){delete _0x57cdfb[_0x7c65('0x45')]['id'];}return db[_0x7c65('0x2a')][_0x7c65('0x4d')]({'where':{'id':_0x57cdfb[_0x7c65('0x42')]['id']}})[_0x7c65('0x21')](handleEntityNotFound(_0xef9670,null))['then'](saveUpdates(_0x57cdfb[_0x7c65('0x45')],null))[_0x7c65('0x21')](respondWithResult(_0xef9670,null))[_0x7c65('0x40')](handleError(_0xef9670,null));};exports[_0x7c65('0x20')]=function(_0x39e0bb,_0x4b3e94){return db['AnalyticExtractedReport'][_0x7c65('0x4d')]({'where':{'id':_0x39e0bb[_0x7c65('0x42')]['id']}})[_0x7c65('0x21')](handleEntityNotFound(_0x4b3e94,null))[_0x7c65('0x21')](removeEntity(_0x4b3e94,null))[_0x7c65('0x40')](handleError(_0x4b3e94,null));};exports[_0x7c65('0x4e')]=function(_0x25a0fc,_0x12e8f6,_0x2a7894){return db[_0x7c65('0x2a')][_0x7c65('0x4d')]({'where':{'id':_0x25a0fc[_0x7c65('0x42')]['id']},'attributes':[_0x7c65('0x27'),_0x7c65('0x4f'),_0x7c65('0x50'),_0x7c65('0x51')],'raw':!![]})[_0x7c65('0x21')](handleEntityNotFound(_0x12e8f6,null))[_0x7c65('0x21')](function(_0x331a6d){if(_0x331a6d){if(!fs[_0x7c65('0x52')](path[_0x7c65('0x53')](config[_0x7c65('0x54')],_0x7c65('0x55'),_0x331a6d[_0x7c65('0x50')]))){throw new db[(_0x7c65('0x56'))][(_0x7c65('0x57'))]('Report\x20not\x20found\x20or\x20empty');}if(_0x25a0fc[_0x7c65('0x30')]['exists']){return _0x12e8f6['sendStatus'](0xc8);}return _0x12e8f6[_0x7c65('0x4e')](path[_0x7c65('0x53')](config[_0x7c65('0x54')],_0x7c65('0x55'),_0x331a6d['savename']),util[_0x7c65('0x58')](_0x7c65('0x59'),_0x331a6d[_0x7c65('0x4f')]||_0x331a6d[_0x7c65('0x27')],_0x331a6d[_0x7c65('0x51')]['toLowerCase']()));}})[_0x7c65('0x40')](handleError(_0x12e8f6,null));};
\ No newline at end of file
+var _0x2079=['apply','reject','save','update','then','destroy','ExtractedReports','error','stack','name','send','index','map','AnalyticExtractedReport','rawAttributes','type','key','query','keys','filters','intersection','model','attributes','length','hasOwnProperty','nolimit','sort','pick','filter','merge','where','VIRTUAL','options','includeAll','include','findAll','rows','params','catch','create','body','user','role','get','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','find','download','basename','savename','output','join','root','ValidationError','exists','format','%s.%s','toLowerCase','eml-format','zip-dir','request-promise','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set'];(function(_0x283474,_0x51afe2){var _0x5ba74b=function(_0x3978be){while(--_0x3978be){_0x283474['push'](_0x283474['shift']());}};_0x5ba74b(++_0x51afe2);}(_0x2079,0x148));var _0x9207=function(_0x4cddcb,_0x5d5f30){_0x4cddcb=_0x4cddcb-0x0;var _0x23b5d6=_0x2079[_0x4cddcb];return _0x23b5d6;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x9207('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x9207('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x9207('0x2'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x9207('0x3'));var util=require(_0x9207('0x4'));var path=require(_0x9207('0x5'));var sox=require(_0x9207('0x6'));var csv=require(_0x9207('0x7'));var ejs=require(_0x9207('0x8'));var fs=require('fs');var _=require(_0x9207('0x9'));var squel=require(_0x9207('0xa'));var crypto=require(_0x9207('0xb'));var jsforce=require('jsforce');var deskjs=require(_0x9207('0xc'));var toCsv=require(_0x9207('0x7'));var querystring=require(_0x9207('0xd'));var Papa=require(_0x9207('0xe'));var Redis=require('ioredis');var authService=require(_0x9207('0xf'));var qs=require(_0x9207('0x10'));var as=require(_0x9207('0x11'));var hardwareService=require(_0x9207('0x12'));var logger=require(_0x9207('0x13'))(_0x9207('0x14'));var utils=require(_0x9207('0x15'));var config=require(_0x9207('0x16'));var db=require(_0x9207('0x17'))['db'];function respondWithStatusCode(_0x4abba8,_0x2d8027){_0x2d8027=_0x2d8027||0xcc;return function(_0x28851f){if(_0x28851f){return _0x4abba8[_0x9207('0x18')](_0x2d8027);}return _0x4abba8[_0x9207('0x19')](_0x2d8027)[_0x9207('0x1a')]();};}function respondWithResult(_0x11219d,_0x52c3ec){_0x52c3ec=_0x52c3ec||0xc8;return function(_0x78c5cc){if(_0x78c5cc){return _0x11219d[_0x9207('0x19')](_0x52c3ec)[_0x9207('0x1b')](_0x78c5cc);}};}function respondWithFilteredResult(_0x4ee100,_0x56417c){return function(_0x1e9433){if(_0x1e9433){var _0x3ec903=_0x1e9433[_0x9207('0x1c')],_0x1a4843=_0x56417c[_0x9207('0x1d')],_0x1730b4=_0x56417c['offset']+_0x56417c[_0x9207('0x1e')],_0x586343;if(_0x1730b4>=_0x3ec903){_0x1730b4=_0x3ec903;_0x586343=0xc8;}else{_0x586343=0xce;}_0x4ee100[_0x9207('0x19')](_0x586343);return _0x4ee100[_0x9207('0x1f')]('Content-Range',_0x1a4843+'-'+_0x1730b4+'/'+_0x3ec903)['json'](_0x1e9433);}return null;};}function patchUpdates(_0x1ab874){return function(_0x55bc3d){try{jsonpatch[_0x9207('0x20')](_0x55bc3d,_0x1ab874,!![]);}catch(_0x1d206d){return BPromise[_0x9207('0x21')](_0x1d206d);}return _0x55bc3d[_0x9207('0x22')]();};}function saveUpdates(_0x37630f,_0x5b8a3d){return function(_0x31ad45){if(_0x31ad45){return _0x31ad45[_0x9207('0x23')](_0x37630f)[_0x9207('0x24')](function(_0x4e0a6e){return _0x4e0a6e;});}return null;};}function removeEntity(_0x4ea086,_0x109f55){return function(_0x4b2c52){if(_0x4b2c52){return _0x4b2c52[_0x9207('0x25')]()['then'](function(){var _0x1a5835=_0x4b2c52['get']({'plain':!![]});var _0x3d6f94=_0x9207('0x26');return db['UserProfileResource'][_0x9207('0x25')]({'where':{'type':_0x3d6f94,'resourceId':_0x1a5835['id']}})[_0x9207('0x24')](function(){return _0x4b2c52;});})[_0x9207('0x24')](function(){_0x4ea086[_0x9207('0x19')](0xcc)[_0x9207('0x1a')]();});}};}function handleEntityNotFound(_0x358091,_0x59626f){return function(_0x9edfcc){if(!_0x9edfcc){_0x358091[_0x9207('0x18')](0x194);}return _0x9edfcc;};}function handleError(_0x3d5c09,_0x34c63a){_0x34c63a=_0x34c63a||0x1f4;return function(_0xda9bdf){logger[_0x9207('0x27')](_0xda9bdf[_0x9207('0x28')]);if(_0xda9bdf['name']){delete _0xda9bdf[_0x9207('0x29')];}_0x3d5c09[_0x9207('0x19')](_0x34c63a)[_0x9207('0x2a')](_0xda9bdf);};}exports[_0x9207('0x2b')]=function(_0x50007c,_0x3360be){var _0x9b1a1e={},_0x42530f={},_0x225d40={'count':0x0,'rows':[]};var _0x3ffa11=_[_0x9207('0x2c')](db[_0x9207('0x2d')][_0x9207('0x2e')],function(_0x1d84d3){return{'name':_0x1d84d3['fieldName'],'type':_0x1d84d3[_0x9207('0x2f')][_0x9207('0x30')]};});_0x42530f['model']=_[_0x9207('0x2c')](_0x3ffa11,'name');_0x42530f[_0x9207('0x31')]=_[_0x9207('0x32')](_0x50007c[_0x9207('0x31')]);_0x42530f[_0x9207('0x33')]=_[_0x9207('0x34')](_0x42530f[_0x9207('0x35')],_0x42530f[_0x9207('0x31')]);_0x9b1a1e[_0x9207('0x36')]=_[_0x9207('0x34')](_0x42530f[_0x9207('0x35')],qs['fields'](_0x50007c[_0x9207('0x31')]['fields']));_0x9b1a1e[_0x9207('0x36')]=_0x9b1a1e[_0x9207('0x36')][_0x9207('0x37')]?_0x9b1a1e['attributes']:_0x42530f['model'];if(!_0x50007c['query'][_0x9207('0x38')](_0x9207('0x39'))){_0x9b1a1e[_0x9207('0x1e')]=qs[_0x9207('0x1e')](_0x50007c[_0x9207('0x31')]['limit']);_0x9b1a1e[_0x9207('0x1d')]=qs[_0x9207('0x1d')](_0x50007c[_0x9207('0x31')][_0x9207('0x1d')]);}_0x9b1a1e['order']=qs[_0x9207('0x3a')](_0x50007c[_0x9207('0x31')]['sort']);_0x9b1a1e['where']=qs[_0x9207('0x33')](_[_0x9207('0x3b')](_0x50007c[_0x9207('0x31')],_0x42530f['filters']));if(_0x50007c['query'][_0x9207('0x3c')]){_0x9b1a1e['where']=_[_0x9207('0x3d')](_0x9b1a1e[_0x9207('0x3e')],{'$or':_[_0x9207('0x2c')](_0x3ffa11,function(_0x51ec74){if(_0x51ec74[_0x9207('0x2f')]!==_0x9207('0x3f')){var _0x463ccf={};_0x463ccf[_0x51ec74[_0x9207('0x29')]]={'$like':'%'+_0x50007c[_0x9207('0x31')]['filter']+'%'};return _0x463ccf;}})});}_0x9b1a1e=_[_0x9207('0x3d')]({},_0x9b1a1e,_0x50007c[_0x9207('0x40')]);var _0x4631f4={'where':_0x9b1a1e[_0x9207('0x3e')]};return db[_0x9207('0x2d')]['count'](_0x4631f4)[_0x9207('0x24')](function(_0x502afb){_0x225d40[_0x9207('0x1c')]=_0x502afb;if(_0x50007c[_0x9207('0x31')][_0x9207('0x41')]){_0x9b1a1e[_0x9207('0x42')]=[{'all':!![]}];}return db['AnalyticExtractedReport'][_0x9207('0x43')](_0x9b1a1e);})[_0x9207('0x24')](function(_0x4a12a1){_0x225d40[_0x9207('0x44')]=_0x4a12a1;return _0x225d40;})[_0x9207('0x24')](respondWithFilteredResult(_0x3360be,_0x9b1a1e))['catch'](handleError(_0x3360be,null));};exports['show']=function(_0xe30604,_0x422c55){var _0x39e1a0={'raw':!![],'where':{'id':_0xe30604[_0x9207('0x45')]['id']}},_0xb02419={};_0xb02419[_0x9207('0x35')]=_['keys'](db[_0x9207('0x2d')]['rawAttributes']);_0xb02419[_0x9207('0x31')]=_[_0x9207('0x32')](_0xe30604[_0x9207('0x31')]);_0xb02419[_0x9207('0x33')]=_['intersection'](_0xb02419[_0x9207('0x35')],_0xb02419[_0x9207('0x31')]);_0x39e1a0[_0x9207('0x36')]=_[_0x9207('0x34')](_0xb02419['model'],qs['fields'](_0xe30604[_0x9207('0x31')]['fields']));_0x39e1a0[_0x9207('0x36')]=_0x39e1a0[_0x9207('0x36')][_0x9207('0x37')]?_0x39e1a0[_0x9207('0x36')]:_0xb02419['model'];if(_0xe30604[_0x9207('0x31')][_0x9207('0x41')]){_0x39e1a0[_0x9207('0x42')]=[{'all':!![]}];}_0x39e1a0=_['merge']({},_0x39e1a0,_0xe30604[_0x9207('0x40')]);return db[_0x9207('0x2d')]['find'](_0x39e1a0)[_0x9207('0x24')](handleEntityNotFound(_0x422c55,null))[_0x9207('0x24')](respondWithResult(_0x422c55,null))[_0x9207('0x46')](handleError(_0x422c55,null));};exports[_0x9207('0x47')]=function(_0x40589b,_0x498a18){return db[_0x9207('0x2d')][_0x9207('0x47')](_0x40589b[_0x9207('0x48')],{})['then'](function(_0x2cd7ec){var _0x490ffa=_0x40589b[_0x9207('0x49')]['get']({'plain':!![]});if(!_0x490ffa)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x490ffa[_0x9207('0x4a')]===_0x9207('0x49')){var _0x247e11=_0x2cd7ec[_0x9207('0x4b')]({'plain':!![]});var _0x5323ec='ExtractedReports';return db['UserProfileSection']['find']({'where':{'name':_0x5323ec,'userProfileId':_0x490ffa['userProfileId']},'raw':!![]})[_0x9207('0x24')](function(_0x423b23){if(_0x423b23&&_0x423b23['autoAssociation']===0x0){return db[_0x9207('0x4c')][_0x9207('0x47')]({'name':_0x247e11[_0x9207('0x29')],'resourceId':_0x247e11['id'],'type':_0x423b23['name'],'sectionId':_0x423b23['id']},{})[_0x9207('0x24')](function(){return _0x2cd7ec;});}else{return _0x2cd7ec;}})[_0x9207('0x46')](function(_0x530178){logger[_0x9207('0x27')](_0x9207('0x4d'),_0x530178);throw _0x530178;});}return _0x2cd7ec;})[_0x9207('0x24')](respondWithResult(_0x498a18,0xc9))[_0x9207('0x46')](handleError(_0x498a18,null));};exports['update']=function(_0x3556db,_0x173c93){if(_0x3556db['body']['id']){delete _0x3556db[_0x9207('0x48')]['id'];}return db['AnalyticExtractedReport'][_0x9207('0x4e')]({'where':{'id':_0x3556db[_0x9207('0x45')]['id']}})['then'](handleEntityNotFound(_0x173c93,null))['then'](saveUpdates(_0x3556db[_0x9207('0x48')],null))[_0x9207('0x24')](respondWithResult(_0x173c93,null))[_0x9207('0x46')](handleError(_0x173c93,null));};exports[_0x9207('0x25')]=function(_0x1a067d,_0x291056){return db[_0x9207('0x2d')][_0x9207('0x4e')]({'where':{'id':_0x1a067d[_0x9207('0x45')]['id']}})[_0x9207('0x24')](handleEntityNotFound(_0x291056,null))[_0x9207('0x24')](removeEntity(_0x291056,null))[_0x9207('0x46')](handleError(_0x291056,null));};exports[_0x9207('0x4f')]=function(_0x60ca12,_0x168e74,_0x3b7c9c){return db[_0x9207('0x2d')][_0x9207('0x4e')]({'where':{'id':_0x60ca12['params']['id']},'attributes':['name',_0x9207('0x50'),_0x9207('0x51'),_0x9207('0x52')],'raw':!![]})[_0x9207('0x24')](handleEntityNotFound(_0x168e74,null))[_0x9207('0x24')](function(_0x53eca6){if(_0x53eca6){if(!fs['existsSync'](path[_0x9207('0x53')](config[_0x9207('0x54')],'server/files/reports',_0x53eca6[_0x9207('0x51')]))){throw new db['Sequelize'][(_0x9207('0x55'))]('Report\x20not\x20found\x20or\x20empty');}if(_0x60ca12[_0x9207('0x31')][_0x9207('0x56')]){return _0x168e74[_0x9207('0x18')](0xc8);}return _0x168e74['download'](path[_0x9207('0x53')](config[_0x9207('0x54')],'server/files/reports',_0x53eca6[_0x9207('0x51')]),util[_0x9207('0x57')](_0x9207('0x58'),_0x53eca6['basename']||_0x53eca6['name'],_0x53eca6[_0x9207('0x52')][_0x9207('0x59')]()));}})[_0x9207('0x46')](handleError(_0x168e74,null));};
\ No newline at end of file
diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js
index aff4d74..a8bd78b 100644
--- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js
+++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0d9f=['analytics_extracted_reports','lodash','util','../../config/logger','api','moment','bluebird','path','../../config/environment','./analyticExtractedReport.attributes','exports','define','AnalyticExtractedReport'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0x0d9f,0x17a));var _0xf0d9=function(_0x58afd5,_0x534a48){_0x58afd5=_0x58afd5-0x0;var _0x3e503b=_0x0d9f[_0x58afd5];return _0x3e503b;};'use strict';var _=require(_0xf0d9('0x0'));var util=require(_0xf0d9('0x1'));var logger=require(_0xf0d9('0x2'))(_0xf0d9('0x3'));var moment=require(_0xf0d9('0x4'));var BPromise=require(_0xf0d9('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf0d9('0x6'));var rimraf=require('rimraf');var config=require(_0xf0d9('0x7'));var attributes=require(_0xf0d9('0x8'));module[_0xf0d9('0x9')]=function(_0x376f50,_0x1136dc){return _0x376f50[_0xf0d9('0xa')](_0xf0d9('0xb'),attributes,{'tableName':_0xf0d9('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xf6eb=['api','bluebird','request-promise','./analyticExtractedReport.attributes','exports','AnalyticExtractedReport','analytics_extracted_reports','util'];(function(_0x3f3f06,_0x581e5b){var _0x140feb=function(_0x4cc383){while(--_0x4cc383){_0x3f3f06['push'](_0x3f3f06['shift']());}};_0x140feb(++_0x581e5b);}(_0xf6eb,0xe7));var _0xbf6e=function(_0x5dab08,_0x29444a){_0x5dab08=_0x5dab08-0x0;var _0x4334d7=_0xf6eb[_0x5dab08];return _0x4334d7;};'use strict';var _=require('lodash');var util=require(_0xbf6e('0x0'));var logger=require('../../config/logger')(_0xbf6e('0x1'));var moment=require('moment');var BPromise=require(_0xbf6e('0x2'));var rp=require(_0xbf6e('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xbf6e('0x4'));module[_0xbf6e('0x5')]=function(_0x11d493,_0x22fc45){return _0x11d493['define'](_0xbf6e('0x6'),attributes,{'tableName':_0xbf6e('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.rpc.js b/server/api/analyticExtractedReport/analyticExtractedReport.rpc.js
index 6ae4ede..fe1166d 100644
--- a/server/api/analyticExtractedReport/analyticExtractedReport.rpc.js
+++ b/server/api/analyticExtractedReport/analyticExtractedReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x9b70=['../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','request\x20sent','debug','error','code','AnalyticExtractedReport,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x3cb1fc,_0x308874){var _0x8ca185=function(_0x2e49fc){while(--_0x2e49fc){_0x3cb1fc['push'](_0x3cb1fc['shift']());}};_0x8ca185(++_0x308874);}(_0x9b70,0x94));var _0x09b7=function(_0x4d1cc6,_0x26bebe){_0x4d1cc6=_0x4d1cc6-0x0;var _0x1a6fee=_0x9b70[_0x4d1cc6];return _0x1a6fee;};'use strict';var _=require(_0x09b7('0x0'));var util=require(_0x09b7('0x1'));var moment=require(_0x09b7('0x2'));var BPromise=require(_0x09b7('0x3'));var rs=require(_0x09b7('0x4'));var fs=require('fs');var Redis=require(_0x09b7('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x09b7('0x6'));var logger=require(_0x09b7('0x7'))(_0x09b7('0x8'));var config=require(_0x09b7('0x9'));var jayson=require(_0x09b7('0xa'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3741b9,_0x327edd,_0x204f71){return new BPromise(function(_0x4118fe,_0x48f912){return client[_0x09b7('0xb')](_0x3741b9,_0x204f71)[_0x09b7('0xc')](function(_0x4c34ec){logger[_0x09b7('0xd')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x327edd,_0x09b7('0xe'));logger[_0x09b7('0xf')]('AnalyticExtractedReport,\x20%s,\x20%s,\x20%s',_0x327edd,_0x09b7('0xe'),JSON['stringify'](_0x4c34ec));if(_0x4c34ec[_0x09b7('0x10')]){if(_0x4c34ec['error'][_0x09b7('0x11')]===0x1f4){logger[_0x09b7('0x10')](_0x09b7('0x12'),_0x327edd,_0x4c34ec[_0x09b7('0x10')][_0x09b7('0x13')]);return _0x48f912(_0x4c34ec[_0x09b7('0x10')][_0x09b7('0x13')]);}logger[_0x09b7('0x10')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x327edd,_0x4c34ec[_0x09b7('0x10')]['message']);return _0x4118fe(_0x4c34ec['error'][_0x09b7('0x13')]);}else{logger[_0x09b7('0xd')](_0x09b7('0x12'),_0x327edd,_0x09b7('0xe'));_0x4118fe(_0x4c34ec[_0x09b7('0x14')]['message']);}})[_0x09b7('0x15')](function(_0xbb6a82){logger[_0x09b7('0x10')](_0x09b7('0x12'),_0x327edd,_0xbb6a82);_0x48f912(_0xbb6a82);});});}
\ No newline at end of file
+var _0xde62=['stringify','error','code','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','AnalyticExtractedReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticExtractedReport,\x20%s,\x20%s,\x20%s'];(function(_0x3af63c,_0x580adb){var _0x4fbf4a=function(_0x1d1893){while(--_0x1d1893){_0x3af63c['push'](_0x3af63c['shift']());}};_0x4fbf4a(++_0x580adb);}(_0xde62,0x16e));var _0x2de6=function(_0x27fcd3,_0x32849d){_0x27fcd3=_0x27fcd3-0x0;var _0x244e50=_0xde62[_0x27fcd3];return _0x244e50;};'use strict';var _=require(_0x2de6('0x0'));var util=require(_0x2de6('0x1'));var moment=require('moment');var BPromise=require(_0x2de6('0x2'));var rs=require(_0x2de6('0x3'));var fs=require('fs');var Redis=require(_0x2de6('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x2de6('0x5'));var logger=require('../../config/logger')(_0x2de6('0x6'));var config=require(_0x2de6('0x7'));var jayson=require(_0x2de6('0x8'));var client=jayson[_0x2de6('0x9')][_0x2de6('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x46ac55,_0x2a0e6d,_0xee6a52){return new BPromise(function(_0x24b47f,_0x5d9e22){return client[_0x2de6('0xb')](_0x46ac55,_0xee6a52)[_0x2de6('0xc')](function(_0x214b48){logger[_0x2de6('0xd')](_0x2de6('0xe'),_0x2a0e6d,_0x2de6('0xf'));logger[_0x2de6('0x10')](_0x2de6('0x11'),_0x2a0e6d,_0x2de6('0xf'),JSON[_0x2de6('0x12')](_0x214b48));if(_0x214b48[_0x2de6('0x13')]){if(_0x214b48[_0x2de6('0x13')][_0x2de6('0x14')]===0x1f4){logger['error']('AnalyticExtractedReport,\x20%s,\x20%s',_0x2a0e6d,_0x214b48[_0x2de6('0x13')]['message']);return _0x5d9e22(_0x214b48[_0x2de6('0x13')][_0x2de6('0x15')]);}logger[_0x2de6('0x13')]('AnalyticExtractedReport,\x20%s,\x20%s',_0x2a0e6d,_0x214b48[_0x2de6('0x13')][_0x2de6('0x15')]);return _0x24b47f(_0x214b48['error'][_0x2de6('0x15')]);}else{logger[_0x2de6('0xd')](_0x2de6('0xe'),_0x2a0e6d,_0x2de6('0xf'));_0x24b47f(_0x214b48[_0x2de6('0x16')][_0x2de6('0x15')]);}})[_0x2de6('0x17')](function(_0x26b49c){logger[_0x2de6('0x13')](_0x2de6('0xe'),_0x2a0e6d,_0x26b49c);_0x5d9e22(_0x26b49c);});});}
\ No newline at end of file
diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js
index 643c7fd..cdb5713 100644
--- a/server/api/analyticExtractedReport/index.js
+++ b/server/api/analyticExtractedReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf67d=['delete','exports','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./analyticExtractedReport.controller','get','isAuthenticated','index','show','/:id/download','create','put','/:id','update'];(function(_0x36c5b0,_0x5001da){var _0xf19333=function(_0x1e880a){while(--_0x1e880a){_0x36c5b0['push'](_0x36c5b0['shift']());}};_0xf19333(++_0x5001da);}(_0xf67d,0x182));var _0xdf67=function(_0x496291,_0x46bbd2){_0x496291=_0x496291-0x0;var _0x365abb=_0xf67d[_0x496291];return _0x365abb;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xdf67('0x0')]();var auth=require(_0xdf67('0x1'));var interaction=require(_0xdf67('0x2'));var config=require(_0xdf67('0x3'));var controller=require(_0xdf67('0x4'));router[_0xdf67('0x5')]('/',auth[_0xdf67('0x6')](),controller[_0xdf67('0x7')]);router['get']('/:id',auth[_0xdf67('0x6')](),controller[_0xdf67('0x8')]);router[_0xdf67('0x5')](_0xdf67('0x9'),auth[_0xdf67('0x6')](),controller['download']);router['post']('/',auth[_0xdf67('0x6')](),controller[_0xdf67('0xa')]);router[_0xdf67('0xb')](_0xdf67('0xc'),auth[_0xdf67('0x6')](),controller[_0xdf67('0xd')]);router[_0xdf67('0xe')](_0xdf67('0xc'),auth[_0xdf67('0x6')](),controller['destroy']);module[_0xdf67('0xf')]=router;
\ No newline at end of file
+var _0x4323=['../../config/environment','./analyticExtractedReport.controller','get','isAuthenticated','index','/:id','show','/:id/download','post','create','delete','exports','util','connect-timeout','Router','../../components/auth/service'];(function(_0x1ce3e0,_0x247252){var _0x575610=function(_0x5eb25b){while(--_0x5eb25b){_0x1ce3e0['push'](_0x1ce3e0['shift']());}};_0x575610(++_0x247252);}(_0x4323,0x1cc));var _0x3432=function(_0x3045f9,_0x25f1b){_0x3045f9=_0x3045f9-0x0;var _0x2e2335=_0x4323[_0x3045f9];return _0x2e2335;};'use strict';var multer=require('multer');var util=require(_0x3432('0x0'));var path=require('path');var timeout=require(_0x3432('0x1'));var express=require('express');var router=express[_0x3432('0x2')]();var auth=require(_0x3432('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3432('0x4'));var controller=require(_0x3432('0x5'));router[_0x3432('0x6')]('/',auth[_0x3432('0x7')](),controller[_0x3432('0x8')]);router[_0x3432('0x6')](_0x3432('0x9'),auth[_0x3432('0x7')](),controller[_0x3432('0xa')]);router['get'](_0x3432('0xb'),auth['isAuthenticated'](),controller['download']);router[_0x3432('0xc')]('/',auth['isAuthenticated'](),controller[_0x3432('0xd')]);router['put']('/:id',auth[_0x3432('0x7')](),controller['update']);router[_0x3432('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x3432('0xf')]=router;
\ No newline at end of file
diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js
index 72c3826..945bfb3 100644
--- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js
+++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc4aa=['exports','TEXT','STRING','sequelize'];(function(_0x2c0d27,_0xbf25ba){var _0x219007=function(_0x225735){while(--_0x225735){_0x2c0d27['push'](_0x2c0d27['shift']());}};_0x219007(++_0xbf25ba);}(_0xc4aa,0x1b7));var _0xac4a=function(_0x4a747d,_0x3b747f){_0x4a747d=_0x4a747d-0x0;var _0x3a5b5c=_0xc4aa[_0x4a747d];return _0x3a5b5c;};'use strict';var Sequelize=require(_0xac4a('0x0'));module[_0xac4a('0x1')]={'field':{'type':Sequelize[_0xac4a('0x2')]},'alias':{'type':Sequelize[_0xac4a('0x3')]},'function':{'type':Sequelize[_0xac4a('0x3')]},'format':{'type':Sequelize[_0xac4a('0x3')]},'groupBy':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'orderBy':{'type':Sequelize['STRING']},'custom':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};
\ No newline at end of file
+var _0x1261=['exports','TEXT','STRING','BOOLEAN'];(function(_0x5c6058,_0x373c61){var _0xb3b090=function(_0x1fb1fc){while(--_0x1fb1fc){_0x5c6058['push'](_0x5c6058['shift']());}};_0xb3b090(++_0x373c61);}(_0x1261,0x144));var _0x1126=function(_0xd6640b,_0x475e47){_0xd6640b=_0xd6640b-0x0;var _0x4c843e=_0x1261[_0xd6640b];return _0x4c843e;};'use strict';var Sequelize=require('sequelize');module[_0x1126('0x0')]={'field':{'type':Sequelize[_0x1126('0x1')]},'alias':{'type':Sequelize[_0x1126('0x2')]},'function':{'type':Sequelize[_0x1126('0x2')]},'format':{'type':Sequelize[_0x1126('0x2')]},'groupBy':{'type':Sequelize[_0x1126('0x3')],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x1126('0x2')]},'custom':{'type':Sequelize[_0x1126('0x3')],'defaultValue':![]}};
\ No newline at end of file
diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js
index 43451f1..5223ca1 100644
--- a/server/api/analyticFieldReport/analyticFieldReport.controller.js
+++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7c1a=['save','update','then','destroy','stack','name','send','map','AnalyticFieldReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','limit','order','sort','where','pick','merge','filter','options','includeAll','include','findAll','rows','catch','show','params','create','body','bulkCreate','find','bulkDestroy','ids','addFields','AnalyticCustomReport','transaction','CustomReportId','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','to-csv','ejs','lodash','squel','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','sendStatus','status','end','json','count','offset','set','reject'];(function(_0x238f37,_0x1bde42){var _0x420fe8=function(_0x219ec4){while(--_0x219ec4){_0x238f37['push'](_0x238f37['shift']());}};_0x420fe8(++_0x1bde42);}(_0x7c1a,0x159));var _0xa7c1=function(_0x355243,_0x3ed2b8){_0x355243=_0x355243-0x0;var _0xe02a50=_0x7c1a[_0x355243];return _0xe02a50;};'use strict';var pdf=require(_0xa7c1('0x0'));var emlformat=require(_0xa7c1('0x1'));var rimraf=require(_0xa7c1('0x2'));var zipdir=require(_0xa7c1('0x3'));var jsonpatch=require(_0xa7c1('0x4'));var rp=require(_0xa7c1('0x5'));var moment=require('moment');var BPromise=require(_0xa7c1('0x6'));var Mustache=require(_0xa7c1('0x7'));var util=require('util');var path=require(_0xa7c1('0x8'));var sox=require('sox');var csv=require(_0xa7c1('0x9'));var ejs=require(_0xa7c1('0xa'));var fs=require('fs');var _=require(_0xa7c1('0xb'));var squel=require(_0xa7c1('0xc'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xa7c1('0xd'));var toCsv=require(_0xa7c1('0x9'));var querystring=require(_0xa7c1('0xe'));var Papa=require('papaparse');var Redis=require(_0xa7c1('0xf'));var authService=require(_0xa7c1('0x10'));var qs=require(_0xa7c1('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa7c1('0x12'));var logger=require(_0xa7c1('0x13'))('api');var utils=require(_0xa7c1('0x14'));var config=require(_0xa7c1('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x4ee4af,_0x1d7d67){_0x1d7d67=_0x1d7d67||0xcc;return function(_0x26d63a){if(_0x26d63a){return _0x4ee4af[_0xa7c1('0x16')](_0x1d7d67);}return _0x4ee4af[_0xa7c1('0x17')](_0x1d7d67)[_0xa7c1('0x18')]();};}function respondWithResult(_0x2dd7f8,_0xb74ba2){_0xb74ba2=_0xb74ba2||0xc8;return function(_0x3fc9e6){if(_0x3fc9e6){return _0x2dd7f8[_0xa7c1('0x17')](_0xb74ba2)[_0xa7c1('0x19')](_0x3fc9e6);}};}function respondWithFilteredResult(_0x30b538,_0xe28779){return function(_0x5a0c8e){if(_0x5a0c8e){var _0xba02b=_0x5a0c8e[_0xa7c1('0x1a')],_0x3a6f47=_0xe28779['offset'],_0x1790c3=_0xe28779[_0xa7c1('0x1b')]+_0xe28779['limit'],_0x1ca843;if(_0x1790c3>=_0xba02b){_0x1790c3=_0xba02b;_0x1ca843=0xc8;}else{_0x1ca843=0xce;}_0x30b538[_0xa7c1('0x17')](_0x1ca843);return _0x30b538[_0xa7c1('0x1c')]('Content-Range',_0x3a6f47+'-'+_0x1790c3+'/'+_0xba02b)[_0xa7c1('0x19')](_0x5a0c8e);}return null;};}function patchUpdates(_0x19198b){return function(_0x3f193f){try{jsonpatch['apply'](_0x3f193f,_0x19198b,!![]);}catch(_0x19c9b2){return BPromise[_0xa7c1('0x1d')](_0x19c9b2);}return _0x3f193f[_0xa7c1('0x1e')]();};}function saveUpdates(_0x422447,_0x3b131e){return function(_0x31c16a){if(_0x31c16a){return _0x31c16a[_0xa7c1('0x1f')](_0x422447)[_0xa7c1('0x20')](function(_0x2e3f7c){return _0x2e3f7c;});}return null;};}function removeEntity(_0x5451ef,_0x42ad46){return function(_0x1c9b7c){if(_0x1c9b7c){return _0x1c9b7c[_0xa7c1('0x21')]()['then'](function(){_0x5451ef[_0xa7c1('0x17')](0xcc)[_0xa7c1('0x18')]();});}};}function handleEntityNotFound(_0x43d61f,_0x2dc42b){return function(_0x30cb15){if(!_0x30cb15){_0x43d61f[_0xa7c1('0x16')](0x194);}return _0x30cb15;};}function handleError(_0x3c9866,_0x53e490){_0x53e490=_0x53e490||0x1f4;return function(_0x525de5){logger['error'](_0x525de5[_0xa7c1('0x22')]);if(_0x525de5[_0xa7c1('0x23')]){delete _0x525de5[_0xa7c1('0x23')];}_0x3c9866[_0xa7c1('0x17')](_0x53e490)[_0xa7c1('0x24')](_0x525de5);};}exports['index']=function(_0x586b17,_0x465dd1){var _0x2726e9={},_0xc60f7c={},_0x59b3f5={'count':0x0,'rows':[]};var _0x2c42b4=_[_0xa7c1('0x25')](db[_0xa7c1('0x26')][_0xa7c1('0x27')],function(_0x635792){return{'name':_0x635792[_0xa7c1('0x28')],'type':_0x635792[_0xa7c1('0x29')][_0xa7c1('0x2a')]};});_0xc60f7c[_0xa7c1('0x2b')]=_[_0xa7c1('0x25')](_0x2c42b4,'name');_0xc60f7c[_0xa7c1('0x2c')]=_[_0xa7c1('0x2d')](_0x586b17[_0xa7c1('0x2c')]);_0xc60f7c[_0xa7c1('0x2e')]=_[_0xa7c1('0x2f')](_0xc60f7c[_0xa7c1('0x2b')],_0xc60f7c[_0xa7c1('0x2c')]);_0x2726e9[_0xa7c1('0x30')]=_[_0xa7c1('0x2f')](_0xc60f7c['model'],qs[_0xa7c1('0x31')](_0x586b17[_0xa7c1('0x2c')][_0xa7c1('0x31')]));_0x2726e9[_0xa7c1('0x30')]=_0x2726e9['attributes']['length']?_0x2726e9[_0xa7c1('0x30')]:_0xc60f7c[_0xa7c1('0x2b')];if(!_0x586b17[_0xa7c1('0x2c')]['hasOwnProperty']('nolimit')){_0x2726e9[_0xa7c1('0x32')]=qs[_0xa7c1('0x32')](_0x586b17['query'][_0xa7c1('0x32')]);_0x2726e9['offset']=qs[_0xa7c1('0x1b')](_0x586b17['query'][_0xa7c1('0x1b')]);}_0x2726e9[_0xa7c1('0x33')]=qs['sort'](_0x586b17['query'][_0xa7c1('0x34')]);_0x2726e9[_0xa7c1('0x35')]=qs[_0xa7c1('0x2e')](_[_0xa7c1('0x36')](_0x586b17[_0xa7c1('0x2c')],_0xc60f7c[_0xa7c1('0x2e')]));if(_0x586b17[_0xa7c1('0x2c')]['filter']){_0x2726e9[_0xa7c1('0x35')]=_[_0xa7c1('0x37')](_0x2726e9[_0xa7c1('0x35')],{'$or':_[_0xa7c1('0x25')](_0x2c42b4,function(_0x4158d8){if(_0x4158d8[_0xa7c1('0x29')]!=='VIRTUAL'){var _0x3e1a41={};_0x3e1a41[_0x4158d8[_0xa7c1('0x23')]]={'$like':'%'+_0x586b17[_0xa7c1('0x2c')][_0xa7c1('0x38')]+'%'};return _0x3e1a41;}})});}_0x2726e9=_[_0xa7c1('0x37')]({},_0x2726e9,_0x586b17[_0xa7c1('0x39')]);var _0x3b6f7f={'where':_0x2726e9[_0xa7c1('0x35')]};return db['AnalyticFieldReport'][_0xa7c1('0x1a')](_0x3b6f7f)[_0xa7c1('0x20')](function(_0x11521d){_0x59b3f5[_0xa7c1('0x1a')]=_0x11521d;if(_0x586b17[_0xa7c1('0x2c')][_0xa7c1('0x3a')]){_0x2726e9[_0xa7c1('0x3b')]=[{'all':!![]}];}return db[_0xa7c1('0x26')][_0xa7c1('0x3c')](_0x2726e9);})[_0xa7c1('0x20')](function(_0x438aaf){_0x59b3f5[_0xa7c1('0x3d')]=_0x438aaf;return _0x59b3f5;})[_0xa7c1('0x20')](respondWithFilteredResult(_0x465dd1,_0x2726e9))[_0xa7c1('0x3e')](handleError(_0x465dd1,null));};exports[_0xa7c1('0x3f')]=function(_0x3a51a5,_0x1c5f29){var _0x4c0ef7={'raw':![],'where':{'id':_0x3a51a5[_0xa7c1('0x40')]['id']}},_0x2631af={};_0x2631af['model']=_[_0xa7c1('0x2d')](db[_0xa7c1('0x26')][_0xa7c1('0x27')]);_0x2631af[_0xa7c1('0x2c')]=_['keys'](_0x3a51a5[_0xa7c1('0x2c')]);_0x2631af['filters']=_['intersection'](_0x2631af[_0xa7c1('0x2b')],_0x2631af[_0xa7c1('0x2c')]);_0x4c0ef7[_0xa7c1('0x30')]=_[_0xa7c1('0x2f')](_0x2631af[_0xa7c1('0x2b')],qs['fields'](_0x3a51a5[_0xa7c1('0x2c')][_0xa7c1('0x31')]));_0x4c0ef7[_0xa7c1('0x30')]=_0x4c0ef7['attributes']['length']?_0x4c0ef7[_0xa7c1('0x30')]:_0x2631af[_0xa7c1('0x2b')];if(_0x3a51a5['query'][_0xa7c1('0x3a')]){_0x4c0ef7[_0xa7c1('0x3b')]=[{'all':!![]}];}_0x4c0ef7=_[_0xa7c1('0x37')]({},_0x4c0ef7,_0x3a51a5[_0xa7c1('0x39')]);return db[_0xa7c1('0x26')]['find'](_0x4c0ef7)[_0xa7c1('0x20')](handleEntityNotFound(_0x1c5f29,null))[_0xa7c1('0x20')](respondWithResult(_0x1c5f29,null))[_0xa7c1('0x3e')](handleError(_0x1c5f29,null));};exports[_0xa7c1('0x41')]=function(_0x4277b4,_0x4c3c0a){return db[_0xa7c1('0x26')][_0xa7c1('0x41')](_0x4277b4[_0xa7c1('0x42')],{})[_0xa7c1('0x20')](respondWithResult(_0x4c3c0a,0xc9))[_0xa7c1('0x3e')](handleError(_0x4c3c0a,null));};exports[_0xa7c1('0x43')]=function(_0x5180af,_0x306ca9){return db[_0xa7c1('0x26')][_0xa7c1('0x43')](_0x5180af[_0xa7c1('0x42')],{'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x306ca9,0xc9))['catch'](handleError(_0x306ca9,null));};exports[_0xa7c1('0x1f')]=function(_0x4b8da7,_0x7cfa68){if(_0x4b8da7[_0xa7c1('0x42')]['id']){delete _0x4b8da7[_0xa7c1('0x42')]['id'];}return db['AnalyticFieldReport'][_0xa7c1('0x44')]({'where':{'id':_0x4b8da7[_0xa7c1('0x40')]['id']}})['then'](handleEntityNotFound(_0x7cfa68,null))['then'](saveUpdates(_0x4b8da7[_0xa7c1('0x42')],null))[_0xa7c1('0x20')](respondWithResult(_0x7cfa68,null))[_0xa7c1('0x3e')](handleError(_0x7cfa68,null));};exports['destroy']=function(_0x12d60c,_0x3c4819){return db[_0xa7c1('0x26')][_0xa7c1('0x44')]({'where':{'id':_0x12d60c[_0xa7c1('0x40')]['id']}})['then'](handleEntityNotFound(_0x3c4819,null))['then'](removeEntity(_0x3c4819,null))[_0xa7c1('0x3e')](handleError(_0x3c4819,null));};exports[_0xa7c1('0x45')]=function(_0x518200,_0x4b8aaf){return db[_0xa7c1('0x26')][_0xa7c1('0x21')]({'where':{'id':_0x518200['query'][_0xa7c1('0x46')]||[]},'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x4b8aaf,0xcc))['catch'](handleError(_0x4b8aaf,null));};exports[_0xa7c1('0x47')]=function(_0x2f3485,_0x362616,_0x568643){return db[_0xa7c1('0x48')]['findOne']({'where':{'id':_0x2f3485[_0xa7c1('0x40')]['id']}})[_0xa7c1('0x20')](handleEntityNotFound(_0x362616,null))['then'](function(_0x2bce1b){if(_0x2bce1b){return db['sequelize'][_0xa7c1('0x49')](function(_0x2734d5){return db['AnalyticFieldReport'][_0xa7c1('0x21')]({'where':{'CustomReportId':_0x2f3485['params']['id']},'transaction':_0x2734d5})[_0xa7c1('0x20')](function(_0x154305){var _0x2da015=_[_0xa7c1('0x25')](_0x2f3485['body'],function(_0x808531){delete _0x808531['id'];_0x808531[_0xa7c1('0x4a')]=_0x2f3485['params']['id'];return _0x808531;});return db['AnalyticFieldReport'][_0xa7c1('0x43')](_0x2da015,{'transaction':_0x2734d5});});})[_0xa7c1('0x20')](function(){return db[_0xa7c1('0x26')][_0xa7c1('0x3c')]({'where':{'CustomReportId':_0x2f3485[_0xa7c1('0x40')]['id']}});});}})[_0xa7c1('0x20')](respondWithResult(_0x362616,null))[_0xa7c1('0x3e')](handleError(_0x362616,null));};
\ No newline at end of file
+var _0x68b3=['util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','end','offset','limit','Content-Range','json','apply','reject','save','update','then','destroy','error','stack','name','send','index','map','AnalyticFieldReport','rawAttributes','key','model','keys','query','filters','intersection','attributes','fields','length','nolimit','order','where','pick','filter','merge','type','count','includeAll','include','findAll','rows','show','params','options','find','catch','create','bulkCreate','body','bulkDestroy','ids','AnalyticCustomReport','findOne','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache'];(function(_0x26462c,_0xd20a35){var _0x509a42=function(_0x1b22c9){while(--_0x1b22c9){_0x26462c['push'](_0x26462c['shift']());}};_0x509a42(++_0xd20a35);}(_0x68b3,0x1d8));var _0x368b=function(_0x247aaa,_0x696a9d){_0x247aaa=_0x247aaa-0x0;var _0x175812=_0x68b3[_0x247aaa];return _0x175812;};'use strict';var pdf=require(_0x368b('0x0'));var emlformat=require(_0x368b('0x1'));var rimraf=require(_0x368b('0x2'));var zipdir=require(_0x368b('0x3'));var jsonpatch=require(_0x368b('0x4'));var rp=require('request-promise');var moment=require(_0x368b('0x5'));var BPromise=require(_0x368b('0x6'));var Mustache=require(_0x368b('0x7'));var util=require(_0x368b('0x8'));var path=require('path');var sox=require(_0x368b('0x9'));var csv=require(_0x368b('0xa'));var ejs=require(_0x368b('0xb'));var fs=require('fs');var _=require(_0x368b('0xc'));var squel=require(_0x368b('0xd'));var crypto=require(_0x368b('0xe'));var jsforce=require(_0x368b('0xf'));var deskjs=require(_0x368b('0x10'));var toCsv=require(_0x368b('0xa'));var querystring=require(_0x368b('0x11'));var Papa=require(_0x368b('0x12'));var Redis=require('ioredis');var authService=require(_0x368b('0x13'));var qs=require(_0x368b('0x14'));var as=require(_0x368b('0x15'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x368b('0x16'))(_0x368b('0x17'));var utils=require(_0x368b('0x18'));var config=require('../../config/environment');var db=require(_0x368b('0x19'))['db'];function respondWithStatusCode(_0x847dcb,_0x514dc7){_0x514dc7=_0x514dc7||0xcc;return function(_0x109a90){if(_0x109a90){return _0x847dcb[_0x368b('0x1a')](_0x514dc7);}return _0x847dcb[_0x368b('0x1b')](_0x514dc7)[_0x368b('0x1c')]();};}function respondWithResult(_0xdd5d13,_0x4fffe5){_0x4fffe5=_0x4fffe5||0xc8;return function(_0x2b326c){if(_0x2b326c){return _0xdd5d13[_0x368b('0x1b')](_0x4fffe5)['json'](_0x2b326c);}};}function respondWithFilteredResult(_0x1c5e5b,_0x2aabb9){return function(_0x30c245){if(_0x30c245){var _0x515350=_0x30c245['count'],_0x220cd5=_0x2aabb9[_0x368b('0x1d')],_0x392376=_0x2aabb9[_0x368b('0x1d')]+_0x2aabb9[_0x368b('0x1e')],_0x1f1029;if(_0x392376>=_0x515350){_0x392376=_0x515350;_0x1f1029=0xc8;}else{_0x1f1029=0xce;}_0x1c5e5b['status'](_0x1f1029);return _0x1c5e5b['set'](_0x368b('0x1f'),_0x220cd5+'-'+_0x392376+'/'+_0x515350)[_0x368b('0x20')](_0x30c245);}return null;};}function patchUpdates(_0x2c3cec){return function(_0x1e632a){try{jsonpatch[_0x368b('0x21')](_0x1e632a,_0x2c3cec,!![]);}catch(_0x4b8fb7){return BPromise[_0x368b('0x22')](_0x4b8fb7);}return _0x1e632a[_0x368b('0x23')]();};}function saveUpdates(_0x2e74ca,_0x1c927f){return function(_0x23da8f){if(_0x23da8f){return _0x23da8f[_0x368b('0x24')](_0x2e74ca)[_0x368b('0x25')](function(_0x1d8066){return _0x1d8066;});}return null;};}function removeEntity(_0x508e48,_0x13e750){return function(_0x2f08d9){if(_0x2f08d9){return _0x2f08d9[_0x368b('0x26')]()[_0x368b('0x25')](function(){_0x508e48[_0x368b('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x286641,_0x1ca429){return function(_0x3a22bd){if(!_0x3a22bd){_0x286641[_0x368b('0x1a')](0x194);}return _0x3a22bd;};}function handleError(_0x77a269,_0x85515f){_0x85515f=_0x85515f||0x1f4;return function(_0x430e16){logger[_0x368b('0x27')](_0x430e16[_0x368b('0x28')]);if(_0x430e16[_0x368b('0x29')]){delete _0x430e16[_0x368b('0x29')];}_0x77a269[_0x368b('0x1b')](_0x85515f)[_0x368b('0x2a')](_0x430e16);};}exports[_0x368b('0x2b')]=function(_0x4636f4,_0x23a83a){var _0x5dc5fa={},_0x9f192e={},_0x39ef94={'count':0x0,'rows':[]};var _0x1e0e46=_[_0x368b('0x2c')](db[_0x368b('0x2d')][_0x368b('0x2e')],function(_0x3c80b5){return{'name':_0x3c80b5['fieldName'],'type':_0x3c80b5['type'][_0x368b('0x2f')]};});_0x9f192e[_0x368b('0x30')]=_[_0x368b('0x2c')](_0x1e0e46,_0x368b('0x29'));_0x9f192e['query']=_[_0x368b('0x31')](_0x4636f4[_0x368b('0x32')]);_0x9f192e[_0x368b('0x33')]=_[_0x368b('0x34')](_0x9f192e[_0x368b('0x30')],_0x9f192e['query']);_0x5dc5fa[_0x368b('0x35')]=_[_0x368b('0x34')](_0x9f192e[_0x368b('0x30')],qs[_0x368b('0x36')](_0x4636f4['query']['fields']));_0x5dc5fa['attributes']=_0x5dc5fa[_0x368b('0x35')][_0x368b('0x37')]?_0x5dc5fa[_0x368b('0x35')]:_0x9f192e[_0x368b('0x30')];if(!_0x4636f4[_0x368b('0x32')]['hasOwnProperty'](_0x368b('0x38'))){_0x5dc5fa[_0x368b('0x1e')]=qs['limit'](_0x4636f4[_0x368b('0x32')][_0x368b('0x1e')]);_0x5dc5fa['offset']=qs[_0x368b('0x1d')](_0x4636f4[_0x368b('0x32')]['offset']);}_0x5dc5fa[_0x368b('0x39')]=qs['sort'](_0x4636f4['query']['sort']);_0x5dc5fa[_0x368b('0x3a')]=qs[_0x368b('0x33')](_[_0x368b('0x3b')](_0x4636f4[_0x368b('0x32')],_0x9f192e[_0x368b('0x33')]));if(_0x4636f4[_0x368b('0x32')][_0x368b('0x3c')]){_0x5dc5fa[_0x368b('0x3a')]=_[_0x368b('0x3d')](_0x5dc5fa[_0x368b('0x3a')],{'$or':_['map'](_0x1e0e46,function(_0x204c52){if(_0x204c52[_0x368b('0x3e')]!=='VIRTUAL'){var _0x221210={};_0x221210[_0x204c52[_0x368b('0x29')]]={'$like':'%'+_0x4636f4[_0x368b('0x32')][_0x368b('0x3c')]+'%'};return _0x221210;}})});}_0x5dc5fa=_[_0x368b('0x3d')]({},_0x5dc5fa,_0x4636f4['options']);var _0x24b993={'where':_0x5dc5fa[_0x368b('0x3a')]};return db[_0x368b('0x2d')][_0x368b('0x3f')](_0x24b993)['then'](function(_0x579cb3){_0x39ef94[_0x368b('0x3f')]=_0x579cb3;if(_0x4636f4[_0x368b('0x32')][_0x368b('0x40')]){_0x5dc5fa[_0x368b('0x41')]=[{'all':!![]}];}return db[_0x368b('0x2d')][_0x368b('0x42')](_0x5dc5fa);})[_0x368b('0x25')](function(_0xaa348d){_0x39ef94[_0x368b('0x43')]=_0xaa348d;return _0x39ef94;})[_0x368b('0x25')](respondWithFilteredResult(_0x23a83a,_0x5dc5fa))['catch'](handleError(_0x23a83a,null));};exports[_0x368b('0x44')]=function(_0x179e46,_0x5a3ff1){var _0x25e713={'raw':![],'where':{'id':_0x179e46[_0x368b('0x45')]['id']}},_0x1ea901={};_0x1ea901[_0x368b('0x30')]=_['keys'](db[_0x368b('0x2d')][_0x368b('0x2e')]);_0x1ea901['query']=_[_0x368b('0x31')](_0x179e46[_0x368b('0x32')]);_0x1ea901[_0x368b('0x33')]=_['intersection'](_0x1ea901[_0x368b('0x30')],_0x1ea901[_0x368b('0x32')]);_0x25e713[_0x368b('0x35')]=_['intersection'](_0x1ea901['model'],qs[_0x368b('0x36')](_0x179e46[_0x368b('0x32')]['fields']));_0x25e713[_0x368b('0x35')]=_0x25e713[_0x368b('0x35')][_0x368b('0x37')]?_0x25e713[_0x368b('0x35')]:_0x1ea901[_0x368b('0x30')];if(_0x179e46[_0x368b('0x32')][_0x368b('0x40')]){_0x25e713[_0x368b('0x41')]=[{'all':!![]}];}_0x25e713=_[_0x368b('0x3d')]({},_0x25e713,_0x179e46[_0x368b('0x46')]);return db[_0x368b('0x2d')][_0x368b('0x47')](_0x25e713)[_0x368b('0x25')](handleEntityNotFound(_0x5a3ff1,null))['then'](respondWithResult(_0x5a3ff1,null))[_0x368b('0x48')](handleError(_0x5a3ff1,null));};exports[_0x368b('0x49')]=function(_0xe79f4c,_0xf95817){return db[_0x368b('0x2d')]['create'](_0xe79f4c['body'],{})[_0x368b('0x25')](respondWithResult(_0xf95817,0xc9))[_0x368b('0x48')](handleError(_0xf95817,null));};exports[_0x368b('0x4a')]=function(_0x5a9d70,_0x378510){return db[_0x368b('0x2d')][_0x368b('0x4a')](_0x5a9d70[_0x368b('0x4b')],{'raw':![],'individualHooks':!![]})[_0x368b('0x25')](respondWithResult(_0x378510,0xc9))[_0x368b('0x48')](handleError(_0x378510,null));};exports[_0x368b('0x24')]=function(_0x1174fa,_0x40a28f){if(_0x1174fa[_0x368b('0x4b')]['id']){delete _0x1174fa['body']['id'];}return db[_0x368b('0x2d')]['find']({'where':{'id':_0x1174fa[_0x368b('0x45')]['id']}})['then'](handleEntityNotFound(_0x40a28f,null))[_0x368b('0x25')](saveUpdates(_0x1174fa['body'],null))[_0x368b('0x25')](respondWithResult(_0x40a28f,null))[_0x368b('0x48')](handleError(_0x40a28f,null));};exports[_0x368b('0x26')]=function(_0x458d9a,_0x49b78c){return db[_0x368b('0x2d')][_0x368b('0x47')]({'where':{'id':_0x458d9a[_0x368b('0x45')]['id']}})[_0x368b('0x25')](handleEntityNotFound(_0x49b78c,null))[_0x368b('0x25')](removeEntity(_0x49b78c,null))[_0x368b('0x48')](handleError(_0x49b78c,null));};exports[_0x368b('0x4c')]=function(_0x15078b,_0x1a3ff4){return db['AnalyticFieldReport'][_0x368b('0x26')]({'where':{'id':_0x15078b[_0x368b('0x32')][_0x368b('0x4d')]||[]},'raw':![],'individualHooks':!![]})[_0x368b('0x25')](respondWithResult(_0x1a3ff4,0xcc))[_0x368b('0x48')](handleError(_0x1a3ff4,null));};exports['addFields']=function(_0x16492f,_0x1ddb6e,_0x8bee0d){return db[_0x368b('0x4e')][_0x368b('0x4f')]({'where':{'id':_0x16492f[_0x368b('0x45')]['id']}})[_0x368b('0x25')](handleEntityNotFound(_0x1ddb6e,null))['then'](function(_0x50b9da){if(_0x50b9da){return db['sequelize']['transaction'](function(_0x1978a9){return db['AnalyticFieldReport'][_0x368b('0x26')]({'where':{'CustomReportId':_0x16492f[_0x368b('0x45')]['id']},'transaction':_0x1978a9})['then'](function(_0x5711ee){var _0x374742=_['map'](_0x16492f[_0x368b('0x4b')],function(_0x17446c){delete _0x17446c['id'];_0x17446c['CustomReportId']=_0x16492f[_0x368b('0x45')]['id'];return _0x17446c;});return db[_0x368b('0x2d')]['bulkCreate'](_0x374742,{'transaction':_0x1978a9});});})[_0x368b('0x25')](function(){return db['AnalyticFieldReport'][_0x368b('0x42')]({'where':{'CustomReportId':_0x16492f[_0x368b('0x45')]['id']}});});}})[_0x368b('0x25')](respondWithResult(_0x1ddb6e,null))[_0x368b('0x48')](handleError(_0x1ddb6e,null));};
\ No newline at end of file
diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js
index 418d0b0..69ca298 100644
--- a/server/api/analyticFieldReport/analyticFieldReport.model.js
+++ b/server/api/analyticFieldReport/analyticFieldReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3577=['request-promise','path','rimraf','exports','AnalyticFieldReport','analytics_report_fields','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x2cc244,_0x28b022){var _0x4e9a69=function(_0x366003){while(--_0x366003){_0x2cc244['push'](_0x2cc244['shift']());}};_0x4e9a69(++_0x28b022);}(_0x3577,0x1f2));var _0x7357=function(_0x2d1e5a,_0xd12406){_0x2d1e5a=_0x2d1e5a-0x0;var _0x343aeb=_0x3577[_0x2d1e5a];return _0x343aeb;};'use strict';var _=require(_0x7357('0x0'));var util=require(_0x7357('0x1'));var logger=require(_0x7357('0x2'))(_0x7357('0x3'));var moment=require(_0x7357('0x4'));var BPromise=require(_0x7357('0x5'));var rp=require(_0x7357('0x6'));var fs=require('fs');var path=require(_0x7357('0x7'));var rimraf=require(_0x7357('0x8'));var config=require('../../config/environment');var attributes=require('./analyticFieldReport.attributes');module[_0x7357('0x9')]=function(_0x598179,_0x414957){return _0x598179['define'](_0x7357('0xa'),attributes,{'tableName':_0x7357('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x797c=['define','AnalyticFieldReport','analytics_report_fields','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./analyticFieldReport.attributes','exports'];(function(_0x20a6b8,_0x2dc8bb){var _0x55600e=function(_0x5ed8a9){while(--_0x5ed8a9){_0x20a6b8['push'](_0x20a6b8['shift']());}};_0x55600e(++_0x2dc8bb);}(_0x797c,0xb9));var _0xc797=function(_0x125ff8,_0x41925f){_0x125ff8=_0x125ff8-0x0;var _0x2d9ef=_0x797c[_0x125ff8];return _0x2d9ef;};'use strict';var _=require(_0xc797('0x0'));var util=require('util');var logger=require(_0xc797('0x1'))('api');var moment=require(_0xc797('0x2'));var BPromise=require(_0xc797('0x3'));var rp=require(_0xc797('0x4'));var fs=require('fs');var path=require(_0xc797('0x5'));var rimraf=require(_0xc797('0x6'));var config=require(_0xc797('0x7'));var attributes=require(_0xc797('0x8'));module[_0xc797('0x9')]=function(_0x429c18,_0x19f8ba){return _0x429c18[_0xc797('0xa')](_0xc797('0xb'),attributes,{'tableName':_0xc797('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticFieldReport/analyticFieldReport.rpc.js b/server/api/analyticFieldReport/analyticFieldReport.rpc.js
index fc9b090..09fbd9d 100644
--- a/server/api/analyticFieldReport/analyticFieldReport.rpc.js
+++ b/server/api/analyticFieldReport/analyticFieldReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x07d2=['../../config/utils','../../config/logger','rpc','jayson/promise','client','request','info','AnalyticFieldReport,\x20%s,\x20%s','request\x20sent','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb'];(function(_0x4654f,_0x582972){var _0x20864d=function(_0x374b4d){while(--_0x374b4d){_0x4654f['push'](_0x4654f['shift']());}};_0x20864d(++_0x582972);}(_0x07d2,0x135));var _0x207d=function(_0x2d08e3,_0x5661ec){_0x2d08e3=_0x2d08e3-0x0;var _0x2e8094=_0x07d2[_0x2d08e3];return _0x2e8094;};'use strict';var _=require(_0x207d('0x0'));var util=require(_0x207d('0x1'));var moment=require(_0x207d('0x2'));var BPromise=require('bluebird');var rs=require(_0x207d('0x3'));var fs=require('fs');var Redis=require(_0x207d('0x4'));var db=require(_0x207d('0x5'))['db'];var utils=require(_0x207d('0x6'));var logger=require(_0x207d('0x7'))(_0x207d('0x8'));var config=require('../../config/environment');var jayson=require(_0x207d('0x9'));var client=jayson[_0x207d('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x27b090,_0x4c5608,_0x1293cf){return new BPromise(function(_0x31e416,_0x338831){return client[_0x207d('0xb')](_0x27b090,_0x1293cf)['then'](function(_0xb2bdc5){logger[_0x207d('0xc')](_0x207d('0xd'),_0x4c5608,_0x207d('0xe'));logger['debug'](_0x207d('0xf'),_0x4c5608,_0x207d('0xe'),JSON[_0x207d('0x10')](_0xb2bdc5));if(_0xb2bdc5[_0x207d('0x11')]){if(_0xb2bdc5[_0x207d('0x11')]['code']===0x1f4){logger[_0x207d('0x11')](_0x207d('0xd'),_0x4c5608,_0xb2bdc5[_0x207d('0x11')][_0x207d('0x12')]);return _0x338831(_0xb2bdc5[_0x207d('0x11')][_0x207d('0x12')]);}logger[_0x207d('0x11')](_0x207d('0xd'),_0x4c5608,_0xb2bdc5[_0x207d('0x11')][_0x207d('0x12')]);return _0x31e416(_0xb2bdc5[_0x207d('0x11')][_0x207d('0x12')]);}else{logger[_0x207d('0xc')](_0x207d('0xd'),_0x4c5608,_0x207d('0xe'));_0x31e416(_0xb2bdc5[_0x207d('0x13')][_0x207d('0x12')]);}})[_0x207d('0x14')](function(_0x2597c8){logger[_0x207d('0x11')]('AnalyticFieldReport,\x20%s,\x20%s',_0x4c5608,_0x2597c8);_0x338831(_0x2597c8);});});}
\ No newline at end of file
+var _0xc1d5=['error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','info','AnalyticFieldReport,\x20%s,\x20%s','debug','AnalyticFieldReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x5cbace,_0x33943c){var _0x6de5b8=function(_0x5aae38){while(--_0x5aae38){_0x5cbace['push'](_0x5cbace['shift']());}};_0x6de5b8(++_0x33943c);}(_0xc1d5,0x94));var _0x5c1d=function(_0x139a4f,_0x5c6d66){_0x139a4f=_0x139a4f-0x0;var _0x46ed1c=_0xc1d5[_0x139a4f];return _0x46ed1c;};'use strict';var _=require(_0x5c1d('0x0'));var util=require(_0x5c1d('0x1'));var moment=require(_0x5c1d('0x2'));var BPromise=require(_0x5c1d('0x3'));var rs=require(_0x5c1d('0x4'));var fs=require('fs');var Redis=require(_0x5c1d('0x5'));var db=require(_0x5c1d('0x6'))['db'];var utils=require(_0x5c1d('0x7'));var logger=require(_0x5c1d('0x8'))('rpc');var config=require(_0x5c1d('0x9'));var jayson=require(_0x5c1d('0xa'));var client=jayson[_0x5c1d('0xb')][_0x5c1d('0xc')]({'port':0x232a});function respondWithRpcPromise(_0xcb63c8,_0x473c0b,_0x2727d3){return new BPromise(function(_0x3ca4fc,_0x2aa898){return client[_0x5c1d('0xd')](_0xcb63c8,_0x2727d3)['then'](function(_0x1c0f85){logger[_0x5c1d('0xe')](_0x5c1d('0xf'),_0x473c0b,'request\x20sent');logger[_0x5c1d('0x10')](_0x5c1d('0x11'),_0x473c0b,_0x5c1d('0x12'),JSON[_0x5c1d('0x13')](_0x1c0f85));if(_0x1c0f85['error']){if(_0x1c0f85[_0x5c1d('0x14')][_0x5c1d('0x15')]===0x1f4){logger[_0x5c1d('0x14')](_0x5c1d('0xf'),_0x473c0b,_0x1c0f85[_0x5c1d('0x14')]['message']);return _0x2aa898(_0x1c0f85[_0x5c1d('0x14')][_0x5c1d('0x16')]);}logger[_0x5c1d('0x14')](_0x5c1d('0xf'),_0x473c0b,_0x1c0f85[_0x5c1d('0x14')][_0x5c1d('0x16')]);return _0x3ca4fc(_0x1c0f85[_0x5c1d('0x14')][_0x5c1d('0x16')]);}else{logger[_0x5c1d('0xe')](_0x5c1d('0xf'),_0x473c0b,_0x5c1d('0x12'));_0x3ca4fc(_0x1c0f85[_0x5c1d('0x17')][_0x5c1d('0x16')]);}})['catch'](function(_0x2dcae1){logger['error'](_0x5c1d('0xf'),_0x473c0b,_0x2dcae1);_0x2aa898(_0x2dcae1);});});}
\ No newline at end of file
diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js
index 1ee4057..7e00e37 100644
--- a/server/api/analyticFieldReport/index.js
+++ b/server/api/analyticFieldReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7217=['put','update','delete','bulkDestroy','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','./analyticFieldReport.controller','get','isAuthenticated','index','/:id','show','post','create','/create_many','bulkCreate','/:id/create_many','addFields'];(function(_0xdc9b83,_0x446c70){var _0x52cd13=function(_0xe46c9d){while(--_0xe46c9d){_0xdc9b83['push'](_0xdc9b83['shift']());}};_0x52cd13(++_0x446c70);}(_0x7217,0x19e));var _0x7721=function(_0x29b609,_0x19d388){_0x29b609=_0x29b609-0x0;var _0x54c952=_0x7217[_0x29b609];return _0x54c952;};'use strict';var multer=require(_0x7721('0x0'));var util=require('util');var path=require(_0x7721('0x1'));var timeout=require(_0x7721('0x2'));var express=require(_0x7721('0x3'));var router=express[_0x7721('0x4')]();var auth=require(_0x7721('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x7721('0x6'));router[_0x7721('0x7')]('/',auth[_0x7721('0x8')](),controller[_0x7721('0x9')]);router[_0x7721('0x7')](_0x7721('0xa'),auth[_0x7721('0x8')](),controller[_0x7721('0xb')]);router[_0x7721('0xc')]('/',auth[_0x7721('0x8')](),controller[_0x7721('0xd')]);router[_0x7721('0xc')](_0x7721('0xe'),auth[_0x7721('0x8')](),controller[_0x7721('0xf')]);router['post'](_0x7721('0x10'),auth[_0x7721('0x8')](),controller[_0x7721('0x11')]);router[_0x7721('0x12')](_0x7721('0xa'),auth[_0x7721('0x8')](),controller[_0x7721('0x13')]);router[_0x7721('0x14')]('/destroy_many',auth[_0x7721('0x8')](),controller[_0x7721('0x15')]);router['delete'](_0x7721('0xa'),auth[_0x7721('0x8')](),controller[_0x7721('0x16')]);module[_0x7721('0x17')]=router;
\ No newline at end of file
+var _0x55ca=['/:id/create_many','addFields','put','update','delete','bulkDestroy','destroy','exports','multer','util','Router','../../components/auth/service','../../config/environment','./analyticFieldReport.controller','get','isAuthenticated','index','/:id','show','post','create','bulkCreate'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x55ca,0x126));var _0xa55c=function(_0x154192,_0x2d360f){_0x154192=_0x154192-0x0;var _0x3c2792=_0x55ca[_0x154192];return _0x3c2792;};'use strict';var multer=require(_0xa55c('0x0'));var util=require(_0xa55c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xa55c('0x2')]();var auth=require(_0xa55c('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xa55c('0x4'));var controller=require(_0xa55c('0x5'));router[_0xa55c('0x6')]('/',auth[_0xa55c('0x7')](),controller[_0xa55c('0x8')]);router[_0xa55c('0x6')](_0xa55c('0x9'),auth['isAuthenticated'](),controller[_0xa55c('0xa')]);router[_0xa55c('0xb')]('/',auth['isAuthenticated'](),controller[_0xa55c('0xc')]);router[_0xa55c('0xb')]('/create_many',auth['isAuthenticated'](),controller[_0xa55c('0xd')]);router[_0xa55c('0xb')](_0xa55c('0xe'),auth[_0xa55c('0x7')](),controller[_0xa55c('0xf')]);router[_0xa55c('0x10')](_0xa55c('0x9'),auth[_0xa55c('0x7')](),controller[_0xa55c('0x11')]);router[_0xa55c('0x12')]('/destroy_many',auth['isAuthenticated'](),controller[_0xa55c('0x13')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xa55c('0x14')]);module[_0xa55c('0x15')]=router;
\ No newline at end of file
diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js
index fefe755..6266d93 100644
--- a/server/api/analyticMetric/analyticMetric.attributes.js
+++ b/server/api/analyticMetric/analyticMetric.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x98dc=['STRING','name','sequelize','exports'];(function(_0x17c21e,_0x2abc24){var _0x4518a6=function(_0x50baff){while(--_0x50baff){_0x17c21e['push'](_0x17c21e['shift']());}};_0x4518a6(++_0x2abc24);}(_0x98dc,0x18a));var _0xc98d=function(_0x4048f4,_0x58f575){_0x4048f4=_0x4048f4-0x0;var _0x4f0706=_0x98dc[_0x4048f4];return _0x4f0706;};'use strict';var Sequelize=require(_0xc98d('0x0'));module[_0xc98d('0x1')]={'name':{'type':Sequelize[_0xc98d('0x2')],'allowNull':![],'unique':_0xc98d('0x3')},'table':{'type':Sequelize['STRING']},'metric':{'type':Sequelize['TEXT']},'description':{'type':Sequelize[_0xc98d('0x2')]}};
\ No newline at end of file
+var _0x2f68=['STRING','name','TEXT','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2f68,0x12b));var _0x82f6=function(_0x446ca0,_0x10bf91){_0x446ca0=_0x446ca0-0x0;var _0x2035b6=_0x2f68[_0x446ca0];return _0x2035b6;};'use strict';var Sequelize=require('sequelize');module[_0x82f6('0x0')]={'name':{'type':Sequelize[_0x82f6('0x1')],'allowNull':![],'unique':_0x82f6('0x2')},'table':{'type':Sequelize[_0x82f6('0x1')]},'metric':{'type':Sequelize[_0x82f6('0x3')]},'description':{'type':Sequelize['STRING']}};
\ No newline at end of file
diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js
index 0dda05e..999f13d 100644
--- a/server/api/analyticMetric/analyticMetric.controller.js
+++ b/server/api/analyticMetric/analyticMetric.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xbbe3=['options','findAll','rows','catch','show','keys','fields','find','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','html-pdf','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','update','then','destroy','get','Metrics','UserProfileResource','error','stack','name','send','map','AnalyticMetric','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','length','hasOwnProperty','order','pick','where','merge','filter'];(function(_0x2a5a5a,_0x139734){var _0x475fec=function(_0x2ac94f){while(--_0x2ac94f){_0x2a5a5a['push'](_0x2a5a5a['shift']());}};_0x475fec(++_0x139734);}(_0xbbe3,0x64));var _0x3bbe=function(_0x464ba0,_0x697f65){_0x464ba0=_0x464ba0-0x0;var _0xd022e8=_0xbbe3[_0x464ba0];return _0xd022e8;};'use strict';var pdf=require(_0x3bbe('0x0'));var emlformat=require(_0x3bbe('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x3bbe('0x2'));var jsonpatch=require(_0x3bbe('0x3'));var rp=require(_0x3bbe('0x4'));var moment=require('moment');var BPromise=require(_0x3bbe('0x5'));var Mustache=require(_0x3bbe('0x6'));var util=require(_0x3bbe('0x7'));var path=require(_0x3bbe('0x8'));var sox=require(_0x3bbe('0x9'));var csv=require(_0x3bbe('0xa'));var ejs=require(_0x3bbe('0xb'));var fs=require('fs');var _=require(_0x3bbe('0xc'));var squel=require(_0x3bbe('0xd'));var crypto=require(_0x3bbe('0xe'));var jsforce=require(_0x3bbe('0xf'));var deskjs=require('desk.js');var toCsv=require(_0x3bbe('0xa'));var querystring=require(_0x3bbe('0x10'));var Papa=require(_0x3bbe('0x11'));var Redis=require(_0x3bbe('0x12'));var authService=require(_0x3bbe('0x13'));var qs=require(_0x3bbe('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3bbe('0x15'));var logger=require(_0x3bbe('0x16'))(_0x3bbe('0x17'));var utils=require(_0x3bbe('0x18'));var config=require('../../config/environment');var db=require(_0x3bbe('0x19'))['db'];function respondWithStatusCode(_0x35b7b4,_0x11390f){_0x11390f=_0x11390f||0xcc;return function(_0x8fcb3e){if(_0x8fcb3e){return _0x35b7b4[_0x3bbe('0x1a')](_0x11390f);}return _0x35b7b4[_0x3bbe('0x1b')](_0x11390f)[_0x3bbe('0x1c')]();};}function respondWithResult(_0x348031,_0x2a6b4e){_0x2a6b4e=_0x2a6b4e||0xc8;return function(_0x343ddf){if(_0x343ddf){return _0x348031['status'](_0x2a6b4e)[_0x3bbe('0x1d')](_0x343ddf);}};}function respondWithFilteredResult(_0x22d5ba,_0x512257){return function(_0x298d98){if(_0x298d98){var _0x510fe0=_0x298d98[_0x3bbe('0x1e')],_0x8a2b3=_0x512257[_0x3bbe('0x1f')],_0x1bdcb1=_0x512257[_0x3bbe('0x1f')]+_0x512257[_0x3bbe('0x20')],_0x4e54eb;if(_0x1bdcb1>=_0x510fe0){_0x1bdcb1=_0x510fe0;_0x4e54eb=0xc8;}else{_0x4e54eb=0xce;}_0x22d5ba[_0x3bbe('0x1b')](_0x4e54eb);return _0x22d5ba[_0x3bbe('0x21')](_0x3bbe('0x22'),_0x8a2b3+'-'+_0x1bdcb1+'/'+_0x510fe0)[_0x3bbe('0x1d')](_0x298d98);}return null;};}function patchUpdates(_0x5610af){return function(_0x44ec81){try{jsonpatch[_0x3bbe('0x23')](_0x44ec81,_0x5610af,!![]);}catch(_0x55964d){return BPromise['reject'](_0x55964d);}return _0x44ec81['save']();};}function saveUpdates(_0x23c4d0,_0x6e8c93){return function(_0x3c7ca0){if(_0x3c7ca0){return _0x3c7ca0[_0x3bbe('0x24')](_0x23c4d0)[_0x3bbe('0x25')](function(_0x3cef98){return _0x3cef98;});}return null;};}function removeEntity(_0x312d31,_0x414ab9){return function(_0x4b26dc){if(_0x4b26dc){return _0x4b26dc[_0x3bbe('0x26')]()[_0x3bbe('0x25')](function(){var _0x5d26bb=_0x4b26dc[_0x3bbe('0x27')]({'plain':!![]});var _0x3e746f=_0x3bbe('0x28');return db[_0x3bbe('0x29')][_0x3bbe('0x26')]({'where':{'type':_0x3e746f,'resourceId':_0x5d26bb['id']}})[_0x3bbe('0x25')](function(){return _0x4b26dc;});})[_0x3bbe('0x25')](function(){_0x312d31[_0x3bbe('0x1b')](0xcc)[_0x3bbe('0x1c')]();});}};}function handleEntityNotFound(_0x2b3784,_0x502236){return function(_0x1afeea){if(!_0x1afeea){_0x2b3784['sendStatus'](0x194);}return _0x1afeea;};}function handleError(_0x1582dd,_0x4f21b9){_0x4f21b9=_0x4f21b9||0x1f4;return function(_0xc6edfd){logger[_0x3bbe('0x2a')](_0xc6edfd[_0x3bbe('0x2b')]);if(_0xc6edfd[_0x3bbe('0x2c')]){delete _0xc6edfd[_0x3bbe('0x2c')];}_0x1582dd[_0x3bbe('0x1b')](_0x4f21b9)[_0x3bbe('0x2d')](_0xc6edfd);};}exports['index']=function(_0x55f8fc,_0x416050){var _0x4f1406={},_0x38c353={},_0x33b00b={'count':0x0,'rows':[]};var _0x505ff9=_[_0x3bbe('0x2e')](db[_0x3bbe('0x2f')][_0x3bbe('0x30')],function(_0x30cb72){return{'name':_0x30cb72[_0x3bbe('0x31')],'type':_0x30cb72[_0x3bbe('0x32')][_0x3bbe('0x33')]};});_0x38c353[_0x3bbe('0x34')]=_[_0x3bbe('0x2e')](_0x505ff9,_0x3bbe('0x2c'));_0x38c353['query']=_['keys'](_0x55f8fc[_0x3bbe('0x35')]);_0x38c353[_0x3bbe('0x36')]=_[_0x3bbe('0x37')](_0x38c353['model'],_0x38c353['query']);_0x4f1406[_0x3bbe('0x38')]=_[_0x3bbe('0x37')](_0x38c353['model'],qs['fields'](_0x55f8fc[_0x3bbe('0x35')]['fields']));_0x4f1406[_0x3bbe('0x38')]=_0x4f1406[_0x3bbe('0x38')][_0x3bbe('0x39')]?_0x4f1406[_0x3bbe('0x38')]:_0x38c353['model'];if(!_0x55f8fc[_0x3bbe('0x35')][_0x3bbe('0x3a')]('nolimit')){_0x4f1406['limit']=qs['limit'](_0x55f8fc[_0x3bbe('0x35')]['limit']);_0x4f1406['offset']=qs['offset'](_0x55f8fc[_0x3bbe('0x35')][_0x3bbe('0x1f')]);}_0x4f1406[_0x3bbe('0x3b')]=qs['sort'](_0x55f8fc[_0x3bbe('0x35')]['sort']);_0x4f1406['where']=qs[_0x3bbe('0x36')](_[_0x3bbe('0x3c')](_0x55f8fc[_0x3bbe('0x35')],_0x38c353['filters']));if(_0x55f8fc[_0x3bbe('0x35')]['filter']){_0x4f1406[_0x3bbe('0x3d')]=_[_0x3bbe('0x3e')](_0x4f1406[_0x3bbe('0x3d')],{'$or':_[_0x3bbe('0x2e')](_0x505ff9,function(_0x43c24a){if(_0x43c24a[_0x3bbe('0x32')]!=='VIRTUAL'){var _0x403e94={};_0x403e94[_0x43c24a['name']]={'$like':'%'+_0x55f8fc[_0x3bbe('0x35')][_0x3bbe('0x3f')]+'%'};return _0x403e94;}})});}_0x4f1406=_[_0x3bbe('0x3e')]({},_0x4f1406,_0x55f8fc[_0x3bbe('0x40')]);var _0x3143f1={'where':_0x4f1406[_0x3bbe('0x3d')]};return db[_0x3bbe('0x2f')][_0x3bbe('0x1e')](_0x3143f1)[_0x3bbe('0x25')](function(_0x4afe6a){_0x33b00b['count']=_0x4afe6a;if(_0x55f8fc['query']['includeAll']){_0x4f1406['include']=[{'all':!![]}];}return db[_0x3bbe('0x2f')][_0x3bbe('0x41')](_0x4f1406);})[_0x3bbe('0x25')](function(_0x5df2fc){_0x33b00b[_0x3bbe('0x42')]=_0x5df2fc;return _0x33b00b;})[_0x3bbe('0x25')](respondWithFilteredResult(_0x416050,_0x4f1406))[_0x3bbe('0x43')](handleError(_0x416050,null));};exports[_0x3bbe('0x44')]=function(_0x55987e,_0xfc6d33){var _0x472c52={'raw':!![],'where':{'id':_0x55987e['params']['id']}},_0x2a1a7b={};_0x2a1a7b[_0x3bbe('0x34')]=_[_0x3bbe('0x45')](db[_0x3bbe('0x2f')]['rawAttributes']);_0x2a1a7b[_0x3bbe('0x35')]=_['keys'](_0x55987e[_0x3bbe('0x35')]);_0x2a1a7b[_0x3bbe('0x36')]=_[_0x3bbe('0x37')](_0x2a1a7b[_0x3bbe('0x34')],_0x2a1a7b[_0x3bbe('0x35')]);_0x472c52[_0x3bbe('0x38')]=_['intersection'](_0x2a1a7b[_0x3bbe('0x34')],qs['fields'](_0x55987e['query'][_0x3bbe('0x46')]));_0x472c52['attributes']=_0x472c52[_0x3bbe('0x38')][_0x3bbe('0x39')]?_0x472c52[_0x3bbe('0x38')]:_0x2a1a7b[_0x3bbe('0x34')];if(_0x55987e[_0x3bbe('0x35')]['includeAll']){_0x472c52['include']=[{'all':!![]}];}_0x472c52=_[_0x3bbe('0x3e')]({},_0x472c52,_0x55987e[_0x3bbe('0x40')]);return db[_0x3bbe('0x2f')][_0x3bbe('0x47')](_0x472c52)[_0x3bbe('0x25')](handleEntityNotFound(_0xfc6d33,null))[_0x3bbe('0x25')](respondWithResult(_0xfc6d33,null))['catch'](handleError(_0xfc6d33,null));};exports[_0x3bbe('0x48')]=function(_0x30610e,_0x4f0a50){return db[_0x3bbe('0x2f')][_0x3bbe('0x48')](_0x30610e[_0x3bbe('0x49')],{})[_0x3bbe('0x25')](function(_0x489192){var _0x393fbf=_0x30610e[_0x3bbe('0x4a')]['get']({'plain':!![]});if(!_0x393fbf)throw new Error(_0x3bbe('0x4b'));if(_0x393fbf[_0x3bbe('0x4c')]===_0x3bbe('0x4a')){var _0x438d9b=_0x489192[_0x3bbe('0x27')]({'plain':!![]});var _0x1f51b3=_0x3bbe('0x28');return db[_0x3bbe('0x4d')][_0x3bbe('0x47')]({'where':{'name':_0x1f51b3,'userProfileId':_0x393fbf[_0x3bbe('0x4e')]},'raw':!![]})[_0x3bbe('0x25')](function(_0x46e8c8){if(_0x46e8c8&&_0x46e8c8[_0x3bbe('0x4f')]===0x0){return db[_0x3bbe('0x29')]['create']({'name':_0x438d9b[_0x3bbe('0x2c')],'resourceId':_0x438d9b['id'],'type':_0x46e8c8[_0x3bbe('0x2c')],'sectionId':_0x46e8c8['id']},{})[_0x3bbe('0x25')](function(){return _0x489192;});}else{return _0x489192;}})[_0x3bbe('0x43')](function(_0x40f722){logger[_0x3bbe('0x2a')](_0x3bbe('0x50'),_0x40f722);throw _0x40f722;});}return _0x489192;})[_0x3bbe('0x25')](respondWithResult(_0x4f0a50,0xc9))['catch'](handleError(_0x4f0a50,null));};exports['update']=function(_0x25c861,_0x57c747){if(_0x25c861[_0x3bbe('0x49')]['id']){delete _0x25c861[_0x3bbe('0x49')]['id'];}return db[_0x3bbe('0x2f')][_0x3bbe('0x47')]({'where':{'id':_0x25c861[_0x3bbe('0x51')]['id']}})[_0x3bbe('0x25')](handleEntityNotFound(_0x57c747,null))[_0x3bbe('0x25')](saveUpdates(_0x25c861['body'],null))[_0x3bbe('0x25')](respondWithResult(_0x57c747,null))[_0x3bbe('0x43')](handleError(_0x57c747,null));};exports['destroy']=function(_0x2dda53,_0x186e86){return db[_0x3bbe('0x2f')][_0x3bbe('0x47')]({'where':{'id':_0x2dda53['params']['id']}})[_0x3bbe('0x25')](handleEntityNotFound(_0x186e86,null))[_0x3bbe('0x25')](removeEntity(_0x186e86,null))[_0x3bbe('0x43')](handleError(_0x186e86,null));};
\ No newline at end of file
+var _0xd2c7=['options','findAll','rows','catch','show','params','rawAttributes','fields','includeAll','include','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','Metrics','UserProfileSection','autoAssociation','name','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','find','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','crypto','jsforce','desk.js','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','end','count','offset','limit','Content-Range','apply','reject','save','update','then','destroy','get','UserProfileResource','error','stack','index','map','AnalyticMetric','type','key','model','query','keys','filters','intersection','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','merge'];(function(_0x409d2b,_0x147a84){var _0x37a5c6=function(_0x584995){while(--_0x584995){_0x409d2b['push'](_0x409d2b['shift']());}};_0x37a5c6(++_0x147a84);}(_0xd2c7,0x1af));var _0x7d2c=function(_0x64fb03,_0x2efe40){_0x64fb03=_0x64fb03-0x0;var _0x55d008=_0xd2c7[_0x64fb03];return _0x55d008;};'use strict';var pdf=require(_0x7d2c('0x0'));var emlformat=require(_0x7d2c('0x1'));var rimraf=require(_0x7d2c('0x2'));var zipdir=require(_0x7d2c('0x3'));var jsonpatch=require(_0x7d2c('0x4'));var rp=require(_0x7d2c('0x5'));var moment=require(_0x7d2c('0x6'));var BPromise=require(_0x7d2c('0x7'));var Mustache=require(_0x7d2c('0x8'));var util=require(_0x7d2c('0x9'));var path=require(_0x7d2c('0xa'));var sox=require(_0x7d2c('0xb'));var csv=require(_0x7d2c('0xc'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x7d2c('0xd'));var jsforce=require(_0x7d2c('0xe'));var deskjs=require(_0x7d2c('0xf'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x7d2c('0x10'));var qs=require('../../components/parsers/qs');var as=require(_0x7d2c('0x11'));var hardwareService=require(_0x7d2c('0x12'));var logger=require(_0x7d2c('0x13'))(_0x7d2c('0x14'));var utils=require('../../config/utils');var config=require(_0x7d2c('0x15'));var db=require(_0x7d2c('0x16'))['db'];function respondWithStatusCode(_0x5c3571,_0x506b9a){_0x506b9a=_0x506b9a||0xcc;return function(_0x4bb5da){if(_0x4bb5da){return _0x5c3571[_0x7d2c('0x17')](_0x506b9a);}return _0x5c3571[_0x7d2c('0x18')](_0x506b9a)[_0x7d2c('0x19')]();};}function respondWithResult(_0x381525,_0x4325e8){_0x4325e8=_0x4325e8||0xc8;return function(_0x142ff9){if(_0x142ff9){return _0x381525['status'](_0x4325e8)['json'](_0x142ff9);}};}function respondWithFilteredResult(_0x1679fd,_0x19a246){return function(_0x49e3d3){if(_0x49e3d3){var _0x458a9b=_0x49e3d3[_0x7d2c('0x1a')],_0x2b578f=_0x19a246[_0x7d2c('0x1b')],_0x4f91a3=_0x19a246[_0x7d2c('0x1b')]+_0x19a246[_0x7d2c('0x1c')],_0x55f4aa;if(_0x4f91a3>=_0x458a9b){_0x4f91a3=_0x458a9b;_0x55f4aa=0xc8;}else{_0x55f4aa=0xce;}_0x1679fd['status'](_0x55f4aa);return _0x1679fd['set'](_0x7d2c('0x1d'),_0x2b578f+'-'+_0x4f91a3+'/'+_0x458a9b)['json'](_0x49e3d3);}return null;};}function patchUpdates(_0x856ab4){return function(_0xb18d54){try{jsonpatch[_0x7d2c('0x1e')](_0xb18d54,_0x856ab4,!![]);}catch(_0x53dae9){return BPromise[_0x7d2c('0x1f')](_0x53dae9);}return _0xb18d54[_0x7d2c('0x20')]();};}function saveUpdates(_0x44138c,_0x5d6ab9){return function(_0x42a2bf){if(_0x42a2bf){return _0x42a2bf[_0x7d2c('0x21')](_0x44138c)[_0x7d2c('0x22')](function(_0x250659){return _0x250659;});}return null;};}function removeEntity(_0x85484b,_0x41ce79){return function(_0x5816bc){if(_0x5816bc){return _0x5816bc[_0x7d2c('0x23')]()[_0x7d2c('0x22')](function(){var _0x49f275=_0x5816bc[_0x7d2c('0x24')]({'plain':!![]});var _0x9a7226='Metrics';return db[_0x7d2c('0x25')]['destroy']({'where':{'type':_0x9a7226,'resourceId':_0x49f275['id']}})[_0x7d2c('0x22')](function(){return _0x5816bc;});})['then'](function(){_0x85484b[_0x7d2c('0x18')](0xcc)[_0x7d2c('0x19')]();});}};}function handleEntityNotFound(_0x434314,_0x212a4f){return function(_0x1d4277){if(!_0x1d4277){_0x434314[_0x7d2c('0x17')](0x194);}return _0x1d4277;};}function handleError(_0x497af2,_0x1f5292){_0x1f5292=_0x1f5292||0x1f4;return function(_0x572c82){logger[_0x7d2c('0x26')](_0x572c82[_0x7d2c('0x27')]);if(_0x572c82['name']){delete _0x572c82['name'];}_0x497af2[_0x7d2c('0x18')](_0x1f5292)['send'](_0x572c82);};}exports[_0x7d2c('0x28')]=function(_0x3fe062,_0x1c4fc8){var _0x135257={},_0x53a064={},_0xf293b2={'count':0x0,'rows':[]};var _0x82f7c6=_[_0x7d2c('0x29')](db[_0x7d2c('0x2a')]['rawAttributes'],function(_0x9ab396){return{'name':_0x9ab396['fieldName'],'type':_0x9ab396[_0x7d2c('0x2b')][_0x7d2c('0x2c')]};});_0x53a064[_0x7d2c('0x2d')]=_[_0x7d2c('0x29')](_0x82f7c6,'name');_0x53a064[_0x7d2c('0x2e')]=_[_0x7d2c('0x2f')](_0x3fe062[_0x7d2c('0x2e')]);_0x53a064[_0x7d2c('0x30')]=_[_0x7d2c('0x31')](_0x53a064[_0x7d2c('0x2d')],_0x53a064[_0x7d2c('0x2e')]);_0x135257[_0x7d2c('0x32')]=_[_0x7d2c('0x31')](_0x53a064[_0x7d2c('0x2d')],qs['fields'](_0x3fe062[_0x7d2c('0x2e')]['fields']));_0x135257[_0x7d2c('0x32')]=_0x135257['attributes'][_0x7d2c('0x33')]?_0x135257[_0x7d2c('0x32')]:_0x53a064['model'];if(!_0x3fe062['query'][_0x7d2c('0x34')](_0x7d2c('0x35'))){_0x135257['limit']=qs[_0x7d2c('0x1c')](_0x3fe062['query'][_0x7d2c('0x1c')]);_0x135257[_0x7d2c('0x1b')]=qs[_0x7d2c('0x1b')](_0x3fe062[_0x7d2c('0x2e')][_0x7d2c('0x1b')]);}_0x135257[_0x7d2c('0x36')]=qs[_0x7d2c('0x37')](_0x3fe062[_0x7d2c('0x2e')][_0x7d2c('0x37')]);_0x135257[_0x7d2c('0x38')]=qs[_0x7d2c('0x30')](_[_0x7d2c('0x39')](_0x3fe062[_0x7d2c('0x2e')],_0x53a064[_0x7d2c('0x30')]));if(_0x3fe062[_0x7d2c('0x2e')][_0x7d2c('0x3a')]){_0x135257['where']=_['merge'](_0x135257[_0x7d2c('0x38')],{'$or':_[_0x7d2c('0x29')](_0x82f7c6,function(_0x4c3222){if(_0x4c3222['type']!==_0x7d2c('0x3b')){var _0x4eda91={};_0x4eda91[_0x4c3222['name']]={'$like':'%'+_0x3fe062[_0x7d2c('0x2e')][_0x7d2c('0x3a')]+'%'};return _0x4eda91;}})});}_0x135257=_[_0x7d2c('0x3c')]({},_0x135257,_0x3fe062[_0x7d2c('0x3d')]);var _0xa6cbda={'where':_0x135257[_0x7d2c('0x38')]};return db['AnalyticMetric'][_0x7d2c('0x1a')](_0xa6cbda)['then'](function(_0x3f94c2){_0xf293b2['count']=_0x3f94c2;if(_0x3fe062[_0x7d2c('0x2e')]['includeAll']){_0x135257['include']=[{'all':!![]}];}return db['AnalyticMetric'][_0x7d2c('0x3e')](_0x135257);})['then'](function(_0x5c4b9f){_0xf293b2[_0x7d2c('0x3f')]=_0x5c4b9f;return _0xf293b2;})[_0x7d2c('0x22')](respondWithFilteredResult(_0x1c4fc8,_0x135257))[_0x7d2c('0x40')](handleError(_0x1c4fc8,null));};exports[_0x7d2c('0x41')]=function(_0x32f937,_0x4e0a77){var _0x4882d9={'raw':!![],'where':{'id':_0x32f937[_0x7d2c('0x42')]['id']}},_0x39b67b={};_0x39b67b['model']=_[_0x7d2c('0x2f')](db[_0x7d2c('0x2a')][_0x7d2c('0x43')]);_0x39b67b[_0x7d2c('0x2e')]=_[_0x7d2c('0x2f')](_0x32f937[_0x7d2c('0x2e')]);_0x39b67b[_0x7d2c('0x30')]=_['intersection'](_0x39b67b['model'],_0x39b67b[_0x7d2c('0x2e')]);_0x4882d9[_0x7d2c('0x32')]=_[_0x7d2c('0x31')](_0x39b67b[_0x7d2c('0x2d')],qs[_0x7d2c('0x44')](_0x32f937[_0x7d2c('0x2e')][_0x7d2c('0x44')]));_0x4882d9[_0x7d2c('0x32')]=_0x4882d9['attributes'][_0x7d2c('0x33')]?_0x4882d9[_0x7d2c('0x32')]:_0x39b67b[_0x7d2c('0x2d')];if(_0x32f937[_0x7d2c('0x2e')][_0x7d2c('0x45')]){_0x4882d9[_0x7d2c('0x46')]=[{'all':!![]}];}_0x4882d9=_[_0x7d2c('0x3c')]({},_0x4882d9,_0x32f937[_0x7d2c('0x3d')]);return db[_0x7d2c('0x2a')]['find'](_0x4882d9)[_0x7d2c('0x22')](handleEntityNotFound(_0x4e0a77,null))['then'](respondWithResult(_0x4e0a77,null))[_0x7d2c('0x40')](handleError(_0x4e0a77,null));};exports[_0x7d2c('0x47')]=function(_0x5d11cb,_0x45a7c9){return db[_0x7d2c('0x2a')][_0x7d2c('0x47')](_0x5d11cb[_0x7d2c('0x48')],{})['then'](function(_0x813ec4){var _0x8bb111=_0x5d11cb[_0x7d2c('0x49')][_0x7d2c('0x24')]({'plain':!![]});if(!_0x8bb111)throw new Error(_0x7d2c('0x4a'));if(_0x8bb111[_0x7d2c('0x4b')]===_0x7d2c('0x49')){var _0x4fff32=_0x813ec4[_0x7d2c('0x24')]({'plain':!![]});var _0x4d8f48=_0x7d2c('0x4c');return db[_0x7d2c('0x4d')]['find']({'where':{'name':_0x4d8f48,'userProfileId':_0x8bb111['userProfileId']},'raw':!![]})['then'](function(_0x211e7c){if(_0x211e7c&&_0x211e7c[_0x7d2c('0x4e')]===0x0){return db[_0x7d2c('0x25')][_0x7d2c('0x47')]({'name':_0x4fff32[_0x7d2c('0x4f')],'resourceId':_0x4fff32['id'],'type':_0x211e7c[_0x7d2c('0x4f')],'sectionId':_0x211e7c['id']},{})[_0x7d2c('0x22')](function(){return _0x813ec4;});}else{return _0x813ec4;}})['catch'](function(_0x143462){logger[_0x7d2c('0x26')](_0x7d2c('0x50'),_0x143462);throw _0x143462;});}return _0x813ec4;})[_0x7d2c('0x22')](respondWithResult(_0x45a7c9,0xc9))[_0x7d2c('0x40')](handleError(_0x45a7c9,null));};exports[_0x7d2c('0x21')]=function(_0x233ded,_0xe4db1f){if(_0x233ded['body']['id']){delete _0x233ded[_0x7d2c('0x48')]['id'];}return db[_0x7d2c('0x2a')][_0x7d2c('0x51')]({'where':{'id':_0x233ded[_0x7d2c('0x42')]['id']}})[_0x7d2c('0x22')](handleEntityNotFound(_0xe4db1f,null))[_0x7d2c('0x22')](saveUpdates(_0x233ded[_0x7d2c('0x48')],null))['then'](respondWithResult(_0xe4db1f,null))[_0x7d2c('0x40')](handleError(_0xe4db1f,null));};exports[_0x7d2c('0x23')]=function(_0x1fd29a,_0x2de04b){return db[_0x7d2c('0x2a')]['find']({'where':{'id':_0x1fd29a['params']['id']}})[_0x7d2c('0x22')](handleEntityNotFound(_0x2de04b,null))[_0x7d2c('0x22')](removeEntity(_0x2de04b,null))[_0x7d2c('0x40')](handleError(_0x2de04b,null));};
\ No newline at end of file
diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js
index 1b0396a..b924be5 100644
--- a/server/api/analyticMetric/analyticMetric.model.js
+++ b/server/api/analyticMetric/analyticMetric.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xe84e=['../../config/logger','api','moment','bluebird','path','rimraf','define','lodash','util'];(function(_0xc554a1,_0x3a43c5){var _0x336c82=function(_0x1bbe03){while(--_0x1bbe03){_0xc554a1['push'](_0xc554a1['shift']());}};_0x336c82(++_0x3a43c5);}(_0xe84e,0x73));var _0xee84=function(_0xab0515,_0x4b8ab2){_0xab0515=_0xab0515-0x0;var _0x443d59=_0xe84e[_0xab0515];return _0x443d59;};'use strict';var _=require(_0xee84('0x0'));var util=require(_0xee84('0x1'));var logger=require(_0xee84('0x2'))(_0xee84('0x3'));var moment=require(_0xee84('0x4'));var BPromise=require(_0xee84('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xee84('0x6'));var rimraf=require(_0xee84('0x7'));var config=require('../../config/environment');var attributes=require('./analyticMetric.attributes');module['exports']=function(_0x458e86,_0x308bff){return _0x458e86[_0xee84('0x8')]('AnalyticMetric',attributes,{'tableName':'analytics_metrics','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xcc65=['./analyticMetric.attributes','exports','AnalyticMetric','analytics_metrics','lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf'];(function(_0x3a485b,_0x1a1b38){var _0x379adc=function(_0x182efd){while(--_0x182efd){_0x3a485b['push'](_0x3a485b['shift']());}};_0x379adc(++_0x1a1b38);}(_0xcc65,0xf4));var _0x5cc6=function(_0x22490e,_0x4935bd){_0x22490e=_0x22490e-0x0;var _0x5b6459=_0xcc65[_0x22490e];return _0x5b6459;};'use strict';var _=require(_0x5cc6('0x0'));var util=require(_0x5cc6('0x1'));var logger=require(_0x5cc6('0x2'))(_0x5cc6('0x3'));var moment=require(_0x5cc6('0x4'));var BPromise=require(_0x5cc6('0x5'));var rp=require(_0x5cc6('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5cc6('0x7'));var config=require('../../config/environment');var attributes=require(_0x5cc6('0x8'));module[_0x5cc6('0x9')]=function(_0x2a9853,_0x38859e){return _0x2a9853['define'](_0x5cc6('0xa'),attributes,{'tableName':_0x5cc6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticMetric/analyticMetric.rpc.js b/server/api/analyticMetric/analyticMetric.rpc.js
index 5e693e5..87a9fc1 100644
--- a/server/api/analyticMetric/analyticMetric.rpc.js
+++ b/server/api/analyticMetric/analyticMetric.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x68b3=['info','AnalyticMetric,\x20%s,\x20%s','debug','AnalyticMetric,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x231e67,_0x291499){var _0x35066f=function(_0x3a7775){while(--_0x3a7775){_0x231e67['push'](_0x231e67['shift']());}};_0x35066f(++_0x291499);}(_0x68b3,0x112));var _0x368b=function(_0x32101d,_0x24d9ad){_0x32101d=_0x32101d-0x0;var _0x263ede=_0x68b3[_0x32101d];return _0x263ede;};'use strict';var _=require(_0x368b('0x0'));var util=require(_0x368b('0x1'));var moment=require(_0x368b('0x2'));var BPromise=require(_0x368b('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x368b('0x4'));var db=require(_0x368b('0x5'))['db'];var utils=require(_0x368b('0x6'));var logger=require(_0x368b('0x7'))(_0x368b('0x8'));var config=require(_0x368b('0x9'));var jayson=require(_0x368b('0xa'));var client=jayson[_0x368b('0xb')][_0x368b('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x44f882,_0xdec1b,_0x115a9c){return new BPromise(function(_0x291096,_0xf4e1b){return client[_0x368b('0xd')](_0x44f882,_0x115a9c)['then'](function(_0x55b4d7){logger[_0x368b('0xe')](_0x368b('0xf'),_0xdec1b,'request\x20sent');logger[_0x368b('0x10')](_0x368b('0x11'),_0xdec1b,_0x368b('0x12'),JSON['stringify'](_0x55b4d7));if(_0x55b4d7[_0x368b('0x13')]){if(_0x55b4d7[_0x368b('0x13')][_0x368b('0x14')]===0x1f4){logger[_0x368b('0x13')]('AnalyticMetric,\x20%s,\x20%s',_0xdec1b,_0x55b4d7[_0x368b('0x13')]['message']);return _0xf4e1b(_0x55b4d7[_0x368b('0x13')][_0x368b('0x15')]);}logger[_0x368b('0x13')](_0x368b('0xf'),_0xdec1b,_0x55b4d7['error'][_0x368b('0x15')]);return _0x291096(_0x55b4d7[_0x368b('0x13')]['message']);}else{logger['info']('AnalyticMetric,\x20%s,\x20%s',_0xdec1b,_0x368b('0x12'));_0x291096(_0x55b4d7[_0x368b('0x16')]['message']);}})[_0x368b('0x17')](function(_0x2b214c){logger[_0x368b('0x13')]('AnalyticMetric,\x20%s,\x20%s',_0xdec1b,_0x2b214c);_0xf4e1b(_0x2b214c);});});}
\ No newline at end of file
+var _0xa666=['AnalyticMetric,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','http','request','then','info','AnalyticMetric,\x20%s,\x20%s','request\x20sent'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa666,0xce));var _0x6a66=function(_0x4dd2d0,_0x21a9d0){_0x4dd2d0=_0x4dd2d0-0x0;var _0x36f7d1=_0xa666[_0x4dd2d0];return _0x36f7d1;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x6a66('0x0'));var BPromise=require(_0x6a66('0x1'));var rs=require(_0x6a66('0x2'));var fs=require('fs');var Redis=require(_0x6a66('0x3'));var db=require(_0x6a66('0x4'))['db'];var utils=require(_0x6a66('0x5'));var logger=require(_0x6a66('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0x6a66('0x7'));var client=jayson['client'][_0x6a66('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x5c9343,_0x28184a,_0x3d93ed){return new BPromise(function(_0x51b4c0,_0x44747a){return client[_0x6a66('0x9')](_0x5c9343,_0x3d93ed)[_0x6a66('0xa')](function(_0x4e6b99){logger[_0x6a66('0xb')](_0x6a66('0xc'),_0x28184a,_0x6a66('0xd'));logger['debug'](_0x6a66('0xe'),_0x28184a,_0x6a66('0xd'),JSON[_0x6a66('0xf')](_0x4e6b99));if(_0x4e6b99[_0x6a66('0x10')]){if(_0x4e6b99['error']['code']===0x1f4){logger[_0x6a66('0x10')](_0x6a66('0xc'),_0x28184a,_0x4e6b99[_0x6a66('0x10')]['message']);return _0x44747a(_0x4e6b99['error'][_0x6a66('0x11')]);}logger[_0x6a66('0x10')](_0x6a66('0xc'),_0x28184a,_0x4e6b99[_0x6a66('0x10')][_0x6a66('0x11')]);return _0x51b4c0(_0x4e6b99[_0x6a66('0x10')][_0x6a66('0x11')]);}else{logger['info'](_0x6a66('0xc'),_0x28184a,'request\x20sent');_0x51b4c0(_0x4e6b99[_0x6a66('0x12')][_0x6a66('0x11')]);}})[_0x6a66('0x13')](function(_0xd1105a){logger[_0x6a66('0x10')](_0x6a66('0xc'),_0x28184a,_0xd1105a);_0x44747a(_0xd1105a);});});}
\ No newline at end of file
diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js
index 15e1051..c58de0f 100644
--- a/server/api/analyticMetric/index.js
+++ b/server/api/analyticMetric/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2675=['post','put','update','delete','exports','multer','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x392695,_0x12403e){var _0x1d612a=function(_0x1f5587){while(--_0x1f5587){_0x392695['push'](_0x392695['shift']());}};_0x1d612a(++_0x12403e);}(_0x2675,0x75));var _0x5267=function(_0x253929,_0x255d8e){_0x253929=_0x253929-0x0;var _0x582fe2=_0x2675[_0x253929];return _0x582fe2;};'use strict';var multer=require(_0x5267('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5267('0x1'));var router=express[_0x5267('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x5267('0x3'));var config=require(_0x5267('0x4'));var controller=require('./analyticMetric.controller');router[_0x5267('0x5')]('/',auth[_0x5267('0x6')](),controller[_0x5267('0x7')]);router[_0x5267('0x5')](_0x5267('0x8'),auth[_0x5267('0x6')](),controller['show']);router[_0x5267('0x9')]('/',auth[_0x5267('0x6')](),controller['create']);router[_0x5267('0xa')]('/:id',auth[_0x5267('0x6')](),controller[_0x5267('0xb')]);router[_0x5267('0xc')]('/:id',auth[_0x5267('0x6')](),controller['destroy']);module[_0x5267('0xd')]=router;
\ No newline at end of file
+var _0x53ec=['post','create','put','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','./analyticMetric.controller','get','index','/:id','isAuthenticated'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x53ec,0x192));var _0xc53e=function(_0x51276e,_0x28b616){_0x51276e=_0x51276e-0x0;var _0x1f5f30=_0x53ec[_0x51276e];return _0x1f5f30;};'use strict';var multer=require(_0xc53e('0x0'));var util=require(_0xc53e('0x1'));var path=require(_0xc53e('0x2'));var timeout=require(_0xc53e('0x3'));var express=require(_0xc53e('0x4'));var router=express[_0xc53e('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xc53e('0x6'));var config=require('../../config/environment');var controller=require(_0xc53e('0x7'));router[_0xc53e('0x8')]('/',auth['isAuthenticated'](),controller[_0xc53e('0x9')]);router['get'](_0xc53e('0xa'),auth[_0xc53e('0xb')](),controller['show']);router[_0xc53e('0xc')]('/',auth[_0xc53e('0xb')](),controller[_0xc53e('0xd')]);router[_0xc53e('0xe')](_0xc53e('0xa'),auth[_0xc53e('0xb')](),controller[_0xc53e('0xf')]);router[_0xc53e('0x10')](_0xc53e('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xc53e('0x11')]=router;
\ No newline at end of file
diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js
index 9302f74..e8e698d 100644
--- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js
+++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1fb9=['sequelize','exports'];(function(_0x2fe2ea,_0x4a9040){var _0x49121a=function(_0x224665){while(--_0x224665){_0x2fe2ea['push'](_0x2fe2ea['shift']());}};_0x49121a(++_0x4a9040);}(_0x1fb9,0x94));var _0x91fb=function(_0x2f7e15,_0x6e0949){_0x2f7e15=_0x2f7e15-0x0;var _0xbf1bf1=_0x1fb9[_0x2f7e15];return _0xbf1bf1;};'use strict';var Sequelize=require(_0x91fb('0x0'));module[_0x91fb('0x1')]={'tree':{'type':Sequelize['TEXT'],'allowNull':![]}};
\ No newline at end of file
+var _0x2097=['TEXT','exports'];(function(_0x430229,_0x5f88d2){var _0x4ac616=function(_0x980bc5){while(--_0x980bc5){_0x430229['push'](_0x430229['shift']());}};_0x4ac616(++_0x5f88d2);}(_0x2097,0x69));var _0x7209=function(_0x149af8,_0x1922e6){_0x149af8=_0x149af8-0x0;var _0x43e7a2=_0x2097[_0x149af8];return _0x43e7a2;};'use strict';var Sequelize=require('sequelize');module[_0x7209('0x0')]={'tree':{'type':Sequelize[_0x7209('0x1')],'allowNull':![]}};
\ No newline at end of file
diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js
index 8cc7b86..096d7f2 100644
--- a/server/api/analyticTreeReport/analyticTreeReport.controller.js
+++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0bb5=['keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','limit','order','sort','where','pick','filter','merge','count','includeAll','include','findAll','then','rows','show','params','options','find','catch','create','body','html-pdf','eml-format','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','offset','Content-Range','json','apply','reject','save','update','destroy','error','stack','name','index','map','AnalyticTreeReport','rawAttributes','type','key','model','query'];(function(_0x11ce46,_0x177a85){var _0x368a1e=function(_0x425454){while(--_0x425454){_0x11ce46['push'](_0x11ce46['shift']());}};_0x368a1e(++_0x177a85);}(_0x0bb5,0x148));var _0x50bb=function(_0x10ef2b,_0x2cccde){_0x10ef2b=_0x10ef2b-0x0;var _0x1b98c5=_0x0bb5[_0x10ef2b];return _0x1b98c5;};'use strict';var pdf=require(_0x50bb('0x0'));var emlformat=require(_0x50bb('0x1'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x50bb('0x2'));var rp=require(_0x50bb('0x3'));var moment=require(_0x50bb('0x4'));var BPromise=require(_0x50bb('0x5'));var Mustache=require(_0x50bb('0x6'));var util=require(_0x50bb('0x7'));var path=require(_0x50bb('0x8'));var sox=require(_0x50bb('0x9'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require(_0x50bb('0xa'));var squel=require(_0x50bb('0xb'));var crypto=require(_0x50bb('0xc'));var jsforce=require(_0x50bb('0xd'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x50bb('0xe'));var Papa=require(_0x50bb('0xf'));var Redis=require(_0x50bb('0x10'));var authService=require(_0x50bb('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0x50bb('0x12'));var hardwareService=require(_0x50bb('0x13'));var logger=require(_0x50bb('0x14'))(_0x50bb('0x15'));var utils=require(_0x50bb('0x16'));var config=require(_0x50bb('0x17'));var db=require(_0x50bb('0x18'))['db'];function respondWithStatusCode(_0x4d7e3d,_0x226370){_0x226370=_0x226370||0xcc;return function(_0x58837d){if(_0x58837d){return _0x4d7e3d[_0x50bb('0x19')](_0x226370);}return _0x4d7e3d[_0x50bb('0x1a')](_0x226370)[_0x50bb('0x1b')]();};}function respondWithResult(_0x502250,_0x17007f){_0x17007f=_0x17007f||0xc8;return function(_0x309986){if(_0x309986){return _0x502250[_0x50bb('0x1a')](_0x17007f)['json'](_0x309986);}};}function respondWithFilteredResult(_0xbbc6a0,_0x5e8478){return function(_0x21befa){if(_0x21befa){var _0x3e1a51=_0x21befa['count'],_0x253073=_0x5e8478[_0x50bb('0x1c')],_0x42ffab=_0x5e8478[_0x50bb('0x1c')]+_0x5e8478['limit'],_0x908950;if(_0x42ffab>=_0x3e1a51){_0x42ffab=_0x3e1a51;_0x908950=0xc8;}else{_0x908950=0xce;}_0xbbc6a0[_0x50bb('0x1a')](_0x908950);return _0xbbc6a0['set'](_0x50bb('0x1d'),_0x253073+'-'+_0x42ffab+'/'+_0x3e1a51)[_0x50bb('0x1e')](_0x21befa);}return null;};}function patchUpdates(_0x4b06f5){return function(_0x4f1c0a){try{jsonpatch[_0x50bb('0x1f')](_0x4f1c0a,_0x4b06f5,!![]);}catch(_0x1499dc){return BPromise[_0x50bb('0x20')](_0x1499dc);}return _0x4f1c0a[_0x50bb('0x21')]();};}function saveUpdates(_0x56b25a,_0x19dc5d){return function(_0x32bfc3){if(_0x32bfc3){return _0x32bfc3[_0x50bb('0x22')](_0x56b25a)['then'](function(_0x3104c8){return _0x3104c8;});}return null;};}function removeEntity(_0x879fea,_0x1344ec){return function(_0x4825f8){if(_0x4825f8){return _0x4825f8[_0x50bb('0x23')]()['then'](function(){_0x879fea[_0x50bb('0x1a')](0xcc)[_0x50bb('0x1b')]();});}};}function handleEntityNotFound(_0x1a2a0b,_0x2ee87a){return function(_0x846311){if(!_0x846311){_0x1a2a0b[_0x50bb('0x19')](0x194);}return _0x846311;};}function handleError(_0x4f7f73,_0xad17ac){_0xad17ac=_0xad17ac||0x1f4;return function(_0xee0af0){logger[_0x50bb('0x24')](_0xee0af0[_0x50bb('0x25')]);if(_0xee0af0['name']){delete _0xee0af0[_0x50bb('0x26')];}_0x4f7f73['status'](_0xad17ac)['send'](_0xee0af0);};}exports[_0x50bb('0x27')]=function(_0x491632,_0x5cfe4b){var _0x41fd89={},_0x12ee2c={},_0x3004a3={'count':0x0,'rows':[]};var _0x1b74f9=_[_0x50bb('0x28')](db[_0x50bb('0x29')][_0x50bb('0x2a')],function(_0x41d479){return{'name':_0x41d479['fieldName'],'type':_0x41d479[_0x50bb('0x2b')][_0x50bb('0x2c')]};});_0x12ee2c[_0x50bb('0x2d')]=_[_0x50bb('0x28')](_0x1b74f9,'name');_0x12ee2c[_0x50bb('0x2e')]=_[_0x50bb('0x2f')](_0x491632[_0x50bb('0x2e')]);_0x12ee2c[_0x50bb('0x30')]=_[_0x50bb('0x31')](_0x12ee2c[_0x50bb('0x2d')],_0x12ee2c[_0x50bb('0x2e')]);_0x41fd89[_0x50bb('0x32')]=_[_0x50bb('0x31')](_0x12ee2c[_0x50bb('0x2d')],qs[_0x50bb('0x33')](_0x491632[_0x50bb('0x2e')]['fields']));_0x41fd89[_0x50bb('0x32')]=_0x41fd89[_0x50bb('0x32')][_0x50bb('0x34')]?_0x41fd89[_0x50bb('0x32')]:_0x12ee2c[_0x50bb('0x2d')];if(!_0x491632[_0x50bb('0x2e')][_0x50bb('0x35')](_0x50bb('0x36'))){_0x41fd89[_0x50bb('0x37')]=qs[_0x50bb('0x37')](_0x491632[_0x50bb('0x2e')]['limit']);_0x41fd89[_0x50bb('0x1c')]=qs[_0x50bb('0x1c')](_0x491632[_0x50bb('0x2e')][_0x50bb('0x1c')]);}_0x41fd89[_0x50bb('0x38')]=qs[_0x50bb('0x39')](_0x491632['query']['sort']);_0x41fd89[_0x50bb('0x3a')]=qs['filters'](_[_0x50bb('0x3b')](_0x491632[_0x50bb('0x2e')],_0x12ee2c[_0x50bb('0x30')]));if(_0x491632[_0x50bb('0x2e')][_0x50bb('0x3c')]){_0x41fd89['where']=_[_0x50bb('0x3d')](_0x41fd89['where'],{'$or':_[_0x50bb('0x28')](_0x1b74f9,function(_0xc78d23){if(_0xc78d23[_0x50bb('0x2b')]!=='VIRTUAL'){var _0x55d29c={};_0x55d29c[_0xc78d23[_0x50bb('0x26')]]={'$like':'%'+_0x491632[_0x50bb('0x2e')][_0x50bb('0x3c')]+'%'};return _0x55d29c;}})});}_0x41fd89=_[_0x50bb('0x3d')]({},_0x41fd89,_0x491632['options']);var _0x3c273b={'where':_0x41fd89['where']};return db['AnalyticTreeReport'][_0x50bb('0x3e')](_0x3c273b)['then'](function(_0x33ad32){_0x3004a3[_0x50bb('0x3e')]=_0x33ad32;if(_0x491632[_0x50bb('0x2e')][_0x50bb('0x3f')]){_0x41fd89[_0x50bb('0x40')]=[{'all':!![]}];}return db[_0x50bb('0x29')][_0x50bb('0x41')](_0x41fd89);})[_0x50bb('0x42')](function(_0x46039a){_0x3004a3[_0x50bb('0x43')]=_0x46039a;return _0x3004a3;})['then'](respondWithFilteredResult(_0x5cfe4b,_0x41fd89))['catch'](handleError(_0x5cfe4b,null));};exports[_0x50bb('0x44')]=function(_0x13076f,_0x1cf062){var _0x1d929d={'raw':!![],'where':{'id':_0x13076f[_0x50bb('0x45')]['id']}},_0x5e8085={};_0x5e8085['model']=_[_0x50bb('0x2f')](db[_0x50bb('0x29')][_0x50bb('0x2a')]);_0x5e8085[_0x50bb('0x2e')]=_[_0x50bb('0x2f')](_0x13076f[_0x50bb('0x2e')]);_0x5e8085[_0x50bb('0x30')]=_[_0x50bb('0x31')](_0x5e8085[_0x50bb('0x2d')],_0x5e8085[_0x50bb('0x2e')]);_0x1d929d[_0x50bb('0x32')]=_[_0x50bb('0x31')](_0x5e8085[_0x50bb('0x2d')],qs[_0x50bb('0x33')](_0x13076f[_0x50bb('0x2e')][_0x50bb('0x33')]));_0x1d929d['attributes']=_0x1d929d[_0x50bb('0x32')]['length']?_0x1d929d[_0x50bb('0x32')]:_0x5e8085[_0x50bb('0x2d')];if(_0x13076f[_0x50bb('0x2e')][_0x50bb('0x3f')]){_0x1d929d[_0x50bb('0x40')]=[{'all':!![]}];}_0x1d929d=_[_0x50bb('0x3d')]({},_0x1d929d,_0x13076f[_0x50bb('0x46')]);return db[_0x50bb('0x29')][_0x50bb('0x47')](_0x1d929d)[_0x50bb('0x42')](handleEntityNotFound(_0x1cf062,null))[_0x50bb('0x42')](respondWithResult(_0x1cf062,null))[_0x50bb('0x48')](handleError(_0x1cf062,null));};exports[_0x50bb('0x49')]=function(_0x457bb4,_0x5880df){return db[_0x50bb('0x29')]['create'](_0x457bb4[_0x50bb('0x4a')],{})[_0x50bb('0x42')](respondWithResult(_0x5880df,0xc9))[_0x50bb('0x48')](handleError(_0x5880df,null));};exports[_0x50bb('0x22')]=function(_0x650e91,_0x39ac1a){if(_0x650e91[_0x50bb('0x4a')]['id']){delete _0x650e91[_0x50bb('0x4a')]['id'];}return db['AnalyticTreeReport'][_0x50bb('0x47')]({'where':{'id':_0x650e91[_0x50bb('0x45')]['id']}})[_0x50bb('0x42')](handleEntityNotFound(_0x39ac1a,null))[_0x50bb('0x42')](saveUpdates(_0x650e91[_0x50bb('0x4a')],null))['then'](respondWithResult(_0x39ac1a,null))[_0x50bb('0x48')](handleError(_0x39ac1a,null));};exports[_0x50bb('0x23')]=function(_0x2a411d,_0x154ff8){return db[_0x50bb('0x29')]['find']({'where':{'id':_0x2a411d['params']['id']}})[_0x50bb('0x42')](handleEntityNotFound(_0x154ff8,null))['then'](removeEntity(_0x154ff8,null))[_0x50bb('0x48')](handleError(_0x154ff8,null));};
\ No newline at end of file
+var _0x4483=['key','query','filters','attributes','intersection','model','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','merge','options','includeAll','include','findAll','rows','catch','show','params','keys','find','create','body','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','status','end','count','offset','limit','Content-Range','apply','reject','update','then','destroy','sendStatus','error','stack','name','send','index','map','AnalyticTreeReport','rawAttributes','fieldName','type'];(function(_0x323978,_0x531896){var _0x5e5a9b=function(_0x115dac){while(--_0x115dac){_0x323978['push'](_0x323978['shift']());}};_0x5e5a9b(++_0x531896);}(_0x4483,0x1a3));var _0x3448=function(_0x10b727,_0x11255e){_0x10b727=_0x10b727-0x0;var _0x3da247=_0x4483[_0x10b727];return _0x3da247;};'use strict';var pdf=require(_0x3448('0x0'));var emlformat=require(_0x3448('0x1'));var rimraf=require(_0x3448('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x3448('0x3'));var rp=require(_0x3448('0x4'));var moment=require(_0x3448('0x5'));var BPromise=require(_0x3448('0x6'));var Mustache=require(_0x3448('0x7'));var util=require('util');var path=require(_0x3448('0x8'));var sox=require(_0x3448('0x9'));var csv=require(_0x3448('0xa'));var ejs=require(_0x3448('0xb'));var fs=require('fs');var _=require(_0x3448('0xc'));var squel=require(_0x3448('0xd'));var crypto=require(_0x3448('0xe'));var jsforce=require(_0x3448('0xf'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x3448('0x10'));var Papa=require(_0x3448('0x11'));var Redis=require(_0x3448('0x12'));var authService=require(_0x3448('0x13'));var qs=require(_0x3448('0x14'));var as=require(_0x3448('0x15'));var hardwareService=require(_0x3448('0x16'));var logger=require(_0x3448('0x17'))(_0x3448('0x18'));var utils=require(_0x3448('0x19'));var config=require(_0x3448('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5bf09e,_0x298ae6){_0x298ae6=_0x298ae6||0xcc;return function(_0x38fbb1){if(_0x38fbb1){return _0x5bf09e['sendStatus'](_0x298ae6);}return _0x5bf09e[_0x3448('0x1b')](_0x298ae6)[_0x3448('0x1c')]();};}function respondWithResult(_0x587db9,_0x549306){_0x549306=_0x549306||0xc8;return function(_0x14104c){if(_0x14104c){return _0x587db9[_0x3448('0x1b')](_0x549306)['json'](_0x14104c);}};}function respondWithFilteredResult(_0x2387a3,_0x2c2da6){return function(_0x46784f){if(_0x46784f){var _0x4fc70f=_0x46784f[_0x3448('0x1d')],_0x472518=_0x2c2da6[_0x3448('0x1e')],_0x28f5b9=_0x2c2da6[_0x3448('0x1e')]+_0x2c2da6[_0x3448('0x1f')],_0x13610a;if(_0x28f5b9>=_0x4fc70f){_0x28f5b9=_0x4fc70f;_0x13610a=0xc8;}else{_0x13610a=0xce;}_0x2387a3[_0x3448('0x1b')](_0x13610a);return _0x2387a3['set'](_0x3448('0x20'),_0x472518+'-'+_0x28f5b9+'/'+_0x4fc70f)['json'](_0x46784f);}return null;};}function patchUpdates(_0x48f94a){return function(_0x53f8e7){try{jsonpatch[_0x3448('0x21')](_0x53f8e7,_0x48f94a,!![]);}catch(_0x278736){return BPromise[_0x3448('0x22')](_0x278736);}return _0x53f8e7['save']();};}function saveUpdates(_0x3df082,_0x392c8d){return function(_0x317de6){if(_0x317de6){return _0x317de6[_0x3448('0x23')](_0x3df082)[_0x3448('0x24')](function(_0x715c3){return _0x715c3;});}return null;};}function removeEntity(_0x5db78f,_0x54c7ee){return function(_0x4e6716){if(_0x4e6716){return _0x4e6716[_0x3448('0x25')]()[_0x3448('0x24')](function(){_0x5db78f['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x2dcd40,_0x4371d6){return function(_0x22ad5c){if(!_0x22ad5c){_0x2dcd40[_0x3448('0x26')](0x194);}return _0x22ad5c;};}function handleError(_0xbf2237,_0x566ff5){_0x566ff5=_0x566ff5||0x1f4;return function(_0x229ce7){logger[_0x3448('0x27')](_0x229ce7[_0x3448('0x28')]);if(_0x229ce7[_0x3448('0x29')]){delete _0x229ce7[_0x3448('0x29')];}_0xbf2237['status'](_0x566ff5)[_0x3448('0x2a')](_0x229ce7);};}exports[_0x3448('0x2b')]=function(_0x52c163,_0x19a479){var _0x12c22d={},_0x310912={},_0x1bd34c={'count':0x0,'rows':[]};var _0x38fab2=_[_0x3448('0x2c')](db[_0x3448('0x2d')][_0x3448('0x2e')],function(_0x5911b8){return{'name':_0x5911b8[_0x3448('0x2f')],'type':_0x5911b8[_0x3448('0x30')][_0x3448('0x31')]};});_0x310912['model']=_[_0x3448('0x2c')](_0x38fab2,'name');_0x310912['query']=_['keys'](_0x52c163[_0x3448('0x32')]);_0x310912[_0x3448('0x33')]=_['intersection'](_0x310912['model'],_0x310912[_0x3448('0x32')]);_0x12c22d[_0x3448('0x34')]=_[_0x3448('0x35')](_0x310912[_0x3448('0x36')],qs['fields'](_0x52c163[_0x3448('0x32')][_0x3448('0x37')]));_0x12c22d[_0x3448('0x34')]=_0x12c22d['attributes'][_0x3448('0x38')]?_0x12c22d[_0x3448('0x34')]:_0x310912['model'];if(!_0x52c163['query'][_0x3448('0x39')](_0x3448('0x3a'))){_0x12c22d[_0x3448('0x1f')]=qs[_0x3448('0x1f')](_0x52c163['query'][_0x3448('0x1f')]);_0x12c22d[_0x3448('0x1e')]=qs[_0x3448('0x1e')](_0x52c163[_0x3448('0x32')]['offset']);}_0x12c22d[_0x3448('0x3b')]=qs[_0x3448('0x3c')](_0x52c163['query'][_0x3448('0x3c')]);_0x12c22d[_0x3448('0x3d')]=qs[_0x3448('0x33')](_[_0x3448('0x3e')](_0x52c163[_0x3448('0x32')],_0x310912[_0x3448('0x33')]));if(_0x52c163[_0x3448('0x32')][_0x3448('0x3f')]){_0x12c22d[_0x3448('0x3d')]=_['merge'](_0x12c22d['where'],{'$or':_[_0x3448('0x2c')](_0x38fab2,function(_0x579eac){if(_0x579eac[_0x3448('0x30')]!==_0x3448('0x40')){var _0x12f678={};_0x12f678[_0x579eac[_0x3448('0x29')]]={'$like':'%'+_0x52c163['query'][_0x3448('0x3f')]+'%'};return _0x12f678;}})});}_0x12c22d=_[_0x3448('0x41')]({},_0x12c22d,_0x52c163[_0x3448('0x42')]);var _0x201979={'where':_0x12c22d[_0x3448('0x3d')]};return db[_0x3448('0x2d')][_0x3448('0x1d')](_0x201979)[_0x3448('0x24')](function(_0x124296){_0x1bd34c['count']=_0x124296;if(_0x52c163[_0x3448('0x32')][_0x3448('0x43')]){_0x12c22d[_0x3448('0x44')]=[{'all':!![]}];}return db[_0x3448('0x2d')][_0x3448('0x45')](_0x12c22d);})['then'](function(_0x18b297){_0x1bd34c[_0x3448('0x46')]=_0x18b297;return _0x1bd34c;})[_0x3448('0x24')](respondWithFilteredResult(_0x19a479,_0x12c22d))[_0x3448('0x47')](handleError(_0x19a479,null));};exports[_0x3448('0x48')]=function(_0x2077c1,_0x415985){var _0x3db5f1={'raw':!![],'where':{'id':_0x2077c1[_0x3448('0x49')]['id']}},_0x4a8f80={};_0x4a8f80[_0x3448('0x36')]=_[_0x3448('0x4a')](db['AnalyticTreeReport'][_0x3448('0x2e')]);_0x4a8f80[_0x3448('0x32')]=_[_0x3448('0x4a')](_0x2077c1[_0x3448('0x32')]);_0x4a8f80[_0x3448('0x33')]=_[_0x3448('0x35')](_0x4a8f80[_0x3448('0x36')],_0x4a8f80['query']);_0x3db5f1[_0x3448('0x34')]=_[_0x3448('0x35')](_0x4a8f80[_0x3448('0x36')],qs[_0x3448('0x37')](_0x2077c1[_0x3448('0x32')][_0x3448('0x37')]));_0x3db5f1['attributes']=_0x3db5f1[_0x3448('0x34')]['length']?_0x3db5f1['attributes']:_0x4a8f80[_0x3448('0x36')];if(_0x2077c1[_0x3448('0x32')]['includeAll']){_0x3db5f1[_0x3448('0x44')]=[{'all':!![]}];}_0x3db5f1=_[_0x3448('0x41')]({},_0x3db5f1,_0x2077c1['options']);return db[_0x3448('0x2d')][_0x3448('0x4b')](_0x3db5f1)['then'](handleEntityNotFound(_0x415985,null))[_0x3448('0x24')](respondWithResult(_0x415985,null))[_0x3448('0x47')](handleError(_0x415985,null));};exports[_0x3448('0x4c')]=function(_0x2be597,_0x34d19e){return db[_0x3448('0x2d')][_0x3448('0x4c')](_0x2be597['body'],{})['then'](respondWithResult(_0x34d19e,0xc9))[_0x3448('0x47')](handleError(_0x34d19e,null));};exports[_0x3448('0x23')]=function(_0x1b82e7,_0x3f48e3){if(_0x1b82e7['body']['id']){delete _0x1b82e7[_0x3448('0x4d')]['id'];}return db[_0x3448('0x2d')][_0x3448('0x4b')]({'where':{'id':_0x1b82e7[_0x3448('0x49')]['id']}})[_0x3448('0x24')](handleEntityNotFound(_0x3f48e3,null))['then'](saveUpdates(_0x1b82e7[_0x3448('0x4d')],null))['then'](respondWithResult(_0x3f48e3,null))[_0x3448('0x47')](handleError(_0x3f48e3,null));};exports[_0x3448('0x25')]=function(_0x5c8e42,_0x479b79){return db[_0x3448('0x2d')][_0x3448('0x4b')]({'where':{'id':_0x5c8e42[_0x3448('0x49')]['id']}})[_0x3448('0x24')](handleEntityNotFound(_0x479b79,null))[_0x3448('0x24')](removeEntity(_0x479b79,null))[_0x3448('0x47')](handleError(_0x479b79,null));};
\ No newline at end of file
diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js
index ecc34a7..28b5d72 100644
--- a/server/api/analyticTreeReport/analyticTreeReport.model.js
+++ b/server/api/analyticTreeReport/analyticTreeReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7f59=['AnalyticTreeReport','analytics_report_trees','lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','define'];(function(_0x3572b3,_0x593ffe){var _0x55e4aa=function(_0x5a6b53){while(--_0x5a6b53){_0x3572b3['push'](_0x3572b3['shift']());}};_0x55e4aa(++_0x593ffe);}(_0x7f59,0x12e));var _0x97f5=function(_0x8d4f36,_0x759816){_0x8d4f36=_0x8d4f36-0x0;var _0x13f1fd=_0x7f59[_0x8d4f36];return _0x13f1fd;};'use strict';var _=require(_0x97f5('0x0'));var util=require(_0x97f5('0x1'));var logger=require('../../config/logger')(_0x97f5('0x2'));var moment=require(_0x97f5('0x3'));var BPromise=require(_0x97f5('0x4'));var rp=require(_0x97f5('0x5'));var fs=require('fs');var path=require(_0x97f5('0x6'));var rimraf=require(_0x97f5('0x7'));var config=require(_0x97f5('0x8'));var attributes=require('./analyticTreeReport.attributes');module['exports']=function(_0x498110,_0x5d7027){return _0x498110[_0x97f5('0x9')](_0x97f5('0xa'),attributes,{'tableName':_0x97f5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xa701=['AnalyticTreeReport','analytics_report_trees','util','../../config/logger','bluebird','rimraf','../../config/environment','./analyticTreeReport.attributes','exports','define'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xa701,0xd4));var _0x1a70=function(_0x9fe67b,_0x5583be){_0x9fe67b=_0x9fe67b-0x0;var _0x5423e2=_0xa701[_0x9fe67b];return _0x5423e2;};'use strict';var _=require('lodash');var util=require(_0x1a70('0x0'));var logger=require(_0x1a70('0x1'))('api');var moment=require('moment');var BPromise=require(_0x1a70('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x1a70('0x3'));var config=require(_0x1a70('0x4'));var attributes=require(_0x1a70('0x5'));module[_0x1a70('0x6')]=function(_0x48532f,_0x5ec401){return _0x48532f[_0x1a70('0x7')](_0x1a70('0x8'),attributes,{'tableName':_0x1a70('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/analyticTreeReport/analyticTreeReport.rpc.js b/server/api/analyticTreeReport/analyticTreeReport.rpc.js
index e70e3f2..73f1077 100644
--- a/server/api/analyticTreeReport/analyticTreeReport.rpc.js
+++ b/server/api/analyticTreeReport/analyticTreeReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x63e3=['request\x20sent','AnalyticTreeReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','AnalyticTreeReport,\x20%s,\x20%s'];(function(_0x4f6ea8,_0x191395){var _0x39f538=function(_0x8aa4c9){while(--_0x8aa4c9){_0x4f6ea8['push'](_0x4f6ea8['shift']());}};_0x39f538(++_0x191395);}(_0x63e3,0x170));var _0x363e=function(_0x138adb,_0x193fee){_0x138adb=_0x138adb-0x0;var _0x1b27f2=_0x63e3[_0x138adb];return _0x1b27f2;};'use strict';var _=require(_0x363e('0x0'));var util=require(_0x363e('0x1'));var moment=require(_0x363e('0x2'));var BPromise=require('bluebird');var rs=require(_0x363e('0x3'));var fs=require('fs');var Redis=require(_0x363e('0x4'));var db=require(_0x363e('0x5'))['db'];var utils=require(_0x363e('0x6'));var logger=require(_0x363e('0x7'))(_0x363e('0x8'));var config=require(_0x363e('0x9'));var jayson=require(_0x363e('0xa'));var client=jayson[_0x363e('0xb')][_0x363e('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x150207,_0x5a1acc,_0x5bdb73){return new BPromise(function(_0x89cbae,_0x24f99c){return client['request'](_0x150207,_0x5bdb73)[_0x363e('0xd')](function(_0x2b9113){logger[_0x363e('0xe')](_0x363e('0xf'),_0x5a1acc,_0x363e('0x10'));logger['debug'](_0x363e('0x11'),_0x5a1acc,'request\x20sent',JSON[_0x363e('0x12')](_0x2b9113));if(_0x2b9113[_0x363e('0x13')]){if(_0x2b9113['error'][_0x363e('0x14')]===0x1f4){logger['error'](_0x363e('0xf'),_0x5a1acc,_0x2b9113['error'][_0x363e('0x15')]);return _0x24f99c(_0x2b9113[_0x363e('0x13')][_0x363e('0x15')]);}logger[_0x363e('0x13')]('AnalyticTreeReport,\x20%s,\x20%s',_0x5a1acc,_0x2b9113[_0x363e('0x13')][_0x363e('0x15')]);return _0x89cbae(_0x2b9113[_0x363e('0x13')]['message']);}else{logger[_0x363e('0xe')](_0x363e('0xf'),_0x5a1acc,_0x363e('0x10'));_0x89cbae(_0x2b9113[_0x363e('0x16')]['message']);}})[_0x363e('0x17')](function(_0x84e8d0){logger['error'](_0x363e('0xf'),_0x5a1acc,_0x84e8d0);_0x24f99c(_0x84e8d0);});});}
\ No newline at end of file
+var _0xa48a=['message','result','catch','util','moment','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','AnalyticTreeReport,\x20%s,\x20%s','request\x20sent','debug','AnalyticTreeReport,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x381005,_0x2b3564){var _0x7fb157=function(_0x1e1ae0){while(--_0x1e1ae0){_0x381005['push'](_0x381005['shift']());}};_0x7fb157(++_0x2b3564);}(_0xa48a,0x75));var _0xaa48=function(_0x4f936d,_0x45eb2b){_0x4f936d=_0x4f936d-0x0;var _0x2f8376=_0xa48a[_0x4f936d];return _0x2f8376;};'use strict';var _=require('lodash');var util=require(_0xaa48('0x0'));var moment=require(_0xaa48('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xaa48('0x2'));var db=require(_0xaa48('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xaa48('0x4'))('rpc');var config=require(_0xaa48('0x5'));var jayson=require('jayson/promise');var client=jayson[_0xaa48('0x6')][_0xaa48('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x4aca99,_0x4e3243,_0x499f94){return new BPromise(function(_0x45f188,_0x11dea7){return client[_0xaa48('0x8')](_0x4aca99,_0x499f94)['then'](function(_0xd4596c){logger['info'](_0xaa48('0x9'),_0x4e3243,_0xaa48('0xa'));logger[_0xaa48('0xb')](_0xaa48('0xc'),_0x4e3243,_0xaa48('0xa'),JSON[_0xaa48('0xd')](_0xd4596c));if(_0xd4596c['error']){if(_0xd4596c[_0xaa48('0xe')][_0xaa48('0xf')]===0x1f4){logger['error'](_0xaa48('0x9'),_0x4e3243,_0xd4596c[_0xaa48('0xe')][_0xaa48('0x10')]);return _0x11dea7(_0xd4596c[_0xaa48('0xe')][_0xaa48('0x10')]);}logger[_0xaa48('0xe')](_0xaa48('0x9'),_0x4e3243,_0xd4596c[_0xaa48('0xe')][_0xaa48('0x10')]);return _0x45f188(_0xd4596c[_0xaa48('0xe')]['message']);}else{logger['info'](_0xaa48('0x9'),_0x4e3243,_0xaa48('0xa'));_0x45f188(_0xd4596c[_0xaa48('0x11')][_0xaa48('0x10')]);}})[_0xaa48('0x12')](function(_0x4fbb66){logger[_0xaa48('0xe')](_0xaa48('0x9'),_0x4e3243,_0x4fbb66);_0x11dea7(_0x4fbb66);});});}
\ No newline at end of file
diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js
index 3887de4..72032a9 100644
--- a/server/api/analyticTreeReport/index.js
+++ b/server/api/analyticTreeReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1e39=['../../components/interaction/service','../../config/environment','./analyticTreeReport.controller','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','exports','path','connect-timeout','express','../../components/auth/service'];(function(_0x1eae2b,_0x4b7074){var _0xc44e68=function(_0x21f211){while(--_0x21f211){_0x1eae2b['push'](_0x1eae2b['shift']());}};_0xc44e68(++_0x4b7074);}(_0x1e39,0x188));var _0x91e3=function(_0x413b4d,_0xa3459c){_0x413b4d=_0x413b4d-0x0;var _0x8b810a=_0x1e39[_0x413b4d];return _0x8b810a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x91e3('0x0'));var timeout=require(_0x91e3('0x1'));var express=require(_0x91e3('0x2'));var router=express['Router']();var auth=require(_0x91e3('0x3'));var interaction=require(_0x91e3('0x4'));var config=require(_0x91e3('0x5'));var controller=require(_0x91e3('0x6'));router[_0x91e3('0x7')]('/',auth[_0x91e3('0x8')](),controller['index']);router[_0x91e3('0x7')](_0x91e3('0x9'),auth[_0x91e3('0x8')](),controller[_0x91e3('0xa')]);router[_0x91e3('0xb')]('/',auth['isAuthenticated'](),controller[_0x91e3('0xc')]);router[_0x91e3('0xd')]('/:id',auth[_0x91e3('0x8')](),controller[_0x91e3('0xe')]);router[_0x91e3('0xf')](_0x91e3('0x9'),auth[_0x91e3('0x8')](),controller[_0x91e3('0x10')]);module[_0x91e3('0x11')]=router;
\ No newline at end of file
+var _0x1ebd=['Router','../../config/environment','isAuthenticated','get','/:id','show','post','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x209769,_0x2d3af0){var _0x19952f=function(_0x2bfd8b){while(--_0x2bfd8b){_0x209769['push'](_0x209769['shift']());}};_0x19952f(++_0x2d3af0);}(_0x1ebd,0x64));var _0xd1eb=function(_0x1a0c8e,_0x37ba30){_0x1a0c8e=_0x1a0c8e-0x0;var _0x1ef848=_0x1ebd[_0x1a0c8e];return _0x1ef848;};'use strict';var multer=require(_0xd1eb('0x0'));var util=require(_0xd1eb('0x1'));var path=require(_0xd1eb('0x2'));var timeout=require(_0xd1eb('0x3'));var express=require(_0xd1eb('0x4'));var router=express[_0xd1eb('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd1eb('0x6'));var controller=require('./analyticTreeReport.controller');router['get']('/',auth[_0xd1eb('0x7')](),controller['index']);router[_0xd1eb('0x8')](_0xd1eb('0x9'),auth['isAuthenticated'](),controller[_0xd1eb('0xa')]);router[_0xd1eb('0xb')]('/',auth[_0xd1eb('0x7')](),controller['create']);router['put'](_0xd1eb('0x9'),auth[_0xd1eb('0x7')](),controller[_0xd1eb('0xc')]);router[_0xd1eb('0xd')](_0xd1eb('0x9'),auth[_0xd1eb('0x7')](),controller[_0xd1eb('0xe')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js
index 9c00af6..9791d16 100644
--- a/server/api/attachment/attachment.attributes.js
+++ b/server/api/attachment/attachment.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2ae5=['sequelize','exports','STRING'];(function(_0x376db5,_0x2b8874){var _0x304c17=function(_0x2dd9ba){while(--_0x2dd9ba){_0x376db5['push'](_0x376db5['shift']());}};_0x304c17(++_0x2b8874);}(_0x2ae5,0x7e));var _0x52ae=function(_0x4b2436,_0x452299){_0x4b2436=_0x4b2436-0x0;var _0x4f5ab2=_0x2ae5[_0x4b2436];return _0x4f5ab2;};'use strict';var Sequelize=require(_0x52ae('0x0'));module[_0x52ae('0x1')]={'name':{'type':Sequelize[_0x52ae('0x2')]},'basename':{'type':Sequelize[_0x52ae('0x2')]},'type':{'type':Sequelize[_0x52ae('0x2')]}};
\ No newline at end of file
+var _0x123d=['exports','STRING'];(function(_0xb012e3,_0x33b165){var _0x195c7e=function(_0x282420){while(--_0x282420){_0xb012e3['push'](_0xb012e3['shift']());}};_0x195c7e(++_0x33b165);}(_0x123d,0xf4));var _0xd123=function(_0x21d636,_0x4f6e0f){_0x21d636=_0x21d636-0x0;var _0x38d608=_0x123d[_0x21d636];return _0x38d608;};'use strict';var Sequelize=require('sequelize');module[_0xd123('0x0')]={'name':{'type':Sequelize['STRING']},'basename':{'type':Sequelize[_0xd123('0x1')]},'type':{'type':Sequelize[_0xd123('0x1')]}};
\ No newline at end of file
diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js
index 84ff244..2ca4e67 100644
--- a/server/api/attachment/attachment.controller.js
+++ b/server/api/attachment/attachment.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf421=['offset','limit','set','Content-Range','json','apply','save','update','then','error','stack','name','send','index','Attachment','rawAttributes','type','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','options','include','rows','catch','show','params','keys','includeAll','find','get','omit','createdAt','updatedAt','body','create','file','basename','filename','mimetype','download','findOne','join','root','server/files/attachments/','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','count'];(function(_0x4771a0,_0x45be9d){var _0x440d29=function(_0x56a3c0){while(--_0x56a3c0){_0x4771a0['push'](_0x4771a0['shift']());}};_0x440d29(++_0x45be9d);}(_0xf421,0xe4));var _0x1f42=function(_0x349b5c,_0x55e5fa){_0x349b5c=_0x349b5c-0x0;var _0x3efcac=_0xf421[_0x349b5c];return _0x3efcac;};'use strict';var pdf=require(_0x1f42('0x0'));var emlformat=require(_0x1f42('0x1'));var rimraf=require(_0x1f42('0x2'));var zipdir=require(_0x1f42('0x3'));var jsonpatch=require(_0x1f42('0x4'));var rp=require('request-promise');var moment=require(_0x1f42('0x5'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x1f42('0x6'));var path=require(_0x1f42('0x7'));var sox=require(_0x1f42('0x8'));var csv=require(_0x1f42('0x9'));var ejs=require(_0x1f42('0xa'));var fs=require('fs');var _=require(_0x1f42('0xb'));var squel=require(_0x1f42('0xc'));var crypto=require(_0x1f42('0xd'));var jsforce=require(_0x1f42('0xe'));var deskjs=require(_0x1f42('0xf'));var toCsv=require(_0x1f42('0x9'));var querystring=require(_0x1f42('0x10'));var Papa=require(_0x1f42('0x11'));var Redis=require(_0x1f42('0x12'));var authService=require(_0x1f42('0x13'));var qs=require(_0x1f42('0x14'));var as=require(_0x1f42('0x15'));var hardwareService=require(_0x1f42('0x16'));var logger=require('../../config/logger')('api');var utils=require(_0x1f42('0x17'));var config=require(_0x1f42('0x18'));var db=require(_0x1f42('0x19'))['db'];function respondWithStatusCode(_0x3808e2,_0x124eaa){_0x124eaa=_0x124eaa||0xcc;return function(_0x2b667a){if(_0x2b667a){return _0x3808e2[_0x1f42('0x1a')](_0x124eaa);}return _0x3808e2[_0x1f42('0x1b')](_0x124eaa)[_0x1f42('0x1c')]();};}function respondWithResult(_0x405bdc,_0xd2d6a8){_0xd2d6a8=_0xd2d6a8||0xc8;return function(_0x4c2004){if(_0x4c2004){return _0x405bdc['status'](_0xd2d6a8)['json'](_0x4c2004);}};}function respondWithFilteredResult(_0x2fba5f,_0x551d6e){return function(_0x5e402c){if(_0x5e402c){var _0x3ecc35=_0x5e402c[_0x1f42('0x1d')],_0x5d9f9c=_0x551d6e[_0x1f42('0x1e')],_0x1ecee9=_0x551d6e[_0x1f42('0x1e')]+_0x551d6e[_0x1f42('0x1f')],_0x2358fb;if(_0x1ecee9>=_0x3ecc35){_0x1ecee9=_0x3ecc35;_0x2358fb=0xc8;}else{_0x2358fb=0xce;}_0x2fba5f[_0x1f42('0x1b')](_0x2358fb);return _0x2fba5f[_0x1f42('0x20')](_0x1f42('0x21'),_0x5d9f9c+'-'+_0x1ecee9+'/'+_0x3ecc35)[_0x1f42('0x22')](_0x5e402c);}return null;};}function patchUpdates(_0x3c0d0c){return function(_0x1bcfec){try{jsonpatch[_0x1f42('0x23')](_0x1bcfec,_0x3c0d0c,!![]);}catch(_0x37d3cd){return BPromise['reject'](_0x37d3cd);}return _0x1bcfec[_0x1f42('0x24')]();};}function saveUpdates(_0x4b22c2,_0x479870){return function(_0x1419e0){if(_0x1419e0){return _0x1419e0[_0x1f42('0x25')](_0x4b22c2)[_0x1f42('0x26')](function(_0x305f99){return _0x305f99;});}return null;};}function removeEntity(_0x1bdfe8,_0x1633a6){return function(_0x29be24){if(_0x29be24){return _0x29be24['destroy']()[_0x1f42('0x26')](function(){_0x1bdfe8[_0x1f42('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x110989,_0x581151){return function(_0x48a01c){if(!_0x48a01c){_0x110989[_0x1f42('0x1a')](0x194);}return _0x48a01c;};}function handleError(_0x54b1e7,_0x395b92){_0x395b92=_0x395b92||0x1f4;return function(_0x5a595f){logger[_0x1f42('0x27')](_0x5a595f[_0x1f42('0x28')]);if(_0x5a595f[_0x1f42('0x29')]){delete _0x5a595f[_0x1f42('0x29')];}_0x54b1e7[_0x1f42('0x1b')](_0x395b92)[_0x1f42('0x2a')](_0x5a595f);};}exports[_0x1f42('0x2b')]=function(_0x4a2b8e,_0x4cc4cd){var _0x4c6fa5={},_0x48d59c={},_0x4f9858={'count':0x0,'rows':[]};var _0xfd9972=_['map'](db[_0x1f42('0x2c')][_0x1f42('0x2d')],function(_0x49b097){return{'name':_0x49b097['fieldName'],'type':_0x49b097[_0x1f42('0x2e')]['key']};});_0x48d59c[_0x1f42('0x2f')]=_[_0x1f42('0x30')](_0xfd9972,'name');_0x48d59c[_0x1f42('0x31')]=_['keys'](_0x4a2b8e['query']);_0x48d59c[_0x1f42('0x32')]=_[_0x1f42('0x33')](_0x48d59c[_0x1f42('0x2f')],_0x48d59c[_0x1f42('0x31')]);_0x4c6fa5[_0x1f42('0x34')]=_[_0x1f42('0x33')](_0x48d59c[_0x1f42('0x2f')],qs[_0x1f42('0x35')](_0x4a2b8e[_0x1f42('0x31')][_0x1f42('0x35')]));_0x4c6fa5['attributes']=_0x4c6fa5[_0x1f42('0x34')][_0x1f42('0x36')]?_0x4c6fa5[_0x1f42('0x34')]:_0x48d59c[_0x1f42('0x2f')];if(!_0x4a2b8e[_0x1f42('0x31')][_0x1f42('0x37')](_0x1f42('0x38'))){_0x4c6fa5[_0x1f42('0x1f')]=qs[_0x1f42('0x1f')](_0x4a2b8e[_0x1f42('0x31')][_0x1f42('0x1f')]);_0x4c6fa5['offset']=qs['offset'](_0x4a2b8e['query'][_0x1f42('0x1e')]);}_0x4c6fa5[_0x1f42('0x39')]=qs[_0x1f42('0x3a')](_0x4a2b8e[_0x1f42('0x31')]['sort']);_0x4c6fa5[_0x1f42('0x3b')]=qs[_0x1f42('0x32')](_['pick'](_0x4a2b8e[_0x1f42('0x31')],_0x48d59c['filters']));if(_0x4a2b8e['query'][_0x1f42('0x3c')]){_0x4c6fa5['where']=_[_0x1f42('0x3d')](_0x4c6fa5[_0x1f42('0x3b')],{'$or':_[_0x1f42('0x30')](_0xfd9972,function(_0x5c60f8){if(_0x5c60f8['type']!=='VIRTUAL'){var _0x11ef27={};_0x11ef27[_0x5c60f8['name']]={'$like':'%'+_0x4a2b8e['query'][_0x1f42('0x3c')]+'%'};return _0x11ef27;}})});}_0x4c6fa5=_[_0x1f42('0x3d')]({},_0x4c6fa5,_0x4a2b8e[_0x1f42('0x3e')]);var _0x317ea8={'where':_0x4c6fa5[_0x1f42('0x3b')]};return db[_0x1f42('0x2c')][_0x1f42('0x1d')](_0x317ea8)[_0x1f42('0x26')](function(_0x285ad3){_0x4f9858['count']=_0x285ad3;if(_0x4a2b8e[_0x1f42('0x31')]['includeAll']){_0x4c6fa5[_0x1f42('0x3f')]=[{'all':!![]}];}return db['Attachment']['findAll'](_0x4c6fa5);})[_0x1f42('0x26')](function(_0x3b56d1){_0x4f9858[_0x1f42('0x40')]=_0x3b56d1;return _0x4f9858;})[_0x1f42('0x26')](respondWithFilteredResult(_0x4cc4cd,_0x4c6fa5))[_0x1f42('0x41')](handleError(_0x4cc4cd,null));};exports[_0x1f42('0x42')]=function(_0x3c7e66,_0xde6f8a){var _0x2b7754={'raw':!![],'where':{'id':_0x3c7e66[_0x1f42('0x43')]['id']}},_0x3664ac={};_0x3664ac[_0x1f42('0x2f')]=_[_0x1f42('0x44')](db['Attachment'][_0x1f42('0x2d')]);_0x3664ac['query']=_['keys'](_0x3c7e66[_0x1f42('0x31')]);_0x3664ac['filters']=_[_0x1f42('0x33')](_0x3664ac['model'],_0x3664ac[_0x1f42('0x31')]);_0x2b7754[_0x1f42('0x34')]=_[_0x1f42('0x33')](_0x3664ac[_0x1f42('0x2f')],qs['fields'](_0x3c7e66['query'][_0x1f42('0x35')]));_0x2b7754[_0x1f42('0x34')]=_0x2b7754[_0x1f42('0x34')]['length']?_0x2b7754['attributes']:_0x3664ac[_0x1f42('0x2f')];if(_0x3c7e66[_0x1f42('0x31')][_0x1f42('0x45')]){_0x2b7754[_0x1f42('0x3f')]=[{'all':!![]}];}_0x2b7754=_['merge']({},_0x2b7754,_0x3c7e66['options']);return db[_0x1f42('0x2c')][_0x1f42('0x46')](_0x2b7754)[_0x1f42('0x26')](handleEntityNotFound(_0xde6f8a,null))[_0x1f42('0x26')](respondWithResult(_0xde6f8a,null))[_0x1f42('0x41')](handleError(_0xde6f8a,null));};exports['clone']=function(_0x14d9cf,_0x4da862){var _0x4b2738={'where':{'id':_0x14d9cf[_0x1f42('0x43')]['id']}},_0x283a55={};_0x283a55['model']=_['keys'](db[_0x1f42('0x2c')][_0x1f42('0x2d')]);_0x4b2738[_0x1f42('0x34')]=_[_0x1f42('0x33')](_0x283a55[_0x1f42('0x2f')],qs[_0x1f42('0x35')](_0x14d9cf[_0x1f42('0x31')][_0x1f42('0x35')]));_0x4b2738[_0x1f42('0x34')]=_0x4b2738[_0x1f42('0x34')][_0x1f42('0x36')]?_0x4b2738[_0x1f42('0x34')]:_0x283a55[_0x1f42('0x2f')];if(_0x14d9cf[_0x1f42('0x31')][_0x1f42('0x45')]){_0x4b2738[_0x1f42('0x3f')]=[{'all':!![]}];}_0x4b2738=_[_0x1f42('0x3d')]({},_0x4b2738,_0x14d9cf[_0x1f42('0x3e')]);return db['Attachment'][_0x1f42('0x46')](_0x4b2738)[_0x1f42('0x26')](handleEntityNotFound(_0x4da862,null))['then'](function(_0x175d8d){if(_0x175d8d){var _0x549c0a=_0x175d8d[_0x1f42('0x47')]({'plain':!![]});_0x549c0a=qs[_0x1f42('0x48')](_0x549c0a,['id',_0x1f42('0x49'),_0x1f42('0x4a')]);_0x14d9cf[_0x1f42('0x4b')]=_[_0x1f42('0x48')](_0x14d9cf[_0x1f42('0x4b')],['id','createdAt',_0x1f42('0x4a')]);return db[_0x1f42('0x2c')][_0x1f42('0x4c')](_['merge'](_0x549c0a,_0x14d9cf['body']),{'include':_0x14d9cf['query'][_0x1f42('0x45')]?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0x4da862,0xc9))[_0x1f42('0x41')](handleError(_0x4da862,null));};exports[_0x1f42('0x25')]=function(_0x26e168,_0x48f609){if(_0x26e168[_0x1f42('0x4b')]['id']){delete _0x26e168[_0x1f42('0x4b')]['id'];}return db[_0x1f42('0x2c')][_0x1f42('0x46')]({'where':{'id':_0x26e168['params']['id']}})['then'](handleEntityNotFound(_0x48f609,null))[_0x1f42('0x26')](saveUpdates(_0x26e168[_0x1f42('0x4b')],null))['then'](respondWithResult(_0x48f609,null))[_0x1f42('0x41')](handleError(_0x48f609,null));};exports['destroy']=function(_0x113c41,_0x481aec){return db['Attachment']['find']({'where':{'id':_0x113c41[_0x1f42('0x43')]['id']}})[_0x1f42('0x26')](handleEntityNotFound(_0x481aec,null))[_0x1f42('0x26')](removeEntity(_0x481aec,null))[_0x1f42('0x41')](handleError(_0x481aec,null));};exports[_0x1f42('0x4c')]=function(_0x5746c0,_0x3e5911,_0xb1447a){_0x5746c0[_0x1f42('0x4b')][_0x1f42('0x29')]=_0x5746c0[_0x1f42('0x4d')]['originalname'];_0x5746c0[_0x1f42('0x4b')][_0x1f42('0x4e')]=_0x5746c0['file'][_0x1f42('0x4f')];_0x5746c0[_0x1f42('0x4b')][_0x1f42('0x2e')]=_0x5746c0[_0x1f42('0x4d')][_0x1f42('0x50')];return db[_0x1f42('0x2c')][_0x1f42('0x4c')](_0x5746c0[_0x1f42('0x4b')])[_0x1f42('0x26')](respondWithResult(_0x3e5911,0xc9))[_0x1f42('0x41')](handleError(_0x3e5911,null));};exports[_0x1f42('0x51')]=function(_0x41cae7,_0x12302c,_0x208c79){return db[_0x1f42('0x2c')][_0x1f42('0x52')]({'where':{'id':_0x41cae7[_0x1f42('0x43')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x12302c,null))[_0x1f42('0x26')](function(_0x103bbe){if(_0x103bbe){return _0x12302c[_0x1f42('0x51')](path[_0x1f42('0x53')](config[_0x1f42('0x54')],_0x1f42('0x55'),_0x103bbe[_0x1f42('0x4e')]));}})['catch'](handleError(_0x12302c,null));};
\ No newline at end of file
+var _0xf0ee=['status','end','json','count','offset','set','Content-Range','reject','save','then','error','stack','name','index','map','Attachment','rawAttributes','fieldName','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','limit','sort','where','pick','filter','type','VIRTUAL','merge','options','includeAll','findAll','catch','show','params','find','include','get','omit','updatedAt','body','create','destroy','file','mimetype','download','findOne','root','server/files/attachments/','basename','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../mysqldb','sendStatus'];(function(_0x4e9226,_0x2dfa54){var _0x8acf77=function(_0x487d95){while(--_0x487d95){_0x4e9226['push'](_0x4e9226['shift']());}};_0x8acf77(++_0x2dfa54);}(_0xf0ee,0x18a));var _0xef0e=function(_0x10e924,_0x8ba26d){_0x10e924=_0x10e924-0x0;var _0x1fb1e7=_0xf0ee[_0x10e924];return _0x1fb1e7;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0xef0e('0x0'));var zipdir=require(_0xef0e('0x1'));var jsonpatch=require(_0xef0e('0x2'));var rp=require(_0xef0e('0x3'));var moment=require(_0xef0e('0x4'));var BPromise=require(_0xef0e('0x5'));var Mustache=require(_0xef0e('0x6'));var util=require(_0xef0e('0x7'));var path=require(_0xef0e('0x8'));var sox=require(_0xef0e('0x9'));var csv=require('to-csv');var ejs=require(_0xef0e('0xa'));var fs=require('fs');var _=require(_0xef0e('0xb'));var squel=require(_0xef0e('0xc'));var crypto=require(_0xef0e('0xd'));var jsforce=require(_0xef0e('0xe'));var deskjs=require(_0xef0e('0xf'));var toCsv=require(_0xef0e('0x10'));var querystring=require('querystring');var Papa=require(_0xef0e('0x11'));var Redis=require(_0xef0e('0x12'));var authService=require(_0xef0e('0x13'));var qs=require(_0xef0e('0x14'));var as=require(_0xef0e('0x15'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xef0e('0x16'))('api');var utils=require(_0xef0e('0x17'));var config=require('../../config/environment');var db=require(_0xef0e('0x18'))['db'];function respondWithStatusCode(_0x5a4662,_0xcfd15e){_0xcfd15e=_0xcfd15e||0xcc;return function(_0x1baab5){if(_0x1baab5){return _0x5a4662[_0xef0e('0x19')](_0xcfd15e);}return _0x5a4662[_0xef0e('0x1a')](_0xcfd15e)[_0xef0e('0x1b')]();};}function respondWithResult(_0x1b901a,_0xd5a9c1){_0xd5a9c1=_0xd5a9c1||0xc8;return function(_0x20b6d9){if(_0x20b6d9){return _0x1b901a[_0xef0e('0x1a')](_0xd5a9c1)[_0xef0e('0x1c')](_0x20b6d9);}};}function respondWithFilteredResult(_0x1034cb,_0x30c5c9){return function(_0xe0a914){if(_0xe0a914){var _0x4e551f=_0xe0a914[_0xef0e('0x1d')],_0x4f67ba=_0x30c5c9['offset'],_0x17d3a2=_0x30c5c9[_0xef0e('0x1e')]+_0x30c5c9['limit'],_0x43ac9f;if(_0x17d3a2>=_0x4e551f){_0x17d3a2=_0x4e551f;_0x43ac9f=0xc8;}else{_0x43ac9f=0xce;}_0x1034cb[_0xef0e('0x1a')](_0x43ac9f);return _0x1034cb[_0xef0e('0x1f')](_0xef0e('0x20'),_0x4f67ba+'-'+_0x17d3a2+'/'+_0x4e551f)[_0xef0e('0x1c')](_0xe0a914);}return null;};}function patchUpdates(_0x3995b8){return function(_0x37c0fc){try{jsonpatch['apply'](_0x37c0fc,_0x3995b8,!![]);}catch(_0x15db60){return BPromise[_0xef0e('0x21')](_0x15db60);}return _0x37c0fc[_0xef0e('0x22')]();};}function saveUpdates(_0xe6002,_0x5b7ea2){return function(_0x38463a){if(_0x38463a){return _0x38463a['update'](_0xe6002)[_0xef0e('0x23')](function(_0x2d92f7){return _0x2d92f7;});}return null;};}function removeEntity(_0x15f9e9,_0x1c3968){return function(_0x44ac4a){if(_0x44ac4a){return _0x44ac4a['destroy']()[_0xef0e('0x23')](function(){_0x15f9e9[_0xef0e('0x1a')](0xcc)[_0xef0e('0x1b')]();});}};}function handleEntityNotFound(_0x122537,_0x5acc01){return function(_0x19f02b){if(!_0x19f02b){_0x122537[_0xef0e('0x19')](0x194);}return _0x19f02b;};}function handleError(_0x382f30,_0x1795ae){_0x1795ae=_0x1795ae||0x1f4;return function(_0x2986bd){logger[_0xef0e('0x24')](_0x2986bd[_0xef0e('0x25')]);if(_0x2986bd['name']){delete _0x2986bd[_0xef0e('0x26')];}_0x382f30[_0xef0e('0x1a')](_0x1795ae)['send'](_0x2986bd);};}exports[_0xef0e('0x27')]=function(_0xd6d2a7,_0xd80d1f){var _0x334f87={},_0x27f327={},_0x244822={'count':0x0,'rows':[]};var _0x1e551=_[_0xef0e('0x28')](db[_0xef0e('0x29')][_0xef0e('0x2a')],function(_0x5aa719){return{'name':_0x5aa719[_0xef0e('0x2b')],'type':_0x5aa719['type'][_0xef0e('0x2c')]};});_0x27f327[_0xef0e('0x2d')]=_['map'](_0x1e551,_0xef0e('0x26'));_0x27f327[_0xef0e('0x2e')]=_[_0xef0e('0x2f')](_0xd6d2a7['query']);_0x27f327[_0xef0e('0x30')]=_[_0xef0e('0x31')](_0x27f327[_0xef0e('0x2d')],_0x27f327[_0xef0e('0x2e')]);_0x334f87['attributes']=_[_0xef0e('0x31')](_0x27f327[_0xef0e('0x2d')],qs[_0xef0e('0x32')](_0xd6d2a7[_0xef0e('0x2e')][_0xef0e('0x32')]));_0x334f87['attributes']=_0x334f87[_0xef0e('0x33')][_0xef0e('0x34')]?_0x334f87['attributes']:_0x27f327['model'];if(!_0xd6d2a7['query'][_0xef0e('0x35')](_0xef0e('0x36'))){_0x334f87['limit']=qs[_0xef0e('0x37')](_0xd6d2a7[_0xef0e('0x2e')]['limit']);_0x334f87[_0xef0e('0x1e')]=qs['offset'](_0xd6d2a7[_0xef0e('0x2e')][_0xef0e('0x1e')]);}_0x334f87['order']=qs[_0xef0e('0x38')](_0xd6d2a7[_0xef0e('0x2e')]['sort']);_0x334f87[_0xef0e('0x39')]=qs[_0xef0e('0x30')](_[_0xef0e('0x3a')](_0xd6d2a7[_0xef0e('0x2e')],_0x27f327[_0xef0e('0x30')]));if(_0xd6d2a7[_0xef0e('0x2e')][_0xef0e('0x3b')]){_0x334f87[_0xef0e('0x39')]=_['merge'](_0x334f87['where'],{'$or':_[_0xef0e('0x28')](_0x1e551,function(_0x564928){if(_0x564928[_0xef0e('0x3c')]!==_0xef0e('0x3d')){var _0x5a3c65={};_0x5a3c65[_0x564928[_0xef0e('0x26')]]={'$like':'%'+_0xd6d2a7[_0xef0e('0x2e')][_0xef0e('0x3b')]+'%'};return _0x5a3c65;}})});}_0x334f87=_[_0xef0e('0x3e')]({},_0x334f87,_0xd6d2a7[_0xef0e('0x3f')]);var _0x579a4a={'where':_0x334f87[_0xef0e('0x39')]};return db[_0xef0e('0x29')][_0xef0e('0x1d')](_0x579a4a)[_0xef0e('0x23')](function(_0x18287e){_0x244822[_0xef0e('0x1d')]=_0x18287e;if(_0xd6d2a7['query'][_0xef0e('0x40')]){_0x334f87['include']=[{'all':!![]}];}return db[_0xef0e('0x29')][_0xef0e('0x41')](_0x334f87);})[_0xef0e('0x23')](function(_0x367a1b){_0x244822['rows']=_0x367a1b;return _0x244822;})[_0xef0e('0x23')](respondWithFilteredResult(_0xd80d1f,_0x334f87))[_0xef0e('0x42')](handleError(_0xd80d1f,null));};exports[_0xef0e('0x43')]=function(_0x3b21b6,_0x4d8aa2){var _0x530724={'raw':!![],'where':{'id':_0x3b21b6[_0xef0e('0x44')]['id']}},_0x26457c={};_0x26457c[_0xef0e('0x2d')]=_['keys'](db[_0xef0e('0x29')][_0xef0e('0x2a')]);_0x26457c[_0xef0e('0x2e')]=_[_0xef0e('0x2f')](_0x3b21b6[_0xef0e('0x2e')]);_0x26457c[_0xef0e('0x30')]=_[_0xef0e('0x31')](_0x26457c[_0xef0e('0x2d')],_0x26457c[_0xef0e('0x2e')]);_0x530724[_0xef0e('0x33')]=_['intersection'](_0x26457c['model'],qs[_0xef0e('0x32')](_0x3b21b6[_0xef0e('0x2e')][_0xef0e('0x32')]));_0x530724[_0xef0e('0x33')]=_0x530724[_0xef0e('0x33')][_0xef0e('0x34')]?_0x530724[_0xef0e('0x33')]:_0x26457c['model'];if(_0x3b21b6[_0xef0e('0x2e')]['includeAll']){_0x530724['include']=[{'all':!![]}];}_0x530724=_[_0xef0e('0x3e')]({},_0x530724,_0x3b21b6[_0xef0e('0x3f')]);return db[_0xef0e('0x29')][_0xef0e('0x45')](_0x530724)[_0xef0e('0x23')](handleEntityNotFound(_0x4d8aa2,null))['then'](respondWithResult(_0x4d8aa2,null))[_0xef0e('0x42')](handleError(_0x4d8aa2,null));};exports['clone']=function(_0x574445,_0x2adf24){var _0x5db3fd={'where':{'id':_0x574445[_0xef0e('0x44')]['id']}},_0x93c53b={};_0x93c53b[_0xef0e('0x2d')]=_[_0xef0e('0x2f')](db[_0xef0e('0x29')][_0xef0e('0x2a')]);_0x5db3fd[_0xef0e('0x33')]=_['intersection'](_0x93c53b[_0xef0e('0x2d')],qs[_0xef0e('0x32')](_0x574445[_0xef0e('0x2e')][_0xef0e('0x32')]));_0x5db3fd[_0xef0e('0x33')]=_0x5db3fd['attributes']['length']?_0x5db3fd[_0xef0e('0x33')]:_0x93c53b['model'];if(_0x574445[_0xef0e('0x2e')]['includeAll']){_0x5db3fd[_0xef0e('0x46')]=[{'all':!![]}];}_0x5db3fd=_[_0xef0e('0x3e')]({},_0x5db3fd,_0x574445[_0xef0e('0x3f')]);return db[_0xef0e('0x29')]['find'](_0x5db3fd)['then'](handleEntityNotFound(_0x2adf24,null))[_0xef0e('0x23')](function(_0x5bb283){if(_0x5bb283){var _0x4b0a3e=_0x5bb283[_0xef0e('0x47')]({'plain':!![]});_0x4b0a3e=qs[_0xef0e('0x48')](_0x4b0a3e,['id','createdAt',_0xef0e('0x49')]);_0x574445[_0xef0e('0x4a')]=_['omit'](_0x574445[_0xef0e('0x4a')],['id','createdAt','updatedAt']);return db['Attachment'][_0xef0e('0x4b')](_[_0xef0e('0x3e')](_0x4b0a3e,_0x574445[_0xef0e('0x4a')]),{'include':_0x574445[_0xef0e('0x2e')]['includeAll']?[{'all':!![]}]:undefined});}})[_0xef0e('0x23')](respondWithResult(_0x2adf24,0xc9))[_0xef0e('0x42')](handleError(_0x2adf24,null));};exports['update']=function(_0xcb5961,_0x4e6bc9){if(_0xcb5961[_0xef0e('0x4a')]['id']){delete _0xcb5961['body']['id'];}return db[_0xef0e('0x29')][_0xef0e('0x45')]({'where':{'id':_0xcb5961[_0xef0e('0x44')]['id']}})['then'](handleEntityNotFound(_0x4e6bc9,null))['then'](saveUpdates(_0xcb5961[_0xef0e('0x4a')],null))[_0xef0e('0x23')](respondWithResult(_0x4e6bc9,null))[_0xef0e('0x42')](handleError(_0x4e6bc9,null));};exports[_0xef0e('0x4c')]=function(_0x1f4d29,_0x2a0876){return db['Attachment'][_0xef0e('0x45')]({'where':{'id':_0x1f4d29[_0xef0e('0x44')]['id']}})['then'](handleEntityNotFound(_0x2a0876,null))[_0xef0e('0x23')](removeEntity(_0x2a0876,null))[_0xef0e('0x42')](handleError(_0x2a0876,null));};exports[_0xef0e('0x4b')]=function(_0x336c59,_0x45efc6,_0x335a1b){_0x336c59['body'][_0xef0e('0x26')]=_0x336c59[_0xef0e('0x4d')]['originalname'];_0x336c59['body']['basename']=_0x336c59['file']['filename'];_0x336c59[_0xef0e('0x4a')][_0xef0e('0x3c')]=_0x336c59[_0xef0e('0x4d')][_0xef0e('0x4e')];return db['Attachment'][_0xef0e('0x4b')](_0x336c59[_0xef0e('0x4a')])[_0xef0e('0x23')](respondWithResult(_0x45efc6,0xc9))[_0xef0e('0x42')](handleError(_0x45efc6,null));};exports[_0xef0e('0x4f')]=function(_0x452b75,_0x495ef4,_0x3e9e91){return db[_0xef0e('0x29')][_0xef0e('0x50')]({'where':{'id':_0x452b75[_0xef0e('0x44')]['id']},'raw':!![]})[_0xef0e('0x23')](handleEntityNotFound(_0x495ef4,null))[_0xef0e('0x23')](function(_0x27463b){if(_0x27463b){return _0x495ef4[_0xef0e('0x4f')](path['join'](config[_0xef0e('0x51')],_0xef0e('0x52'),_0x27463b[_0xef0e('0x53')]));}})['catch'](handleError(_0x495ef4,null));};
\ No newline at end of file
diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js
index 6d6249c..9cdddfe 100644
--- a/server/api/attachment/attachment.model.js
+++ b/server/api/attachment/attachment.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x9af1=['../../config/environment','exports','define','Attachment','lodash','util','../../config/logger','moment','bluebird','request-promise'];(function(_0x7f8c,_0x48fd8d){var _0x4d5454=function(_0x2e06a1){while(--_0x2e06a1){_0x7f8c['push'](_0x7f8c['shift']());}};_0x4d5454(++_0x48fd8d);}(_0x9af1,0x68));var _0x19af=function(_0x46f01c,_0x3833de){_0x46f01c=_0x46f01c-0x0;var _0x2a9593=_0x9af1[_0x46f01c];return _0x2a9593;};'use strict';var _=require(_0x19af('0x0'));var util=require(_0x19af('0x1'));var logger=require(_0x19af('0x2'))('api');var moment=require(_0x19af('0x3'));var BPromise=require(_0x19af('0x4'));var rp=require(_0x19af('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x19af('0x6'));var attributes=require('./attachment.attributes');module[_0x19af('0x7')]=function(_0x157fc9,_0x41a50f){return _0x157fc9[_0x19af('0x8')](_0x19af('0x9'),attributes,{'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x881e=['Attachment','attachments','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./attachment.attributes'];(function(_0x2f643c,_0x5897ab){var _0x1f2685=function(_0x2d3afd){while(--_0x2d3afd){_0x2f643c['push'](_0x2f643c['shift']());}};_0x1f2685(++_0x5897ab);}(_0x881e,0x146));var _0xe881=function(_0x120c05,_0xb8bc8){_0x120c05=_0x120c05-0x0;var _0x524077=_0x881e[_0x120c05];return _0x524077;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xe881('0x0'))(_0xe881('0x1'));var moment=require('moment');var BPromise=require(_0xe881('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe881('0x3'));var rimraf=require(_0xe881('0x4'));var config=require(_0xe881('0x5'));var attributes=require(_0xe881('0x6'));module['exports']=function(_0x1d9bc0,_0xa4fe06){return _0x1d9bc0['define'](_0xe881('0x7'),attributes,{'tableName':_0xe881('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js
index 1c86faa..12db8ba 100644
--- a/server/api/attachment/attachment.rpc.js
+++ b/server/api/attachment/attachment.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc924=['Attachment,\x20%s,\x20%s','request\x20sent','debug','Attachment,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','CreateAttachment','Attachment','create','body','raw','then','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','http','request'];(function(_0x5cb1af,_0x4bdc8c){var _0x8d7940=function(_0x3db70a){while(--_0x3db70a){_0x5cb1af['push'](_0x5cb1af['shift']());}};_0x8d7940(++_0x4bdc8c);}(_0xc924,0x1c1));var _0x4c92=function(_0x377e7e,_0x39d77c){_0x377e7e=_0x377e7e-0x0;var _0x3683a4=_0xc924[_0x377e7e];return _0x3683a4;};'use strict';var _=require(_0x4c92('0x0'));var util=require(_0x4c92('0x1'));var moment=require(_0x4c92('0x2'));var BPromise=require(_0x4c92('0x3'));var rs=require(_0x4c92('0x4'));var fs=require('fs');var Redis=require(_0x4c92('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x4c92('0x6'));var logger=require(_0x4c92('0x7'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0x4c92('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1d32ca,_0x826a29,_0x1874c3){return new BPromise(function(_0x1b1ffc,_0x5805f7){return client[_0x4c92('0x9')](_0x1d32ca,_0x1874c3)['then'](function(_0x4e547d){logger['info'](_0x4c92('0xa'),_0x826a29,_0x4c92('0xb'));logger[_0x4c92('0xc')](_0x4c92('0xd'),_0x826a29,'request\x20sent',JSON[_0x4c92('0xe')](_0x4e547d));if(_0x4e547d['error']){if(_0x4e547d[_0x4c92('0xf')][_0x4c92('0x10')]===0x1f4){logger['error'](_0x4c92('0xa'),_0x826a29,_0x4e547d[_0x4c92('0xf')][_0x4c92('0x11')]);return _0x5805f7(_0x4e547d['error'][_0x4c92('0x11')]);}logger[_0x4c92('0xf')](_0x4c92('0xa'),_0x826a29,_0x4e547d['error'][_0x4c92('0x11')]);return _0x1b1ffc(_0x4e547d['error'][_0x4c92('0x11')]);}else{logger[_0x4c92('0x12')]('Attachment,\x20%s,\x20%s',_0x826a29,_0x4c92('0xb'));_0x1b1ffc(_0x4e547d[_0x4c92('0x13')][_0x4c92('0x11')]);}})[_0x4c92('0x14')](function(_0x1acd08){logger[_0x4c92('0xf')](_0x4c92('0xa'),_0x826a29,_0x1acd08);_0x5805f7(_0x1acd08);});});}exports[_0x4c92('0x15')]=function(_0x220d6f){var _0x1b1ca1=this;return new Promise(function(_0x22892f,_0x1e0995){return db[_0x4c92('0x16')][_0x4c92('0x17')](_0x220d6f[_0x4c92('0x18')],{'raw':_0x220d6f['options']?_0x220d6f['options'][_0x4c92('0x19')]===undefined?!![]:![]:!![]})[_0x4c92('0x1a')](function(_0x98dc96){logger['info']('CreateAttachment',_0x220d6f);logger[_0x4c92('0xc')]('CreateAttachment',_0x220d6f,JSON[_0x4c92('0xe')](_0x98dc96));_0x22892f(_0x98dc96);})[_0x4c92('0x14')](function(_0x3400da){logger[_0x4c92('0xf')](_0x4c92('0x15'),_0x3400da[_0x4c92('0x11')],_0x220d6f);_0x1e0995(_0x1b1ca1[_0x4c92('0xf')](0x1f4,_0x3400da[_0x4c92('0x11')]));});});};
\ No newline at end of file
+var _0x31c2=['message','Attachment,\x20%s,\x20%s','result','catch','CreateAttachment','Attachment','create','body','options','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','info','request\x20sent','debug','Attachment,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x5959c9,_0x2ed153){var _0x4ffcbc=function(_0x459b7a){while(--_0x459b7a){_0x5959c9['push'](_0x5959c9['shift']());}};_0x4ffcbc(++_0x2ed153);}(_0x31c2,0x175));var _0x231c=function(_0x5e259c,_0x497d32){_0x5e259c=_0x5e259c-0x0;var _0x183d49=_0x31c2[_0x5e259c];return _0x183d49;};'use strict';var _=require('lodash');var util=require(_0x231c('0x0'));var moment=require(_0x231c('0x1'));var BPromise=require(_0x231c('0x2'));var rs=require(_0x231c('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x231c('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x231c('0x5'))(_0x231c('0x6'));var config=require(_0x231c('0x7'));var jayson=require(_0x231c('0x8'));var client=jayson[_0x231c('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0xa6bcba,_0x471c12,_0x15ce1a){return new BPromise(function(_0x34504c,_0x156485){return client[_0x231c('0xa')](_0xa6bcba,_0x15ce1a)['then'](function(_0x16bb8c){logger[_0x231c('0xb')]('Attachment,\x20%s,\x20%s',_0x471c12,_0x231c('0xc'));logger[_0x231c('0xd')](_0x231c('0xe'),_0x471c12,'request\x20sent',JSON[_0x231c('0xf')](_0x16bb8c));if(_0x16bb8c['error']){if(_0x16bb8c[_0x231c('0x10')]['code']===0x1f4){logger['error']('Attachment,\x20%s,\x20%s',_0x471c12,_0x16bb8c[_0x231c('0x10')][_0x231c('0x11')]);return _0x156485(_0x16bb8c['error']['message']);}logger[_0x231c('0x10')](_0x231c('0x12'),_0x471c12,_0x16bb8c[_0x231c('0x10')][_0x231c('0x11')]);return _0x34504c(_0x16bb8c[_0x231c('0x10')][_0x231c('0x11')]);}else{logger[_0x231c('0xb')](_0x231c('0x12'),_0x471c12,_0x231c('0xc'));_0x34504c(_0x16bb8c[_0x231c('0x13')]['message']);}})[_0x231c('0x14')](function(_0x466957){logger[_0x231c('0x10')](_0x231c('0x12'),_0x471c12,_0x466957);_0x156485(_0x466957);});});}exports[_0x231c('0x15')]=function(_0x2f94af){var _0x43f994=this;return new Promise(function(_0x26f6c6,_0x31209a){return db[_0x231c('0x16')][_0x231c('0x17')](_0x2f94af[_0x231c('0x18')],{'raw':_0x2f94af[_0x231c('0x19')]?_0x2f94af[_0x231c('0x19')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0xf38123){logger[_0x231c('0xb')](_0x231c('0x15'),_0x2f94af);logger['debug'](_0x231c('0x15'),_0x2f94af,JSON[_0x231c('0xf')](_0xf38123));_0x26f6c6(_0xf38123);})[_0x231c('0x14')](function(_0x480bfe){logger[_0x231c('0x10')](_0x231c('0x15'),_0x480bfe[_0x231c('0x11')],_0x2f94af);_0x31209a(_0x43f994[_0x231c('0x10')](0x1f4,_0x480bfe[_0x231c('0x11')]));});});};
\ No newline at end of file
diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js
index ea789de..332038c 100644
--- a/server/api/attachment/index.js
+++ b/server/api/attachment/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x9962=['update','delete','destroy','exports','multer','path','connect-timeout','express','../../components/auth/service','../../config/environment','./attachment.controller','isAuthenticated','index','/:id','show','get','/:id/download','download','/:id/clone','clone','diskStorage','join','root','format','now','replace','post','file','create','put'];(function(_0x3ba924,_0x3b99f0){var _0x4cc1df=function(_0x15bf28){while(--_0x15bf28){_0x3ba924['push'](_0x3ba924['shift']());}};_0x4cc1df(++_0x3b99f0);}(_0x9962,0xb8));var _0x2996=function(_0x98e959,_0x56c61a){_0x98e959=_0x98e959-0x0;var _0x25a705=_0x9962[_0x98e959];return _0x25a705;};'use strict';var multer=require(_0x2996('0x0'));var util=require('util');var path=require(_0x2996('0x1'));var timeout=require(_0x2996('0x2'));var express=require(_0x2996('0x3'));var router=express['Router']();var auth=require(_0x2996('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2996('0x5'));var controller=require(_0x2996('0x6'));router['get']('/',auth[_0x2996('0x7')](),controller[_0x2996('0x8')]);router['get'](_0x2996('0x9'),auth[_0x2996('0x7')](),controller[_0x2996('0xa')]);router[_0x2996('0xb')](_0x2996('0xc'),auth['isAuthenticated'](),controller[_0x2996('0xd')]);router['post'](_0x2996('0xe'),auth[_0x2996('0x7')](),controller[_0x2996('0xf')]);var upload=multer({'storage':multer[_0x2996('0x10')]({'destination':function(_0x4f3716,_0x304bd9,_0x37f772){_0x37f772(null,path[_0x2996('0x11')](config[_0x2996('0x12')],'server/files/attachments/'));},'filename':function(_0x2ffb75,_0x21f096,_0x10a958){_0x10a958(null,util[_0x2996('0x13')]('%s-%s',Date[_0x2996('0x14')](),_0x21f096['originalname'][_0x2996('0x15')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x2996('0x16')]('/',upload['single'](_0x2996('0x17')),controller[_0x2996('0x18')]);router[_0x2996('0x19')](_0x2996('0x9'),auth[_0x2996('0x7')](),controller[_0x2996('0x1a')]);router[_0x2996('0x1b')]('/:id',auth['isAuthenticated'](),controller[_0x2996('0x1c')]);module[_0x2996('0x1d')]=router;
\ No newline at end of file
+var _0x29a6=['originalname','replace','single','file','create','update','delete','destroy','exports','multer','path','Router','../../components/auth/service','get','isAuthenticated','index','/:id','show','download','post','/:id/clone','clone','diskStorage','server/files/attachments/','%s-%s','now'];(function(_0x468171,_0x29cf34){var _0x189ac7=function(_0x154b20){while(--_0x154b20){_0x468171['push'](_0x468171['shift']());}};_0x189ac7(++_0x29cf34);}(_0x29a6,0xd9));var _0x629a=function(_0x3d5cc0,_0x2b998f){_0x3d5cc0=_0x3d5cc0-0x0;var _0x15966d=_0x29a6[_0x3d5cc0];return _0x15966d;};'use strict';var multer=require(_0x629a('0x0'));var util=require('util');var path=require(_0x629a('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x629a('0x2')]();var auth=require(_0x629a('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./attachment.controller');router[_0x629a('0x4')]('/',auth[_0x629a('0x5')](),controller[_0x629a('0x6')]);router[_0x629a('0x4')](_0x629a('0x7'),auth['isAuthenticated'](),controller[_0x629a('0x8')]);router[_0x629a('0x4')]('/:id/download',auth[_0x629a('0x5')](),controller[_0x629a('0x9')]);router[_0x629a('0xa')](_0x629a('0xb'),auth[_0x629a('0x5')](),controller[_0x629a('0xc')]);var upload=multer({'storage':multer[_0x629a('0xd')]({'destination':function(_0x3ca857,_0x3108ab,_0x40c7be){_0x40c7be(null,path['join'](config['root'],_0x629a('0xe')));},'filename':function(_0x3e4dfc,_0x1549bd,_0x2165dd){_0x2165dd(null,util['format'](_0x629a('0xf'),Date[_0x629a('0x10')](),_0x1549bd[_0x629a('0x11')][_0x629a('0x12')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x629a('0xa')]('/',upload[_0x629a('0x13')](_0x629a('0x14')),controller[_0x629a('0x15')]);router['put'](_0x629a('0x7'),auth[_0x629a('0x5')](),controller[_0x629a('0x16')]);router[_0x629a('0x17')](_0x629a('0x7'),auth[_0x629a('0x5')](),controller[_0x629a('0x18')]);module[_0x629a('0x19')]=router;
\ No newline at end of file
diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js
index 7a68464..4f65211 100644
--- a/server/api/authGoogle/authGoogle.controller.js
+++ b/server/api/authGoogle/authGoogle.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcb82=['../../config/environment','../../config/utils','login','authenticate','google','/login','email','callback','use','clientID','secret','callbackURL','Setting','findOne','allowedLoginAttempts','blockDuration','then','User','find','emails','value','user','agent','disabled','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','blocked','blockedAt','add','minutes','clearBlockUser','getLicense','catch','passport','Strategy','moment','../../mysqldb'];(function(_0x432bd3,_0x173894){var _0x4586d1=function(_0x49fe54){while(--_0x49fe54){_0x432bd3['push'](_0x432bd3['shift']());}};_0x4586d1(++_0x173894);}(_0xcb82,0x140));var _0x2cb8=function(_0x4c0795,_0x461c17){_0x4c0795=_0x4c0795-0x0;var _0x597e79=_0xcb82[_0x4c0795];return _0x597e79;};'use strict';var _=require('lodash');var passport=require(_0x2cb8('0x0'));var GoogleStrategy=require('passport-google-oauth20')[_0x2cb8('0x1')];var moment=require(_0x2cb8('0x2'));var db=require(_0x2cb8('0x3'))['db'];var config=require(_0x2cb8('0x4'));var signToken=require('../../components/auth/service')['signToken'];var utils=require(_0x2cb8('0x5'));exports[_0x2cb8('0x6')]=passport[_0x2cb8('0x7')](_0x2cb8('0x8'),{'failureRedirect':_0x2cb8('0x9'),'scope':['profile',_0x2cb8('0xa')],'session':![]});exports[_0x2cb8('0xb')]=passport['authenticate'](_0x2cb8('0x8'),{'failureRedirect':_0x2cb8('0x9'),'session':![]});passport[_0x2cb8('0xc')](new GoogleStrategy({'clientID':config[_0x2cb8('0x8')]?config[_0x2cb8('0x8')][_0x2cb8('0xd')]:'id','clientSecret':config[_0x2cb8('0x8')]?config['google']['clientSecret']:_0x2cb8('0xe'),'callbackURL':config[_0x2cb8('0x8')]?config[_0x2cb8('0x8')][_0x2cb8('0xf')]:''},function(_0x37f92e,_0x53808b,_0x2da272,_0x727c57){var _0x544156,_0x11a32a;return db[_0x2cb8('0x10')][_0x2cb8('0x11')]({'where':{'id':0x1},'attributes':[_0x2cb8('0x12'),_0x2cb8('0x13')],'raw':!![]})[_0x2cb8('0x14')](function(_0x4a0a3f){_0x544156=_0x4a0a3f;return db[_0x2cb8('0x15')][_0x2cb8('0x16')]({'where':{'email':_['map'](_0x2da272[_0x2cb8('0x17')],_0x2cb8('0x18')),'role':{'$or':['admin',_0x2cb8('0x19'),_0x2cb8('0x1a')]}}});})[_0x2cb8('0x14')](function(_0x47d9cf){_0x11a32a=_0x47d9cf;if(_0x11a32a){if(_0x11a32a[_0x2cb8('0x1b')]){return _0x727c57(_0x2cb8('0x1c'));}else if(_0x544156['blockDuration']>0x0){if(_0x11a32a[_0x2cb8('0x1d')]){if(moment(_0x11a32a[_0x2cb8('0x1e')])[_0x2cb8('0x1f')](_0x544156[_0x2cb8('0x13')],_0x2cb8('0x20'))>moment()){return _0x727c57(_0x2cb8('0x1c'));}else{return utils[_0x2cb8('0x21')](_0x11a32a,0x0,![],null)[_0x2cb8('0x14')](function(){return utils[_0x2cb8('0x22')](_0x11a32a);})[_0x2cb8('0x14')](function(){return _0x727c57(null,_0x11a32a);});}}else{return utils['getLicense'](_0x11a32a)[_0x2cb8('0x14')](function(){return _0x727c57(null,_0x11a32a);});}}else{return utils[_0x2cb8('0x22')](_0x11a32a)[_0x2cb8('0x14')](function(){return _0x727c57(null,_0x11a32a);});}}return _0x727c57('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');})[_0x2cb8('0x23')](function(_0x25673d){_0x727c57(_0x25673d);});}));
\ No newline at end of file
+var _0x1758=['google','/login','profile','email','callback','use','secret','callbackURL','Setting','findOne','allowedLoginAttempts','blockDuration','then','map','emails','value','admin','user','agent','disabled','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','blocked','blockedAt','add','clearBlockUser','getLicense','catch','passport','Strategy','moment','../../mysqldb','../../config/environment','../../components/auth/service','signToken','../../config/utils','login'];(function(_0x17c2d1,_0x157af2){var _0x5c812f=function(_0x561500){while(--_0x561500){_0x17c2d1['push'](_0x17c2d1['shift']());}};_0x5c812f(++_0x157af2);}(_0x1758,0xab));var _0x8175=function(_0x40d79f,_0x3f7c81){_0x40d79f=_0x40d79f-0x0;var _0x5bd7d7=_0x1758[_0x40d79f];return _0x5bd7d7;};'use strict';var _=require('lodash');var passport=require(_0x8175('0x0'));var GoogleStrategy=require('passport-google-oauth20')[_0x8175('0x1')];var moment=require(_0x8175('0x2'));var db=require(_0x8175('0x3'))['db'];var config=require(_0x8175('0x4'));var signToken=require(_0x8175('0x5'))[_0x8175('0x6')];var utils=require(_0x8175('0x7'));exports[_0x8175('0x8')]=passport['authenticate'](_0x8175('0x9'),{'failureRedirect':_0x8175('0xa'),'scope':[_0x8175('0xb'),_0x8175('0xc')],'session':![]});exports[_0x8175('0xd')]=passport['authenticate'](_0x8175('0x9'),{'failureRedirect':'/login','session':![]});passport[_0x8175('0xe')](new GoogleStrategy({'clientID':config[_0x8175('0x9')]?config['google']['clientID']:'id','clientSecret':config[_0x8175('0x9')]?config[_0x8175('0x9')]['clientSecret']:_0x8175('0xf'),'callbackURL':config[_0x8175('0x9')]?config[_0x8175('0x9')][_0x8175('0x10')]:''},function(_0x557f5c,_0xc8b6b1,_0x41dd63,_0x4e4702){var _0x427064,_0x586879;return db[_0x8175('0x11')][_0x8175('0x12')]({'where':{'id':0x1},'attributes':[_0x8175('0x13'),_0x8175('0x14')],'raw':!![]})[_0x8175('0x15')](function(_0x3acb49){_0x427064=_0x3acb49;return db['User']['find']({'where':{'email':_[_0x8175('0x16')](_0x41dd63[_0x8175('0x17')],_0x8175('0x18')),'role':{'$or':[_0x8175('0x19'),_0x8175('0x1a'),_0x8175('0x1b')]}}});})[_0x8175('0x15')](function(_0xf51d06){_0x586879=_0xf51d06;if(_0x586879){if(_0x586879[_0x8175('0x1c')]){return _0x4e4702(_0x8175('0x1d'));}else if(_0x427064[_0x8175('0x14')]>0x0){if(_0x586879[_0x8175('0x1e')]){if(moment(_0x586879[_0x8175('0x1f')])[_0x8175('0x20')](_0x427064[_0x8175('0x14')],'minutes')>moment()){return _0x4e4702(_0x8175('0x1d'));}else{return utils[_0x8175('0x21')](_0x586879,0x0,![],null)['then'](function(){return utils['getLicense'](_0x586879);})[_0x8175('0x15')](function(){return _0x4e4702(null,_0x586879);});}}else{return utils[_0x8175('0x22')](_0x586879)[_0x8175('0x15')](function(){return _0x4e4702(null,_0x586879);});}}else{return utils[_0x8175('0x22')](_0x586879)[_0x8175('0x15')](function(){return _0x4e4702(null,_0x586879);});}}return _0x4e4702(_0x8175('0x1d'));})[_0x8175('0x23')](function(_0xecf8b7){_0x4e4702(_0xecf8b7);});}));
\ No newline at end of file
diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js
index f3970ae..2bd7d77 100644
--- a/server/api/authGoogle/index.js
+++ b/server/api/authGoogle/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1152=['../user/user.controller.js','../../components/auth/service','get','login','/callback','isMiddleware','express','passport','Router','./authGoogle.controller'];(function(_0x3cb9eb,_0x3fd4b9){var _0x4d5970=function(_0x4bfaa5){while(--_0x4bfaa5){_0x3cb9eb['push'](_0x3cb9eb['shift']());}};_0x4d5970(++_0x3fd4b9);}(_0x1152,0x182));var _0x2115=function(_0x34f701,_0x37e407){_0x34f701=_0x34f701-0x0;var _0x3e2429=_0x1152[_0x34f701];return _0x3e2429;};'use strict';var express=require(_0x2115('0x0'));var passport=require(_0x2115('0x1'));var router=express[_0x2115('0x2')]();var controller=require(_0x2115('0x3'));var userController=require(_0x2115('0x4'));var authService=require(_0x2115('0x5'));router[_0x2115('0x6')]('/',controller[_0x2115('0x7')]);router['get'](_0x2115('0x8'),controller['callback'],authService[_0x2115('0x9')],userController[_0x2115('0x7')],authService['setTokenCookie']);module['exports']=router;
\ No newline at end of file
+var _0x342e=['login','setTokenCookie','express','passport','Router','../../components/auth/service','get','/callback','callback','isMiddleware'];(function(_0x34ae1f,_0x131931){var _0x12da74=function(_0x33a5ae){while(--_0x33a5ae){_0x34ae1f['push'](_0x34ae1f['shift']());}};_0x12da74(++_0x131931);}(_0x342e,0xde));var _0xe342=function(_0x377a6e,_0x59b99d){_0x377a6e=_0x377a6e-0x0;var _0x37f751=_0x342e[_0x377a6e];return _0x37f751;};'use strict';var express=require(_0xe342('0x0'));var passport=require(_0xe342('0x1'));var router=express[_0xe342('0x2')]();var controller=require('./authGoogle.controller');var userController=require('../user/user.controller.js');var authService=require(_0xe342('0x3'));router[_0xe342('0x4')]('/',controller['login']);router['get'](_0xe342('0x5'),controller[_0xe342('0x6')],authService[_0xe342('0x7')],userController[_0xe342('0x8')],authService[_0xe342('0x9')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js
index 7aab71a..9b9f434 100644
--- a/server/api/authLocal/authLocal.controller.js
+++ b/server/api/authLocal/authLocal.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xef6c=['test','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','login','authenticate','Something\x20went\x20wrong,\x20please\x20try\x20again.','signToken','json','forgot','Email\x20parameter\x20is\x20missing','generate','body','toLowerCase','User','find','This\x20email\x20is\x20not\x20registered.','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','resetPasswordExpires','save','xCally\x20Motion\x20Password\x20Reset','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','headers','Reset\x20Email\x20sent!','reset','params','token','now','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','securePassword','use','util','passport','passport-local','lodash','../../mysqldb','../../components/auth/service','client','http','Setting','allowedLoginAttempts','blockDuration','then','findOne','name','password','salt','role','blocked','blockedAt','loginAttempts','admin','user','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','add','minutes','clearBlockUser','disabled','getLicense','catch','MailAccount','email','MailServerOut','Smtp','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','service','host','port','secure','authentication','auth','pass','merge','format','SendMail','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','error','message','stringify','status','send'];(function(_0x622b4f,_0x41b809){var _0x46295f=function(_0x340cc6){while(--_0x340cc6){_0x622b4f['push'](_0x622b4f['shift']());}};_0x46295f(++_0x41b809);}(_0xef6c,0x10e));var _0xcef6=function(_0x19d350,_0x3c843f){_0x19d350=_0x19d350-0x0;var _0x3bfc8d=_0xef6c[_0x19d350];return _0x3bfc8d;};'use strict';var util=require(_0xcef6('0x0'));var passport=require(_0xcef6('0x1'));var LocalStrategy=require(_0xcef6('0x2'))['Strategy'];var jayson=require('jayson/promise');var _=require(_0xcef6('0x3'));var rs=require('randomstring');var moment=require('moment');var db=require(_0xcef6('0x4'))['db'];var authService=require(_0xcef6('0x5'));var utils=require('../../config/utils');var client=jayson[_0xcef6('0x6')][_0xcef6('0x7')]({'port':0x232b});function localAuthenticate(_0x52ab47,_0x238d3d,_0x315b7a,_0x40258f){var _0x556d49,_0x2582dd;return db[_0xcef6('0x8')]['findOne']({'where':{'id':0x1},'attributes':[_0xcef6('0x9'),_0xcef6('0xa')],'raw':!![]})[_0xcef6('0xb')](function(_0xebc1a3){_0x556d49=_0xebc1a3;return _0x52ab47[_0xcef6('0xc')]({'attributes':['id',_0xcef6('0xd'),_0xcef6('0xe'),_0xcef6('0xf'),_0xcef6('0x10'),'disabled',_0xcef6('0x11'),_0xcef6('0x12'),_0xcef6('0x13')],'where':{'name':_0x238d3d,'role':{'$or':[_0xcef6('0x14'),_0xcef6('0x15'),'agent']}}});})[_0xcef6('0xb')](function(_0x1a38a1){if(!_0x1a38a1||_0x1a38a1&&_0x1a38a1['name']!==_0x238d3d){throw new Error(_0xcef6('0x16'));}else{_0x2582dd=_0x1a38a1;return _0x2582dd;}})[_0xcef6('0xb')](function(){_0x2582dd['authenticate'](_0x315b7a,function(_0x3e0af5,_0x3d32dd){var _0x5103f2=_0x2582dd['loginAttempts']+0x1;if(_0x3e0af5){return _0x40258f(_0x3e0af5);}else if(!_0x3d32dd){if(_0x2582dd['disabled']){return _0x40258f(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}else if(_0x556d49['allowedLoginAttempts']>0x0){if(_0x2582dd[_0xcef6('0x11')]){if(_0x556d49[_0xcef6('0xa')]>0x0){if(moment(_0x2582dd[_0xcef6('0x12')])[_0xcef6('0x17')](_0x556d49[_0xcef6('0xa')],_0xcef6('0x18'))>moment()){return _0x40258f(null,![],{'message':_0xcef6('0x16')});}else{return utils['clearBlockUser'](_0x2582dd,_0x5103f2,![],null)[_0xcef6('0xb')](function(){return _0x40258f(null,![],{'message':_0xcef6('0x16')});});}}else{return _0x40258f(null,![],{'message':_0xcef6('0x16')});}}else{if(_0x5103f2>=_0x556d49['allowedLoginAttempts']){return utils['clearBlockUser'](_0x2582dd,0x0,!![],moment())[_0xcef6('0xb')](function(){return _0x40258f(null,![],{'message':_0xcef6('0x16')});});}else{return utils[_0xcef6('0x19')](_0x2582dd,_0x5103f2,![],null)[_0xcef6('0xb')](function(){return _0x40258f(null,![],{'message':_0xcef6('0x16')});});}}}else{return _0x40258f(null,![],{'message':_0xcef6('0x16')});}}else{if(_0x2582dd[_0xcef6('0x1a')]){return _0x40258f(null,![],{'message':_0xcef6('0x16')});}else if(_0x556d49[_0xcef6('0x9')]>0x0){if(_0x2582dd[_0xcef6('0x11')]){if(_0x556d49[_0xcef6('0xa')]>0x0){if(moment(_0x2582dd[_0xcef6('0x12')])['add'](_0x556d49['blockDuration'],_0xcef6('0x18'))>moment()){return _0x40258f(null,![],{'message':_0xcef6('0x16')});}else{return utils[_0xcef6('0x19')](_0x2582dd,0x0,![],null)[_0xcef6('0xb')](function(){return utils[_0xcef6('0x1b')](_0x2582dd);})[_0xcef6('0xb')](function(){return _0x40258f(null,_0x2582dd);});}}else{return _0x40258f(null,![],{'message':_0xcef6('0x16')});}}else{return utils['clearBlockUser'](_0x2582dd,0x0,![],null)[_0xcef6('0xb')](function(){return utils[_0xcef6('0x1b')](_0x2582dd);})['then'](function(){return _0x40258f(null,_0x2582dd);})[_0xcef6('0x1c')](function(_0x143abd){return _0x40258f(null,![],_0x143abd);});}}else{if(_0x2582dd[_0xcef6('0x11')]){return _0x40258f(null,![],{'message':_0xcef6('0x16')});}else{return utils[_0xcef6('0x1b')](_0x2582dd)['then'](function(){return _0x40258f(null,_0x2582dd);});}}}});})[_0xcef6('0x1c')](function(_0x290722){return _0x40258f(null,![],_0x290722);});}function sendServiceMail(_0x3f898d){return db[_0xcef6('0x1d')]['find']({'where':{'service':!![]},'attributes':['id',_0xcef6('0xd'),_0xcef6('0x1e')],'include':[{'model':db[_0xcef6('0x1f')],'as':_0xcef6('0x20')}]})[_0xcef6('0xb')](function(_0x235658){if(!_0x235658){throw new Error(_0xcef6('0x21'));}var _0x611249={'tls':{'rejectUnauthorized':![]}};if(_0x235658['Smtp'][_0xcef6('0x22')]){_0x611249[_0xcef6('0x22')]=_0x235658[_0xcef6('0x20')][_0xcef6('0x22')];}else{_0x611249[_0xcef6('0x23')]=_0x235658['Smtp']['host'];_0x611249[_0xcef6('0x24')]=_0x235658[_0xcef6('0x20')][_0xcef6('0x24')];_0x611249[_0xcef6('0x25')]=_0x235658[_0xcef6('0x20')][_0xcef6('0x25')];}if(_0x235658['Smtp'][_0xcef6('0x26')]){_0x611249[_0xcef6('0x27')]={'user':_0x235658[_0xcef6('0x20')][_0xcef6('0x15')],'pass':_0x235658[_0xcef6('0x20')][_0xcef6('0x28')]};}var _0x295928={'account':_0x611249,'message':_[_0xcef6('0x29')]({'from':util[_0xcef6('0x2a')]('\x22%s\x22\x20<%s>',_0x235658[_0xcef6('0xd')],_0x235658['email']||_0x235658[_0xcef6('0x20')][_0xcef6('0x15')])},_0x3f898d)};return client['request'](_0xcef6('0x2b'),_0x295928);})[_0xcef6('0xb')](function(_0x4659a4){if(_0x4659a4['error']){throw new Error(util[_0xcef6('0x2a')](_0xcef6('0x2c'),_0x4659a4[_0xcef6('0x2d')][_0xcef6('0x2e')]||JSON[_0xcef6('0x2f')](_0x4659a4[_0xcef6('0x2d')])));}return!![];});}function handleError(_0x3b99c1,_0x5e7b4e,_0x3c1005){return _0x3b99c1[_0xcef6('0x30')](_0x5e7b4e||0x1f4)[_0xcef6('0x31')]({'message':_0x3c1005?_0x3c1005[_0xcef6('0x2e')]||_0x3c1005:''});}function checkPasswordPattern(_0x41bd70,_0xa9fe40,_0x216936){if(_0x216936){var _0x4f1fe7=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x4f1fe7[_0xcef6('0x32')](_0xa9fe40)){return _0x41bd70;}else{throw new Error(_0xcef6('0x33'));}}else{return _0x41bd70;}}exports[_0xcef6('0x34')]=function(_0x53018b,_0x2ff2a1,_0x15e3d9){passport[_0xcef6('0x35')]('local',function(_0x274e03,_0x86b120,_0x236bbd){var _0x6ed73b=_0x274e03||_0x236bbd;if(_0x6ed73b){return handleError(_0x2ff2a1,0x191,_0x6ed73b);}if(!_0x86b120){return handleError(_0x2ff2a1,0x194,{'message':_0xcef6('0x36')});}else{var _0x429fc0={'payload':{'id':_0x86b120['id'],'role':_0x86b120[_0xcef6('0x10')]},'options':{'expiresIn':0x15180}};return authService[_0xcef6('0x37')](_0x429fc0)[_0xcef6('0xb')](function(_0x10d7ed){_0x2ff2a1[_0xcef6('0x38')]({'id':_0x86b120['id'],'token':_0x10d7ed,'statusCall':'','isAlreadyLogged':_0x86b120['online']});});}})(_0x53018b,_0x2ff2a1,_0x15e3d9);};exports[_0xcef6('0x39')]=function(_0x5ab496,_0x704cb6,_0x441c66){if(!_0x5ab496['body']['email']){return handleError(_0x704cb6,0x1f4,{'message':_0xcef6('0x3a')});}var _0x296aad=rs[_0xcef6('0x3b')]();_0x5ab496[_0xcef6('0x3c')][_0xcef6('0x1e')]=_0x5ab496[_0xcef6('0x3c')][_0xcef6('0x1e')]['trim']()[_0xcef6('0x3d')]();var _0x110358;return db['Setting']['findOne']({'where':{'id':0x1},'attributes':[_0xcef6('0x9'),_0xcef6('0xa')],'raw':!![]})[_0xcef6('0xb')](function(_0x4bfa47){_0x110358=_0x4bfa47;return db[_0xcef6('0x3e')][_0xcef6('0x3f')]({'where':{'email':_0x5ab496['body'][_0xcef6('0x1e')]}});})['then'](function(_0x48f4b7){if(!_0x48f4b7){throw new Error(_0xcef6('0x40'));}if(_0x48f4b7[_0xcef6('0x1a')]){throw new Error(_0xcef6('0x41'));}if(_0x48f4b7[_0xcef6('0x11')]){if(moment(_0x48f4b7[_0xcef6('0x12')])[_0xcef6('0x17')](_0x110358['blockDuration'],_0xcef6('0x18'))>moment()){throw new Error('The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.');}else{_0x48f4b7[_0xcef6('0x11')]=![];_0x48f4b7[_0xcef6('0x12')]=null;}}_0x48f4b7['resetPasswordToken']=_0x296aad;_0x48f4b7[_0xcef6('0x42')]=Date['now']()+0x36ee80;return _0x48f4b7[_0xcef6('0x43')]();})[_0xcef6('0xb')](function(){return sendServiceMail({'to':_0x5ab496[_0xcef6('0x3c')][_0xcef6('0x1e')],'subject':_0xcef6('0x44'),'text':_0xcef6('0x45')+_0xcef6('0x46')+'http://'+_0x5ab496[_0xcef6('0x47')][_0xcef6('0x23')]+'/reset/'+_0x296aad+'\x0a\x0a'+'If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a'});})[_0xcef6('0xb')](function(){_0x704cb6[_0xcef6('0x30')](0xc8)[_0xcef6('0x31')]({'message':_0xcef6('0x48')});})[_0xcef6('0x1c')](function(_0x1be04b){return handleError(_0x704cb6,0x1f4,_0x1be04b);});};exports[_0xcef6('0x49')]=function(_0x28ec17,_0x32ab85,_0x5b388b){var _0x103bef;return db['User'][_0xcef6('0x3f')]({'where':{'resetPasswordToken':_0x28ec17[_0xcef6('0x4a')][_0xcef6('0x4b')],'resetPasswordExpires':{'$gt':Date[_0xcef6('0x4c')]()}}})[_0xcef6('0xb')](function(_0x4bb53c){_0x103bef=_0x4bb53c;if(!_0x103bef){throw new Error(_0xcef6('0x4d'));}return db[_0xcef6('0x8')][_0xcef6('0xc')]({'attributes':['id',_0xcef6('0x4e')]});})[_0xcef6('0xb')](function(_0x365670){return checkPasswordPattern(_0x365670,_0x28ec17[_0xcef6('0x3c')]['password'],_0x365670[_0xcef6('0x4e')]);})[_0xcef6('0xb')](function(){_0x103bef['password']=_0x28ec17['body']['password'];_0x103bef['resetPasswordToken']=null;_0x103bef[_0xcef6('0x42')]=null;return _0x103bef['save']();})[_0xcef6('0xb')](function(){_0x32ab85[_0xcef6('0x30')](0xc8)[_0xcef6('0x31')]({'message':'Password\x20reset!'});})['catch'](function(_0x5cce33){return handleError(_0x32ab85,0x1f4,_0x5cce33);});};passport[_0xcef6('0x4f')](new LocalStrategy({'usernameField':'name','passwordField':'password'},function(_0x544a65,_0x5cce9f,_0x15e398){return localAuthenticate(db[_0xcef6('0x3e')],_0x544a65,_0x5cce9f,_0x15e398);}));
\ No newline at end of file
+var _0x739c=['../../components/auth/service','../../config/utils','client','http','allowedLoginAttempts','blockDuration','then','findOne','name','salt','disabled','blockedAt','admin','user','agent','authenticate','loginAttempts','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','blocked','add','clearBlockUser','getLicense','catch','MailAccount','find','email','MailServerOut','Smtp','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','service','port','secure','authentication','auth','pass','format','\x22%s\x22\x20<%s>','request','SendMail','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','error','message','status','send','test','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','login','local','Something\x20went\x20wrong,\x20please\x20try\x20again.','role','signToken','json','online','forgot','body','generate','toLowerCase','Setting','User','This\x20email\x20is\x20not\x20registered.','minutes','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','resetPasswordToken','resetPasswordExpires','now','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','http://','headers','host','/reset/','Reset\x20Email\x20sent!','reset','params','token','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','securePassword','password','Password\x20reset!','use','passport','lodash','randomstring','../../mysqldb'];(function(_0x28947d,_0x4cc9c6){var _0x12d2ee=function(_0x3f38fc){while(--_0x3f38fc){_0x28947d['push'](_0x28947d['shift']());}};_0x12d2ee(++_0x4cc9c6);}(_0x739c,0xf5));var _0xc739=function(_0x144735,_0x1a9353){_0x144735=_0x144735-0x0;var _0x5b72bc=_0x739c[_0x144735];return _0x5b72bc;};'use strict';var util=require('util');var passport=require(_0xc739('0x0'));var LocalStrategy=require('passport-local')['Strategy'];var jayson=require('jayson/promise');var _=require(_0xc739('0x1'));var rs=require(_0xc739('0x2'));var moment=require('moment');var db=require(_0xc739('0x3'))['db'];var authService=require(_0xc739('0x4'));var utils=require(_0xc739('0x5'));var client=jayson[_0xc739('0x6')][_0xc739('0x7')]({'port':0x232b});function localAuthenticate(_0x57a4f4,_0x4cd985,_0x4a7942,_0x5b7ae8){var _0x271bbc,_0x2633f6;return db['Setting']['findOne']({'where':{'id':0x1},'attributes':[_0xc739('0x8'),_0xc739('0x9')],'raw':!![]})[_0xc739('0xa')](function(_0x4b9085){_0x271bbc=_0x4b9085;return _0x57a4f4[_0xc739('0xb')]({'attributes':['id',_0xc739('0xc'),'password',_0xc739('0xd'),'role',_0xc739('0xe'),'blocked',_0xc739('0xf'),'loginAttempts'],'where':{'name':_0x4cd985,'role':{'$or':[_0xc739('0x10'),_0xc739('0x11'),_0xc739('0x12')]}}});})[_0xc739('0xa')](function(_0x431cf8){if(!_0x431cf8||_0x431cf8&&_0x431cf8['name']!==_0x4cd985){throw new Error('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');}else{_0x2633f6=_0x431cf8;return _0x2633f6;}})[_0xc739('0xa')](function(){_0x2633f6[_0xc739('0x13')](_0x4a7942,function(_0x45e69b,_0xc8002){var _0x3b6940=_0x2633f6[_0xc739('0x14')]+0x1;if(_0x45e69b){return _0x5b7ae8(_0x45e69b);}else if(!_0xc8002){if(_0x2633f6[_0xc739('0xe')]){return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});}else if(_0x271bbc[_0xc739('0x8')]>0x0){if(_0x2633f6[_0xc739('0x16')]){if(_0x271bbc[_0xc739('0x9')]>0x0){if(moment(_0x2633f6[_0xc739('0xf')])[_0xc739('0x17')](_0x271bbc[_0xc739('0x9')],'minutes')>moment()){return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});}else{return utils[_0xc739('0x18')](_0x2633f6,_0x3b6940,![],null)[_0xc739('0xa')](function(){return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});});}}else{return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});}}else{if(_0x3b6940>=_0x271bbc[_0xc739('0x8')]){return utils[_0xc739('0x18')](_0x2633f6,0x0,!![],moment())['then'](function(){return _0x5b7ae8(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});});}else{return utils[_0xc739('0x18')](_0x2633f6,_0x3b6940,![],null)[_0xc739('0xa')](function(){return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});});}}}else{return _0x5b7ae8(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}}else{if(_0x2633f6[_0xc739('0xe')]){return _0x5b7ae8(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}else if(_0x271bbc[_0xc739('0x8')]>0x0){if(_0x2633f6[_0xc739('0x16')]){if(_0x271bbc['blockDuration']>0x0){if(moment(_0x2633f6[_0xc739('0xf')])[_0xc739('0x17')](_0x271bbc[_0xc739('0x9')],'minutes')>moment()){return _0x5b7ae8(null,![],{'message':_0xc739('0x15')});}else{return utils['clearBlockUser'](_0x2633f6,0x0,![],null)['then'](function(){return utils[_0xc739('0x19')](_0x2633f6);})[_0xc739('0xa')](function(){return _0x5b7ae8(null,_0x2633f6);});}}else{return _0x5b7ae8(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}}else{return utils[_0xc739('0x18')](_0x2633f6,0x0,![],null)['then'](function(){return utils['getLicense'](_0x2633f6);})[_0xc739('0xa')](function(){return _0x5b7ae8(null,_0x2633f6);})['catch'](function(_0x5e124f){return _0x5b7ae8(null,![],_0x5e124f);});}}else{if(_0x2633f6['blocked']){return _0x5b7ae8(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}else{return utils['getLicense'](_0x2633f6)[_0xc739('0xa')](function(){return _0x5b7ae8(null,_0x2633f6);});}}}});})[_0xc739('0x1a')](function(_0x392945){return _0x5b7ae8(null,![],_0x392945);});}function sendServiceMail(_0x1f78fc){return db[_0xc739('0x1b')][_0xc739('0x1c')]({'where':{'service':!![]},'attributes':['id',_0xc739('0xc'),_0xc739('0x1d')],'include':[{'model':db[_0xc739('0x1e')],'as':_0xc739('0x1f')}]})['then'](function(_0xfab8e3){if(!_0xfab8e3){throw new Error(_0xc739('0x20'));}var _0x3176ed={'tls':{'rejectUnauthorized':![]}};if(_0xfab8e3[_0xc739('0x1f')][_0xc739('0x21')]){_0x3176ed[_0xc739('0x21')]=_0xfab8e3[_0xc739('0x1f')]['service'];}else{_0x3176ed['host']=_0xfab8e3[_0xc739('0x1f')]['host'];_0x3176ed['port']=_0xfab8e3['Smtp'][_0xc739('0x22')];_0x3176ed[_0xc739('0x23')]=_0xfab8e3[_0xc739('0x1f')][_0xc739('0x23')];}if(_0xfab8e3['Smtp'][_0xc739('0x24')]){_0x3176ed[_0xc739('0x25')]={'user':_0xfab8e3[_0xc739('0x1f')][_0xc739('0x11')],'pass':_0xfab8e3[_0xc739('0x1f')][_0xc739('0x26')]};}var _0x28812d={'account':_0x3176ed,'message':_['merge']({'from':util[_0xc739('0x27')](_0xc739('0x28'),_0xfab8e3['name'],_0xfab8e3[_0xc739('0x1d')]||_0xfab8e3[_0xc739('0x1f')][_0xc739('0x11')])},_0x1f78fc)};return client[_0xc739('0x29')](_0xc739('0x2a'),_0x28812d);})['then'](function(_0xf36c){if(_0xf36c['error']){throw new Error(util[_0xc739('0x27')](_0xc739('0x2b'),_0xf36c[_0xc739('0x2c')][_0xc739('0x2d')]||JSON['stringify'](_0xf36c[_0xc739('0x2c')])));}return!![];});}function handleError(_0x40f6c2,_0x309d27,_0xaac4e0){return _0x40f6c2[_0xc739('0x2e')](_0x309d27||0x1f4)[_0xc739('0x2f')]({'message':_0xaac4e0?_0xaac4e0['message']||_0xaac4e0:''});}function checkPasswordPattern(_0x2f56ee,_0x633b8b,_0x183ae8){if(_0x183ae8){var _0x5d429c=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x5d429c[_0xc739('0x30')](_0x633b8b)){return _0x2f56ee;}else{throw new Error(_0xc739('0x31'));}}else{return _0x2f56ee;}}exports[_0xc739('0x32')]=function(_0x3c3fda,_0x4e8144,_0x1f1a47){passport[_0xc739('0x13')](_0xc739('0x33'),function(_0x8b2183,_0x3101da,_0x3820a6){var _0x6f9b3a=_0x8b2183||_0x3820a6;if(_0x6f9b3a){return handleError(_0x4e8144,0x191,_0x6f9b3a);}if(!_0x3101da){return handleError(_0x4e8144,0x194,{'message':_0xc739('0x34')});}else{var _0x2af856={'payload':{'id':_0x3101da['id'],'role':_0x3101da[_0xc739('0x35')]},'options':{'expiresIn':0x15180}};return authService[_0xc739('0x36')](_0x2af856)[_0xc739('0xa')](function(_0xd48d26){_0x4e8144[_0xc739('0x37')]({'id':_0x3101da['id'],'token':_0xd48d26,'statusCall':'','isAlreadyLogged':_0x3101da[_0xc739('0x38')]});});}})(_0x3c3fda,_0x4e8144,_0x1f1a47);};exports[_0xc739('0x39')]=function(_0xcb6400,_0x3f12c7,_0x1cf17a){if(!_0xcb6400[_0xc739('0x3a')][_0xc739('0x1d')]){return handleError(_0x3f12c7,0x1f4,{'message':'Email\x20parameter\x20is\x20missing'});}var _0x155a27=rs[_0xc739('0x3b')]();_0xcb6400[_0xc739('0x3a')][_0xc739('0x1d')]=_0xcb6400[_0xc739('0x3a')][_0xc739('0x1d')]['trim']()[_0xc739('0x3c')]();var _0x6dfed4;return db[_0xc739('0x3d')][_0xc739('0xb')]({'where':{'id':0x1},'attributes':[_0xc739('0x8'),_0xc739('0x9')],'raw':!![]})[_0xc739('0xa')](function(_0x27dae3){_0x6dfed4=_0x27dae3;return db[_0xc739('0x3e')][_0xc739('0x1c')]({'where':{'email':_0xcb6400[_0xc739('0x3a')]['email']}});})[_0xc739('0xa')](function(_0x9f78a0){if(!_0x9f78a0){throw new Error(_0xc739('0x3f'));}if(_0x9f78a0[_0xc739('0xe')]){throw new Error('The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.');}if(_0x9f78a0[_0xc739('0x16')]){if(moment(_0x9f78a0[_0xc739('0xf')])[_0xc739('0x17')](_0x6dfed4[_0xc739('0x9')],_0xc739('0x40'))>moment()){throw new Error(_0xc739('0x41'));}else{_0x9f78a0[_0xc739('0x16')]=![];_0x9f78a0[_0xc739('0xf')]=null;}}_0x9f78a0[_0xc739('0x42')]=_0x155a27;_0x9f78a0[_0xc739('0x43')]=Date[_0xc739('0x44')]()+0x36ee80;return _0x9f78a0['save']();})[_0xc739('0xa')](function(){return sendServiceMail({'to':_0xcb6400[_0xc739('0x3a')]['email'],'subject':'xCally\x20Motion\x20Password\x20Reset','text':'You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a'+_0xc739('0x45')+_0xc739('0x46')+_0xcb6400[_0xc739('0x47')][_0xc739('0x48')]+_0xc739('0x49')+_0x155a27+'\x0a\x0a'+'If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a'});})[_0xc739('0xa')](function(){_0x3f12c7[_0xc739('0x2e')](0xc8)[_0xc739('0x2f')]({'message':_0xc739('0x4a')});})[_0xc739('0x1a')](function(_0x106229){return handleError(_0x3f12c7,0x1f4,_0x106229);});};exports[_0xc739('0x4b')]=function(_0x41f5e7,_0x25842b,_0x5655ff){var _0x396872;return db['User']['find']({'where':{'resetPasswordToken':_0x41f5e7[_0xc739('0x4c')][_0xc739('0x4d')],'resetPasswordExpires':{'$gt':Date[_0xc739('0x44')]()}}})[_0xc739('0xa')](function(_0x15968f){_0x396872=_0x15968f;if(!_0x396872){throw new Error(_0xc739('0x4e'));}return db[_0xc739('0x3d')][_0xc739('0xb')]({'attributes':['id',_0xc739('0x4f')]});})[_0xc739('0xa')](function(_0x270afc){return checkPasswordPattern(_0x270afc,_0x41f5e7[_0xc739('0x3a')]['password'],_0x270afc['securePassword']);})[_0xc739('0xa')](function(){_0x396872[_0xc739('0x50')]=_0x41f5e7[_0xc739('0x3a')]['password'];_0x396872[_0xc739('0x42')]=null;_0x396872[_0xc739('0x43')]=null;return _0x396872['save']();})['then'](function(){_0x25842b[_0xc739('0x2e')](0xc8)[_0xc739('0x2f')]({'message':_0xc739('0x51')});})[_0xc739('0x1a')](function(_0x1a1220){return handleError(_0x25842b,0x1f4,_0x1a1220);});};passport[_0xc739('0x52')](new LocalStrategy({'usernameField':_0xc739('0xc'),'passwordField':_0xc739('0x50')},function(_0x5715af,_0x3035c6,_0xf7ade0){return localAuthenticate(db[_0xc739('0x3e')],_0x5715af,_0x3035c6,_0xf7ade0);}));
\ No newline at end of file
diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js
index bde094b..f3259ea 100644
--- a/server/api/authLocal/index.js
+++ b/server/api/authLocal/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1145=['Router','./authLocal.controller','forgot','post','/reset/:token','reset','exports','express'];(function(_0x3c7e64,_0x29d8a7){var _0x3c6730=function(_0x3e13bd){while(--_0x3e13bd){_0x3c7e64['push'](_0x3c7e64['shift']());}};_0x3c6730(++_0x29d8a7);}(_0x1145,0xc7));var _0x5114=function(_0x4f53c1,_0x4d5033){_0x4f53c1=_0x4f53c1-0x0;var _0xc2c9af=_0x1145[_0x4f53c1];return _0xc2c9af;};'use strict';var express=require(_0x5114('0x0'));var router=express[_0x5114('0x1')]();var controller=require(_0x5114('0x2'));router['post']('/',controller['login']);router['post']('/forgot',controller[_0x5114('0x3')]);router[_0x5114('0x4')](_0x5114('0x5'),controller[_0x5114('0x6')]);module[_0x5114('0x7')]=router;
\ No newline at end of file
+var _0xffc4=['/forgot','/reset/:token','reset','express','Router','./authLocal.controller','post','login'];(function(_0x3ad7ad,_0x291a8d){var _0x225a60=function(_0xca7354){while(--_0xca7354){_0x3ad7ad['push'](_0x3ad7ad['shift']());}};_0x225a60(++_0x291a8d);}(_0xffc4,0xeb));var _0x4ffc=function(_0xac56ce,_0xb73e4){_0xac56ce=_0xac56ce-0x0;var _0x5105e1=_0xffc4[_0xac56ce];return _0x5105e1;};'use strict';var express=require(_0x4ffc('0x0'));var router=express[_0x4ffc('0x1')]();var controller=require(_0x4ffc('0x2'));router[_0x4ffc('0x3')]('/',controller[_0x4ffc('0x4')]);router[_0x4ffc('0x3')](_0x4ffc('0x5'),controller['forgot']);router[_0x4ffc('0x3')](_0x4ffc('0x6'),controller[_0x4ffc('0x7')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js
index a08bc51..bff2130 100644
--- a/server/api/automation/automation.attributes.js
+++ b/server/api/automation/automation.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x16ae=['BOOLEAN','sequelize','STRING'];(function(_0x107d0,_0x2c5573){var _0x5d3287=function(_0x4cff81){while(--_0x4cff81){_0x107d0['push'](_0x107d0['shift']());}};_0x5d3287(++_0x2c5573);}(_0x16ae,0xdf));var _0xe16a=function(_0x38c020,_0x19e223){_0x38c020=_0x38c020-0x0;var _0x2d6873=_0x16ae[_0x38c020];return _0x2d6873;};'use strict';var Sequelize=require(_0xe16a('0x0'));module['exports']={'name':{'type':Sequelize[_0xe16a('0x1')],'allowNull':![]},'channel':{'type':Sequelize[_0xe16a('0x1')]},'description':{'type':Sequelize[_0xe16a('0x1')]},'status':{'type':Sequelize[_0xe16a('0x2')],'defaultValue':![]},'timeout':{'type':Sequelize['INTEGER'],'defaultValue':0xa}};
\ No newline at end of file
+var _0x900f=['sequelize','STRING','BOOLEAN','INTEGER'];(function(_0x543084,_0x4337f5){var _0x306a57=function(_0x2769ed){while(--_0x2769ed){_0x543084['push'](_0x543084['shift']());}};_0x306a57(++_0x4337f5);}(_0x900f,0x10c));var _0xf900=function(_0xb9fe33,_0x47a545){_0xb9fe33=_0xb9fe33-0x0;var _0x15f7c2=_0x900f[_0xb9fe33];return _0x15f7c2;};'use strict';var Sequelize=require(_0xf900('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'channel':{'type':Sequelize[_0xf900('0x1')]},'description':{'type':Sequelize['STRING']},'status':{'type':Sequelize[_0xf900('0x2')],'defaultValue':![]},'timeout':{'type':Sequelize[_0xf900('0x3')],'defaultValue':0xa}};
\ No newline at end of file
diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js
index dc55b7e..ecd8b60 100644
--- a/server/api/automation/automation.controller.js
+++ b/server/api/automation/automation.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0f2d=['attributes','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','VIRTUAL','includeAll','findAll','rows','catch','show','params','options','find','create','body','addConditions','Condition','ids','omit','findOne','length','getConditions','addActions','Action','getActions','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','util','path','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','sendStatus','status','end','json','count','offset','limit','set','update','then','destroy','error','stack','name','index','map','Automation','rawAttributes','fieldName','type','model','query','keys','filters','intersection','fields'];(function(_0x344293,_0x1424ef){var _0x2ea516=function(_0x17b49d){while(--_0x17b49d){_0x344293['push'](_0x344293['shift']());}};_0x2ea516(++_0x1424ef);}(_0x0f2d,0x15a));var _0xd0f2=function(_0x2e1401,_0x3f1989){_0x2e1401=_0x2e1401-0x0;var _0x162b8d=_0x0f2d[_0x2e1401];return _0x162b8d;};'use strict';var pdf=require(_0xd0f2('0x0'));var emlformat=require(_0xd0f2('0x1'));var rimraf=require(_0xd0f2('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0xd0f2('0x3'));var rp=require(_0xd0f2('0x4'));var moment=require(_0xd0f2('0x5'));var BPromise=require(_0xd0f2('0x6'));var Mustache=require('mustache');var util=require(_0xd0f2('0x7'));var path=require(_0xd0f2('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require(_0xd0f2('0x9'));var crypto=require('crypto');var jsforce=require(_0xd0f2('0xa'));var deskjs=require(_0xd0f2('0xb'));var toCsv=require(_0xd0f2('0xc'));var querystring=require(_0xd0f2('0xd'));var Papa=require(_0xd0f2('0xe'));var Redis=require(_0xd0f2('0xf'));var authService=require(_0xd0f2('0x10'));var qs=require(_0xd0f2('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xd0f2('0x12'));var logger=require(_0xd0f2('0x13'))(_0xd0f2('0x14'));var utils=require(_0xd0f2('0x15'));var config=require(_0xd0f2('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x28321d,_0x2980b0){_0x2980b0=_0x2980b0||0xcc;return function(_0x80e664){if(_0x80e664){return _0x28321d[_0xd0f2('0x17')](_0x2980b0);}return _0x28321d[_0xd0f2('0x18')](_0x2980b0)[_0xd0f2('0x19')]();};}function respondWithResult(_0x1e4359,_0x286f9f){_0x286f9f=_0x286f9f||0xc8;return function(_0x37776f){if(_0x37776f){return _0x1e4359[_0xd0f2('0x18')](_0x286f9f)[_0xd0f2('0x1a')](_0x37776f);}};}function respondWithFilteredResult(_0x196f96,_0x4aeff7){return function(_0x41027c){if(_0x41027c){var _0x6f21cf=_0x41027c[_0xd0f2('0x1b')],_0x2343c0=_0x4aeff7[_0xd0f2('0x1c')],_0x452e46=_0x4aeff7[_0xd0f2('0x1c')]+_0x4aeff7[_0xd0f2('0x1d')],_0x55cc50;if(_0x452e46>=_0x6f21cf){_0x452e46=_0x6f21cf;_0x55cc50=0xc8;}else{_0x55cc50=0xce;}_0x196f96[_0xd0f2('0x18')](_0x55cc50);return _0x196f96[_0xd0f2('0x1e')]('Content-Range',_0x2343c0+'-'+_0x452e46+'/'+_0x6f21cf)[_0xd0f2('0x1a')](_0x41027c);}return null;};}function patchUpdates(_0x1f0930){return function(_0x1be4d8){try{jsonpatch['apply'](_0x1be4d8,_0x1f0930,!![]);}catch(_0x2e2197){return BPromise['reject'](_0x2e2197);}return _0x1be4d8['save']();};}function saveUpdates(_0x172b01,_0x40e0fa){return function(_0x45cc0d){if(_0x45cc0d){return _0x45cc0d[_0xd0f2('0x1f')](_0x172b01)[_0xd0f2('0x20')](function(_0x626426){return _0x626426;});}return null;};}function removeEntity(_0x40233d,_0x5c0cda){return function(_0x145661){if(_0x145661){return _0x145661[_0xd0f2('0x21')]()[_0xd0f2('0x20')](function(){_0x40233d[_0xd0f2('0x18')](0xcc)[_0xd0f2('0x19')]();});}};}function handleEntityNotFound(_0x27ba35,_0x92dca5){return function(_0x21d492){if(!_0x21d492){_0x27ba35['sendStatus'](0x194);}return _0x21d492;};}function handleError(_0x808595,_0x4e4d46){_0x4e4d46=_0x4e4d46||0x1f4;return function(_0x411f60){logger[_0xd0f2('0x22')](_0x411f60[_0xd0f2('0x23')]);if(_0x411f60['name']){delete _0x411f60[_0xd0f2('0x24')];}_0x808595['status'](_0x4e4d46)['send'](_0x411f60);};}exports[_0xd0f2('0x25')]=function(_0x4afafc,_0x22c50d){var _0x5b9e90={},_0x2a8c3f={},_0x3445c7={'count':0x0,'rows':[]};var _0x85e214=_[_0xd0f2('0x26')](db[_0xd0f2('0x27')][_0xd0f2('0x28')],function(_0x1cfa18){return{'name':_0x1cfa18[_0xd0f2('0x29')],'type':_0x1cfa18[_0xd0f2('0x2a')]['key']};});_0x2a8c3f[_0xd0f2('0x2b')]=_[_0xd0f2('0x26')](_0x85e214,'name');_0x2a8c3f[_0xd0f2('0x2c')]=_[_0xd0f2('0x2d')](_0x4afafc['query']);_0x2a8c3f[_0xd0f2('0x2e')]=_[_0xd0f2('0x2f')](_0x2a8c3f[_0xd0f2('0x2b')],_0x2a8c3f[_0xd0f2('0x2c')]);_0x5b9e90['attributes']=_[_0xd0f2('0x2f')](_0x2a8c3f[_0xd0f2('0x2b')],qs[_0xd0f2('0x30')](_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x30')]));_0x5b9e90[_0xd0f2('0x31')]=_0x5b9e90[_0xd0f2('0x31')]['length']?_0x5b9e90[_0xd0f2('0x31')]:_0x2a8c3f[_0xd0f2('0x2b')];if(!_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x32')](_0xd0f2('0x33'))){_0x5b9e90[_0xd0f2('0x1d')]=qs['limit'](_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x1d')]);_0x5b9e90[_0xd0f2('0x1c')]=qs[_0xd0f2('0x1c')](_0x4afafc['query']['offset']);}_0x5b9e90[_0xd0f2('0x34')]=qs[_0xd0f2('0x35')](_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x35')]);_0x5b9e90['where']=qs[_0xd0f2('0x2e')](_[_0xd0f2('0x36')](_0x4afafc['query'],_0x2a8c3f['filters']));if(_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x37')]){_0x5b9e90[_0xd0f2('0x38')]=_[_0xd0f2('0x39')](_0x5b9e90[_0xd0f2('0x38')],{'$or':_[_0xd0f2('0x26')](_0x85e214,function(_0x4e3b79){if(_0x4e3b79[_0xd0f2('0x2a')]!==_0xd0f2('0x3a')){var _0x25033e={};_0x25033e[_0x4e3b79[_0xd0f2('0x24')]]={'$like':'%'+_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x37')]+'%'};return _0x25033e;}})});}_0x5b9e90=_[_0xd0f2('0x39')]({},_0x5b9e90,_0x4afafc['options']);var _0x4b9062={'where':_0x5b9e90[_0xd0f2('0x38')]};return db[_0xd0f2('0x27')]['count'](_0x4b9062)['then'](function(_0x2d6ffb){_0x3445c7[_0xd0f2('0x1b')]=_0x2d6ffb;if(_0x4afafc[_0xd0f2('0x2c')][_0xd0f2('0x3b')]){_0x5b9e90['include']=[{'all':!![]}];}return db['Automation'][_0xd0f2('0x3c')](_0x5b9e90);})['then'](function(_0x32b1af){_0x3445c7[_0xd0f2('0x3d')]=_0x32b1af;return _0x3445c7;})[_0xd0f2('0x20')](respondWithFilteredResult(_0x22c50d,_0x5b9e90))[_0xd0f2('0x3e')](handleError(_0x22c50d,null));};exports[_0xd0f2('0x3f')]=function(_0x2c99c9,_0xf81934){var _0x2dc98f={'raw':![],'where':{'id':_0x2c99c9[_0xd0f2('0x40')]['id']}},_0x46d7b9={};_0x46d7b9[_0xd0f2('0x2b')]=_[_0xd0f2('0x2d')](db['Automation']['rawAttributes']);_0x46d7b9[_0xd0f2('0x2c')]=_[_0xd0f2('0x2d')](_0x2c99c9['query']);_0x46d7b9['filters']=_[_0xd0f2('0x2f')](_0x46d7b9['model'],_0x46d7b9[_0xd0f2('0x2c')]);_0x2dc98f['attributes']=_['intersection'](_0x46d7b9[_0xd0f2('0x2b')],qs[_0xd0f2('0x30')](_0x2c99c9[_0xd0f2('0x2c')][_0xd0f2('0x30')]));_0x2dc98f['attributes']=_0x2dc98f['attributes']['length']?_0x2dc98f[_0xd0f2('0x31')]:_0x46d7b9['model'];if(_0x2c99c9[_0xd0f2('0x2c')][_0xd0f2('0x3b')]){_0x2dc98f['include']=[{'all':!![]}];}_0x2dc98f=_['merge']({},_0x2dc98f,_0x2c99c9[_0xd0f2('0x41')]);return db['Automation'][_0xd0f2('0x42')](_0x2dc98f)[_0xd0f2('0x20')](handleEntityNotFound(_0xf81934,null))['then'](respondWithResult(_0xf81934,null))[_0xd0f2('0x3e')](handleError(_0xf81934,null));};exports[_0xd0f2('0x43')]=function(_0x178d74,_0xc08953){return db[_0xd0f2('0x27')][_0xd0f2('0x43')](_0x178d74[_0xd0f2('0x44')],{})['then'](respondWithResult(_0xc08953,0xc9))['catch'](handleError(_0xc08953,null));};exports[_0xd0f2('0x1f')]=function(_0x3a8245,_0x105d91){if(_0x3a8245[_0xd0f2('0x44')]['id']){delete _0x3a8245[_0xd0f2('0x44')]['id'];}return db[_0xd0f2('0x27')][_0xd0f2('0x42')]({'where':{'id':_0x3a8245[_0xd0f2('0x40')]['id']}})[_0xd0f2('0x20')](handleEntityNotFound(_0x105d91,null))[_0xd0f2('0x20')](saveUpdates(_0x3a8245[_0xd0f2('0x44')],null))[_0xd0f2('0x20')](respondWithResult(_0x105d91,null))[_0xd0f2('0x3e')](handleError(_0x105d91,null));};exports[_0xd0f2('0x21')]=function(_0x7425f4,_0x204745){return db[_0xd0f2('0x27')][_0xd0f2('0x42')]({'where':{'id':_0x7425f4[_0xd0f2('0x40')]['id']}})[_0xd0f2('0x20')](handleEntityNotFound(_0x204745,null))['then'](removeEntity(_0x204745,null))[_0xd0f2('0x3e')](handleError(_0x204745,null));};exports[_0xd0f2('0x45')]=function(_0x3ca668,_0x3c0d0e,_0x25ac11){return db[_0xd0f2('0x46')][_0xd0f2('0x42')]({'where':{'id':_0x3ca668[_0xd0f2('0x40')]['id']}})['then'](handleEntityNotFound(_0x3c0d0e,null))[_0xd0f2('0x20')](function(_0x13613a){if(_0x13613a){return _0x13613a[_0xd0f2('0x45')](_0x3ca668[_0xd0f2('0x44')][_0xd0f2('0x47')],_[_0xd0f2('0x48')](_0x3ca668[_0xd0f2('0x44')],[_0xd0f2('0x47'),'id'])||{});}})['then'](respondWithResult(_0x3c0d0e,null))[_0xd0f2('0x3e')](handleError(_0x3c0d0e,null));};exports['getConditions']=function(_0x5746b1,_0x443a2b,_0x10a9fb){var _0x44e2cb={};var _0x303986={};var _0x42fba8;var _0x76c003;return db[_0xd0f2('0x27')][_0xd0f2('0x49')]({'where':{'id':_0x5746b1[_0xd0f2('0x40')]['id']}})[_0xd0f2('0x20')](handleEntityNotFound(_0x443a2b,null))[_0xd0f2('0x20')](function(_0x4a3b6c){if(_0x4a3b6c){_0x42fba8=_0x4a3b6c;_0x303986[_0xd0f2('0x2b')]=_[_0xd0f2('0x2d')](db[_0xd0f2('0x46')][_0xd0f2('0x28')]);_0x303986[_0xd0f2('0x2c')]=_['keys'](_0x5746b1['query']);_0x303986['filters']=_['intersection'](_0x303986[_0xd0f2('0x2b')],_0x303986[_0xd0f2('0x2c')]);_0x44e2cb['attributes']=_[_0xd0f2('0x2f')](_0x303986[_0xd0f2('0x2b')],qs[_0xd0f2('0x30')](_0x5746b1[_0xd0f2('0x2c')]['fields']));_0x44e2cb[_0xd0f2('0x31')]=_0x44e2cb['attributes'][_0xd0f2('0x4a')]?_0x44e2cb['attributes']:_0x303986['model'];_0x44e2cb[_0xd0f2('0x34')]=qs['sort'](_0x5746b1['query'][_0xd0f2('0x35')]);_0x44e2cb[_0xd0f2('0x38')]=qs[_0xd0f2('0x2e')](_['pick'](_0x5746b1[_0xd0f2('0x2c')],_0x303986[_0xd0f2('0x2e')]));if(_0x5746b1[_0xd0f2('0x2c')]['filter']){_0x44e2cb[_0xd0f2('0x38')]=_[_0xd0f2('0x39')](_0x44e2cb[_0xd0f2('0x38')],{'$or':_['map'](_0x44e2cb[_0xd0f2('0x31')],function(_0x1506b7){var _0x439bf9={};_0x439bf9[_0x1506b7]={'$like':'%'+_0x5746b1['query']['filter']+'%'};return _0x439bf9;})});}_0x44e2cb=_['merge']({},_0x44e2cb,_0x5746b1[_0xd0f2('0x41')]);return _0x42fba8['getConditions'](_0x44e2cb);}})[_0xd0f2('0x20')](function(_0x1ccdf3){if(_0x1ccdf3){_0x76c003=_0x1ccdf3['length'];if(!_0x5746b1[_0xd0f2('0x2c')]['hasOwnProperty']('nolimit')){_0x44e2cb[_0xd0f2('0x1d')]=qs['limit'](_0x5746b1['query'][_0xd0f2('0x1d')]);_0x44e2cb['offset']=qs[_0xd0f2('0x1c')](_0x5746b1[_0xd0f2('0x2c')]['offset']);}return _0x42fba8[_0xd0f2('0x4b')](_0x44e2cb);}})['then'](function(_0x1942fb){if(_0x1942fb){return _0x1942fb?{'count':_0x76c003,'rows':_0x1942fb}:null;}})['then'](respondWithResult(_0x443a2b,null))['catch'](handleError(_0x443a2b,null));};exports[_0xd0f2('0x4c')]=function(_0xed4531,_0x4b49b6,_0x3a34ae){return db[_0xd0f2('0x4d')][_0xd0f2('0x42')]({'where':{'id':_0xed4531[_0xd0f2('0x40')]['id']}})[_0xd0f2('0x20')](handleEntityNotFound(_0x4b49b6,null))[_0xd0f2('0x20')](function(_0x3c0ae7){if(_0x3c0ae7){return _0x3c0ae7[_0xd0f2('0x4c')](_0xed4531[_0xd0f2('0x44')][_0xd0f2('0x47')],_[_0xd0f2('0x48')](_0xed4531['body'],[_0xd0f2('0x47'),'id'])||{});}})['then'](respondWithResult(_0x4b49b6,null))[_0xd0f2('0x3e')](handleError(_0x4b49b6,null));};exports[_0xd0f2('0x4e')]=function(_0x5adaad,_0x9afcb2,_0x529fcf){var _0x206d59={};var _0x5aa3c5={};var _0x9e7fd8;var _0x536d32;return db[_0xd0f2('0x27')][_0xd0f2('0x49')]({'where':{'id':_0x5adaad['params']['id']}})['then'](handleEntityNotFound(_0x9afcb2,null))['then'](function(_0x1a156e){if(_0x1a156e){_0x9e7fd8=_0x1a156e;_0x5aa3c5['model']=_[_0xd0f2('0x2d')](db[_0xd0f2('0x4d')][_0xd0f2('0x28')]);_0x5aa3c5[_0xd0f2('0x2c')]=_[_0xd0f2('0x2d')](_0x5adaad[_0xd0f2('0x2c')]);_0x5aa3c5[_0xd0f2('0x2e')]=_[_0xd0f2('0x2f')](_0x5aa3c5[_0xd0f2('0x2b')],_0x5aa3c5[_0xd0f2('0x2c')]);_0x206d59[_0xd0f2('0x31')]=_[_0xd0f2('0x2f')](_0x5aa3c5[_0xd0f2('0x2b')],qs[_0xd0f2('0x30')](_0x5adaad['query']['fields']));_0x206d59['attributes']=_0x206d59[_0xd0f2('0x31')][_0xd0f2('0x4a')]?_0x206d59[_0xd0f2('0x31')]:_0x5aa3c5[_0xd0f2('0x2b')];_0x206d59[_0xd0f2('0x34')]=qs[_0xd0f2('0x35')](_0x5adaad[_0xd0f2('0x2c')][_0xd0f2('0x35')]);_0x206d59[_0xd0f2('0x38')]=qs[_0xd0f2('0x2e')](_['pick'](_0x5adaad[_0xd0f2('0x2c')],_0x5aa3c5[_0xd0f2('0x2e')]));if(_0x5adaad[_0xd0f2('0x2c')][_0xd0f2('0x37')]){_0x206d59[_0xd0f2('0x38')]=_[_0xd0f2('0x39')](_0x206d59[_0xd0f2('0x38')],{'$or':_['map'](_0x206d59['attributes'],function(_0x7435d5){var _0xe40342={};_0xe40342[_0x7435d5]={'$like':'%'+_0x5adaad[_0xd0f2('0x2c')][_0xd0f2('0x37')]+'%'};return _0xe40342;})});}_0x206d59=_[_0xd0f2('0x39')]({},_0x206d59,_0x5adaad[_0xd0f2('0x41')]);return _0x9e7fd8[_0xd0f2('0x4e')](_0x206d59);}})[_0xd0f2('0x20')](function(_0x5baae6){if(_0x5baae6){_0x536d32=_0x5baae6[_0xd0f2('0x4a')];if(!_0x5adaad[_0xd0f2('0x2c')][_0xd0f2('0x32')](_0xd0f2('0x33'))){_0x206d59[_0xd0f2('0x1d')]=qs[_0xd0f2('0x1d')](_0x5adaad[_0xd0f2('0x2c')][_0xd0f2('0x1d')]);_0x206d59[_0xd0f2('0x1c')]=qs[_0xd0f2('0x1c')](_0x5adaad[_0xd0f2('0x2c')]['offset']);}return _0x9e7fd8[_0xd0f2('0x4e')](_0x206d59);}})[_0xd0f2('0x20')](function(_0x5060c4){if(_0x5060c4){return _0x5060c4?{'count':_0x536d32,'rows':_0x5060c4}:null;}})['then'](respondWithResult(_0x9afcb2,null))[_0xd0f2('0x3e')](handleError(_0x9afcb2,null));};
\ No newline at end of file
+var _0x25af=['key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','limit','sort','where','pick','filter','type','Automation','includeAll','include','findAll','catch','params','merge','find','create','body','addConditions','Condition','ids','omit','findOne','order','options','getConditions','addActions','Action','getActions','html-pdf','request-promise','moment','bluebird','util','sox','ejs','squel','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../mysqldb','status','end','json','count','offset','apply','reject','update','then','destroy','error','stack','name','send','map','rawAttributes'];(function(_0x3f5a92,_0x490c41){var _0x44000a=function(_0x265ae3){while(--_0x265ae3){_0x3f5a92['push'](_0x3f5a92['shift']());}};_0x44000a(++_0x490c41);}(_0x25af,0x70));var _0xf25a=function(_0x6ebeac,_0x370272){_0x6ebeac=_0x6ebeac-0x0;var _0x3ef91f=_0x25af[_0x6ebeac];return _0x3ef91f;};'use strict';var pdf=require(_0xf25a('0x0'));var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xf25a('0x1'));var moment=require(_0xf25a('0x2'));var BPromise=require(_0xf25a('0x3'));var Mustache=require('mustache');var util=require(_0xf25a('0x4'));var path=require('path');var sox=require(_0xf25a('0x5'));var csv=require('to-csv');var ejs=require(_0xf25a('0x6'));var fs=require('fs');var _=require('lodash');var squel=require(_0xf25a('0x7'));var crypto=require('crypto');var jsforce=require(_0xf25a('0x8'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xf25a('0x9'));var Papa=require(_0xf25a('0xa'));var Redis=require(_0xf25a('0xb'));var authService=require(_0xf25a('0xc'));var qs=require(_0xf25a('0xd'));var as=require(_0xf25a('0xe'));var hardwareService=require(_0xf25a('0xf'));var logger=require(_0xf25a('0x10'))(_0xf25a('0x11'));var utils=require(_0xf25a('0x12'));var config=require('../../config/environment');var db=require(_0xf25a('0x13'))['db'];function respondWithStatusCode(_0x42369c,_0x1e1787){_0x1e1787=_0x1e1787||0xcc;return function(_0xb72f2d){if(_0xb72f2d){return _0x42369c['sendStatus'](_0x1e1787);}return _0x42369c[_0xf25a('0x14')](_0x1e1787)[_0xf25a('0x15')]();};}function respondWithResult(_0x32864f,_0x43a5e8){_0x43a5e8=_0x43a5e8||0xc8;return function(_0xe70c3f){if(_0xe70c3f){return _0x32864f[_0xf25a('0x14')](_0x43a5e8)[_0xf25a('0x16')](_0xe70c3f);}};}function respondWithFilteredResult(_0x5d3f97,_0x58b2c1){return function(_0x5c6cfc){if(_0x5c6cfc){var _0x15bdd2=_0x5c6cfc[_0xf25a('0x17')],_0x5cf947=_0x58b2c1['offset'],_0x22f340=_0x58b2c1[_0xf25a('0x18')]+_0x58b2c1['limit'],_0x506614;if(_0x22f340>=_0x15bdd2){_0x22f340=_0x15bdd2;_0x506614=0xc8;}else{_0x506614=0xce;}_0x5d3f97[_0xf25a('0x14')](_0x506614);return _0x5d3f97['set']('Content-Range',_0x5cf947+'-'+_0x22f340+'/'+_0x15bdd2)[_0xf25a('0x16')](_0x5c6cfc);}return null;};}function patchUpdates(_0x2df009){return function(_0x49c703){try{jsonpatch[_0xf25a('0x19')](_0x49c703,_0x2df009,!![]);}catch(_0x48382e){return BPromise[_0xf25a('0x1a')](_0x48382e);}return _0x49c703['save']();};}function saveUpdates(_0x467d5d,_0x3cbaa6){return function(_0x1602f2){if(_0x1602f2){return _0x1602f2[_0xf25a('0x1b')](_0x467d5d)[_0xf25a('0x1c')](function(_0x141180){return _0x141180;});}return null;};}function removeEntity(_0x1dd1ab,_0x1228e9){return function(_0x45d084){if(_0x45d084){return _0x45d084[_0xf25a('0x1d')]()[_0xf25a('0x1c')](function(){_0x1dd1ab[_0xf25a('0x14')](0xcc)[_0xf25a('0x15')]();});}};}function handleEntityNotFound(_0x2b3483,_0x34ad8e){return function(_0x3c1a3f){if(!_0x3c1a3f){_0x2b3483['sendStatus'](0x194);}return _0x3c1a3f;};}function handleError(_0x41a8f7,_0x18e45b){_0x18e45b=_0x18e45b||0x1f4;return function(_0x5d25a8){logger[_0xf25a('0x1e')](_0x5d25a8[_0xf25a('0x1f')]);if(_0x5d25a8[_0xf25a('0x20')]){delete _0x5d25a8[_0xf25a('0x20')];}_0x41a8f7[_0xf25a('0x14')](_0x18e45b)[_0xf25a('0x21')](_0x5d25a8);};}exports['index']=function(_0x38afa0,_0x464acc){var _0x36a1f6={},_0x16f87e={},_0x1b5a72={'count':0x0,'rows':[]};var _0x14231e=_[_0xf25a('0x22')](db['Automation'][_0xf25a('0x23')],function(_0x5dcd53){return{'name':_0x5dcd53['fieldName'],'type':_0x5dcd53['type'][_0xf25a('0x24')]};});_0x16f87e[_0xf25a('0x25')]=_[_0xf25a('0x22')](_0x14231e,_0xf25a('0x20'));_0x16f87e[_0xf25a('0x26')]=_[_0xf25a('0x27')](_0x38afa0[_0xf25a('0x26')]);_0x16f87e[_0xf25a('0x28')]=_[_0xf25a('0x29')](_0x16f87e[_0xf25a('0x25')],_0x16f87e[_0xf25a('0x26')]);_0x36a1f6[_0xf25a('0x2a')]=_[_0xf25a('0x29')](_0x16f87e[_0xf25a('0x25')],qs[_0xf25a('0x2b')](_0x38afa0[_0xf25a('0x26')]['fields']));_0x36a1f6[_0xf25a('0x2a')]=_0x36a1f6[_0xf25a('0x2a')][_0xf25a('0x2c')]?_0x36a1f6[_0xf25a('0x2a')]:_0x16f87e[_0xf25a('0x25')];if(!_0x38afa0[_0xf25a('0x26')][_0xf25a('0x2d')](_0xf25a('0x2e'))){_0x36a1f6[_0xf25a('0x2f')]=qs[_0xf25a('0x2f')](_0x38afa0[_0xf25a('0x26')][_0xf25a('0x2f')]);_0x36a1f6[_0xf25a('0x18')]=qs[_0xf25a('0x18')](_0x38afa0['query']['offset']);}_0x36a1f6['order']=qs['sort'](_0x38afa0[_0xf25a('0x26')][_0xf25a('0x30')]);_0x36a1f6[_0xf25a('0x31')]=qs[_0xf25a('0x28')](_[_0xf25a('0x32')](_0x38afa0['query'],_0x16f87e[_0xf25a('0x28')]));if(_0x38afa0['query'][_0xf25a('0x33')]){_0x36a1f6[_0xf25a('0x31')]=_['merge'](_0x36a1f6['where'],{'$or':_[_0xf25a('0x22')](_0x14231e,function(_0x375992){if(_0x375992[_0xf25a('0x34')]!=='VIRTUAL'){var _0x8dad0d={};_0x8dad0d[_0x375992['name']]={'$like':'%'+_0x38afa0[_0xf25a('0x26')][_0xf25a('0x33')]+'%'};return _0x8dad0d;}})});}_0x36a1f6=_['merge']({},_0x36a1f6,_0x38afa0['options']);var _0x5732a5={'where':_0x36a1f6[_0xf25a('0x31')]};return db[_0xf25a('0x35')][_0xf25a('0x17')](_0x5732a5)[_0xf25a('0x1c')](function(_0x25349d){_0x1b5a72['count']=_0x25349d;if(_0x38afa0[_0xf25a('0x26')][_0xf25a('0x36')]){_0x36a1f6[_0xf25a('0x37')]=[{'all':!![]}];}return db[_0xf25a('0x35')][_0xf25a('0x38')](_0x36a1f6);})[_0xf25a('0x1c')](function(_0x18a021){_0x1b5a72['rows']=_0x18a021;return _0x1b5a72;})[_0xf25a('0x1c')](respondWithFilteredResult(_0x464acc,_0x36a1f6))[_0xf25a('0x39')](handleError(_0x464acc,null));};exports['show']=function(_0x2edd55,_0x395e65){var _0x5768cb={'raw':![],'where':{'id':_0x2edd55[_0xf25a('0x3a')]['id']}},_0x1aa034={};_0x1aa034[_0xf25a('0x25')]=_[_0xf25a('0x27')](db[_0xf25a('0x35')][_0xf25a('0x23')]);_0x1aa034[_0xf25a('0x26')]=_[_0xf25a('0x27')](_0x2edd55[_0xf25a('0x26')]);_0x1aa034[_0xf25a('0x28')]=_['intersection'](_0x1aa034[_0xf25a('0x25')],_0x1aa034[_0xf25a('0x26')]);_0x5768cb[_0xf25a('0x2a')]=_[_0xf25a('0x29')](_0x1aa034[_0xf25a('0x25')],qs['fields'](_0x2edd55[_0xf25a('0x26')][_0xf25a('0x2b')]));_0x5768cb['attributes']=_0x5768cb[_0xf25a('0x2a')][_0xf25a('0x2c')]?_0x5768cb[_0xf25a('0x2a')]:_0x1aa034[_0xf25a('0x25')];if(_0x2edd55['query']['includeAll']){_0x5768cb[_0xf25a('0x37')]=[{'all':!![]}];}_0x5768cb=_[_0xf25a('0x3b')]({},_0x5768cb,_0x2edd55['options']);return db[_0xf25a('0x35')][_0xf25a('0x3c')](_0x5768cb)['then'](handleEntityNotFound(_0x395e65,null))[_0xf25a('0x1c')](respondWithResult(_0x395e65,null))[_0xf25a('0x39')](handleError(_0x395e65,null));};exports['create']=function(_0x43aef1,_0x15cfda){return db[_0xf25a('0x35')][_0xf25a('0x3d')](_0x43aef1[_0xf25a('0x3e')],{})[_0xf25a('0x1c')](respondWithResult(_0x15cfda,0xc9))[_0xf25a('0x39')](handleError(_0x15cfda,null));};exports[_0xf25a('0x1b')]=function(_0x5d7c5d,_0x3f71dd){if(_0x5d7c5d[_0xf25a('0x3e')]['id']){delete _0x5d7c5d['body']['id'];}return db[_0xf25a('0x35')][_0xf25a('0x3c')]({'where':{'id':_0x5d7c5d['params']['id']}})[_0xf25a('0x1c')](handleEntityNotFound(_0x3f71dd,null))[_0xf25a('0x1c')](saveUpdates(_0x5d7c5d[_0xf25a('0x3e')],null))[_0xf25a('0x1c')](respondWithResult(_0x3f71dd,null))[_0xf25a('0x39')](handleError(_0x3f71dd,null));};exports[_0xf25a('0x1d')]=function(_0x1e41de,_0x9411fe){return db['Automation'][_0xf25a('0x3c')]({'where':{'id':_0x1e41de[_0xf25a('0x3a')]['id']}})[_0xf25a('0x1c')](handleEntityNotFound(_0x9411fe,null))[_0xf25a('0x1c')](removeEntity(_0x9411fe,null))[_0xf25a('0x39')](handleError(_0x9411fe,null));};exports[_0xf25a('0x3f')]=function(_0x220d19,_0xb6a6ae,_0x35fd00){return db[_0xf25a('0x40')][_0xf25a('0x3c')]({'where':{'id':_0x220d19[_0xf25a('0x3a')]['id']}})[_0xf25a('0x1c')](handleEntityNotFound(_0xb6a6ae,null))[_0xf25a('0x1c')](function(_0x3e69a2){if(_0x3e69a2){return _0x3e69a2[_0xf25a('0x3f')](_0x220d19[_0xf25a('0x3e')][_0xf25a('0x41')],_[_0xf25a('0x42')](_0x220d19['body'],[_0xf25a('0x41'),'id'])||{});}})['then'](respondWithResult(_0xb6a6ae,null))[_0xf25a('0x39')](handleError(_0xb6a6ae,null));};exports['getConditions']=function(_0x12f833,_0x24855d,_0x5249b1){var _0x2ab579={};var _0x2a9711={};var _0x2db471;var _0x38702e;return db[_0xf25a('0x35')][_0xf25a('0x43')]({'where':{'id':_0x12f833['params']['id']}})['then'](handleEntityNotFound(_0x24855d,null))[_0xf25a('0x1c')](function(_0x151a08){if(_0x151a08){_0x2db471=_0x151a08;_0x2a9711['model']=_[_0xf25a('0x27')](db[_0xf25a('0x40')][_0xf25a('0x23')]);_0x2a9711['query']=_['keys'](_0x12f833[_0xf25a('0x26')]);_0x2a9711['filters']=_['intersection'](_0x2a9711[_0xf25a('0x25')],_0x2a9711[_0xf25a('0x26')]);_0x2ab579[_0xf25a('0x2a')]=_[_0xf25a('0x29')](_0x2a9711[_0xf25a('0x25')],qs[_0xf25a('0x2b')](_0x12f833[_0xf25a('0x26')]['fields']));_0x2ab579['attributes']=_0x2ab579['attributes'][_0xf25a('0x2c')]?_0x2ab579[_0xf25a('0x2a')]:_0x2a9711['model'];_0x2ab579[_0xf25a('0x44')]=qs['sort'](_0x12f833['query'][_0xf25a('0x30')]);_0x2ab579['where']=qs[_0xf25a('0x28')](_[_0xf25a('0x32')](_0x12f833[_0xf25a('0x26')],_0x2a9711[_0xf25a('0x28')]));if(_0x12f833[_0xf25a('0x26')][_0xf25a('0x33')]){_0x2ab579['where']=_[_0xf25a('0x3b')](_0x2ab579[_0xf25a('0x31')],{'$or':_[_0xf25a('0x22')](_0x2ab579['attributes'],function(_0x45f31d){var _0xe89160={};_0xe89160[_0x45f31d]={'$like':'%'+_0x12f833[_0xf25a('0x26')][_0xf25a('0x33')]+'%'};return _0xe89160;})});}_0x2ab579=_[_0xf25a('0x3b')]({},_0x2ab579,_0x12f833[_0xf25a('0x45')]);return _0x2db471[_0xf25a('0x46')](_0x2ab579);}})['then'](function(_0x3d80da){if(_0x3d80da){_0x38702e=_0x3d80da[_0xf25a('0x2c')];if(!_0x12f833[_0xf25a('0x26')][_0xf25a('0x2d')](_0xf25a('0x2e'))){_0x2ab579[_0xf25a('0x2f')]=qs[_0xf25a('0x2f')](_0x12f833[_0xf25a('0x26')][_0xf25a('0x2f')]);_0x2ab579[_0xf25a('0x18')]=qs[_0xf25a('0x18')](_0x12f833[_0xf25a('0x26')]['offset']);}return _0x2db471[_0xf25a('0x46')](_0x2ab579);}})[_0xf25a('0x1c')](function(_0x26274b){if(_0x26274b){return _0x26274b?{'count':_0x38702e,'rows':_0x26274b}:null;}})[_0xf25a('0x1c')](respondWithResult(_0x24855d,null))[_0xf25a('0x39')](handleError(_0x24855d,null));};exports[_0xf25a('0x47')]=function(_0x30d454,_0x4e4a76,_0x4970a0){return db[_0xf25a('0x48')][_0xf25a('0x3c')]({'where':{'id':_0x30d454['params']['id']}})['then'](handleEntityNotFound(_0x4e4a76,null))[_0xf25a('0x1c')](function(_0x53038d){if(_0x53038d){return _0x53038d[_0xf25a('0x47')](_0x30d454['body'][_0xf25a('0x41')],_[_0xf25a('0x42')](_0x30d454[_0xf25a('0x3e')],[_0xf25a('0x41'),'id'])||{});}})['then'](respondWithResult(_0x4e4a76,null))[_0xf25a('0x39')](handleError(_0x4e4a76,null));};exports['getActions']=function(_0x15140c,_0x6e8afa,_0x3bb3b7){var _0x476f4b={};var _0x1607cc={};var _0x422d32;var _0x15e71c;return db[_0xf25a('0x35')][_0xf25a('0x43')]({'where':{'id':_0x15140c[_0xf25a('0x3a')]['id']}})[_0xf25a('0x1c')](handleEntityNotFound(_0x6e8afa,null))[_0xf25a('0x1c')](function(_0x182b13){if(_0x182b13){_0x422d32=_0x182b13;_0x1607cc[_0xf25a('0x25')]=_[_0xf25a('0x27')](db[_0xf25a('0x48')][_0xf25a('0x23')]);_0x1607cc['query']=_[_0xf25a('0x27')](_0x15140c[_0xf25a('0x26')]);_0x1607cc[_0xf25a('0x28')]=_[_0xf25a('0x29')](_0x1607cc[_0xf25a('0x25')],_0x1607cc[_0xf25a('0x26')]);_0x476f4b[_0xf25a('0x2a')]=_[_0xf25a('0x29')](_0x1607cc[_0xf25a('0x25')],qs[_0xf25a('0x2b')](_0x15140c['query'][_0xf25a('0x2b')]));_0x476f4b[_0xf25a('0x2a')]=_0x476f4b[_0xf25a('0x2a')][_0xf25a('0x2c')]?_0x476f4b[_0xf25a('0x2a')]:_0x1607cc[_0xf25a('0x25')];_0x476f4b[_0xf25a('0x44')]=qs[_0xf25a('0x30')](_0x15140c[_0xf25a('0x26')][_0xf25a('0x30')]);_0x476f4b[_0xf25a('0x31')]=qs[_0xf25a('0x28')](_['pick'](_0x15140c['query'],_0x1607cc[_0xf25a('0x28')]));if(_0x15140c[_0xf25a('0x26')][_0xf25a('0x33')]){_0x476f4b['where']=_[_0xf25a('0x3b')](_0x476f4b[_0xf25a('0x31')],{'$or':_[_0xf25a('0x22')](_0x476f4b[_0xf25a('0x2a')],function(_0xc1437f){var _0x2a4727={};_0x2a4727[_0xc1437f]={'$like':'%'+_0x15140c[_0xf25a('0x26')][_0xf25a('0x33')]+'%'};return _0x2a4727;})});}_0x476f4b=_[_0xf25a('0x3b')]({},_0x476f4b,_0x15140c[_0xf25a('0x45')]);return _0x422d32[_0xf25a('0x49')](_0x476f4b);}})[_0xf25a('0x1c')](function(_0x5c7386){if(_0x5c7386){_0x15e71c=_0x5c7386[_0xf25a('0x2c')];if(!_0x15140c['query']['hasOwnProperty']('nolimit')){_0x476f4b[_0xf25a('0x2f')]=qs['limit'](_0x15140c[_0xf25a('0x26')][_0xf25a('0x2f')]);_0x476f4b['offset']=qs[_0xf25a('0x18')](_0x15140c[_0xf25a('0x26')]['offset']);}return _0x422d32[_0xf25a('0x49')](_0x476f4b);}})['then'](function(_0x294421){if(_0x294421){return _0x294421?{'count':_0x15e71c,'rows':_0x294421}:null;}})['then'](respondWithResult(_0x6e8afa,null))[_0xf25a('0x39')](handleError(_0x6e8afa,null));};
\ No newline at end of file
diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js
index 4371a7b..4552fcd 100644
--- a/server/api/automation/automation.model.js
+++ b/server/api/automation/automation.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1660=['../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./automation.attributes','exports','define','tools_automations','lodash','util'];(function(_0x2dea58,_0x59d6f0){var _0x2b23c2=function(_0x3e5c44){while(--_0x3e5c44){_0x2dea58['push'](_0x2dea58['shift']());}};_0x2b23c2(++_0x59d6f0);}(_0x1660,0x1c5));var _0x0166=function(_0x20ef64,_0x4a8fe9){_0x20ef64=_0x20ef64-0x0;var _0x3707d8=_0x1660[_0x20ef64];return _0x3707d8;};'use strict';var _=require(_0x0166('0x0'));var util=require(_0x0166('0x1'));var logger=require(_0x0166('0x2'))(_0x0166('0x3'));var moment=require(_0x0166('0x4'));var BPromise=require(_0x0166('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0166('0x6'));var rimraf=require(_0x0166('0x7'));var config=require(_0x0166('0x8'));var attributes=require(_0x0166('0x9'));module[_0x0166('0xa')]=function(_0x11fb58,_0x3b5632){return _0x11fb58[_0x0166('0xb')]('Automation',attributes,{'tableName':_0x0166('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x7b96=['./automation.attributes','exports','define','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x1ff48a,_0x763dda){var _0x3e6616=function(_0x542d78){while(--_0x542d78){_0x1ff48a['push'](_0x1ff48a['shift']());}};_0x3e6616(++_0x763dda);}(_0x7b96,0x92));var _0x67b9=function(_0x1aca34,_0x21a2cc){_0x1aca34=_0x1aca34-0x0;var _0x3762f3=_0x7b96[_0x1aca34];return _0x3762f3;};'use strict';var _=require(_0x67b9('0x0'));var util=require(_0x67b9('0x1'));var logger=require(_0x67b9('0x2'))(_0x67b9('0x3'));var moment=require(_0x67b9('0x4'));var BPromise=require(_0x67b9('0x5'));var rp=require(_0x67b9('0x6'));var fs=require('fs');var path=require(_0x67b9('0x7'));var rimraf=require(_0x67b9('0x8'));var config=require(_0x67b9('0x9'));var attributes=require(_0x67b9('0xa'));module[_0x67b9('0xb')]=function(_0x2f0609,_0x8cce65){return _0x2f0609[_0x67b9('0xc')]('Automation',attributes,{'tableName':'tools_automations','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/automation/automation.rpc.js b/server/api/automation/automation.rpc.js
index 8d96ffa..34d39e0 100644
--- a/server/api/automation/automation.rpc.js
+++ b/server/api/automation/automation.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc850=['code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','Automation,\x20%s,\x20%s','Automation,\x20%s,\x20%s,\x20%s','request\x20sent','error'];(function(_0x1e5cc1,_0x1e76fc){var _0x320ddc=function(_0x3016ce){while(--_0x3016ce){_0x1e5cc1['push'](_0x1e5cc1['shift']());}};_0x320ddc(++_0x1e76fc);}(_0xc850,0x1e7));var _0x0c85=function(_0x399029,_0x2c9603){_0x399029=_0x399029-0x0;var _0x29855f=_0xc850[_0x399029];return _0x29855f;};'use strict';var _=require(_0x0c85('0x0'));var util=require(_0x0c85('0x1'));var moment=require(_0x0c85('0x2'));var BPromise=require(_0x0c85('0x3'));var rs=require(_0x0c85('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x0c85('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x0c85('0x6'))(_0x0c85('0x7'));var config=require(_0x0c85('0x8'));var jayson=require(_0x0c85('0x9'));var client=jayson[_0x0c85('0xa')][_0x0c85('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x19b878,_0x495d93,_0x281516){return new BPromise(function(_0x4c22ae,_0xcbeb21){return client[_0x0c85('0xc')](_0x19b878,_0x281516)[_0x0c85('0xd')](function(_0x1d5eb){logger[_0x0c85('0xe')](_0x0c85('0xf'),_0x495d93,'request\x20sent');logger['debug'](_0x0c85('0x10'),_0x495d93,_0x0c85('0x11'),JSON['stringify'](_0x1d5eb));if(_0x1d5eb[_0x0c85('0x12')]){if(_0x1d5eb[_0x0c85('0x12')][_0x0c85('0x13')]===0x1f4){logger['error']('Automation,\x20%s,\x20%s',_0x495d93,_0x1d5eb[_0x0c85('0x12')][_0x0c85('0x14')]);return _0xcbeb21(_0x1d5eb[_0x0c85('0x12')]['message']);}logger[_0x0c85('0x12')](_0x0c85('0xf'),_0x495d93,_0x1d5eb['error'][_0x0c85('0x14')]);return _0x4c22ae(_0x1d5eb[_0x0c85('0x12')]['message']);}else{logger[_0x0c85('0xe')](_0x0c85('0xf'),_0x495d93,_0x0c85('0x11'));_0x4c22ae(_0x1d5eb[_0x0c85('0x15')][_0x0c85('0x14')]);}})[_0x0c85('0x16')](function(_0x23c96e){logger[_0x0c85('0x12')](_0x0c85('0xf'),_0x495d93,_0x23c96e);_0xcbeb21(_0x23c96e);});});}
\ No newline at end of file
+var _0xbb33=['error','message','result','lodash','moment','bluebird','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','Automation,\x20%s,\x20%s','debug','Automation,\x20%s,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x3825a8,_0x2ce1a2){var _0xabc9bc=function(_0x101073){while(--_0x101073){_0x3825a8['push'](_0x3825a8['shift']());}};_0xabc9bc(++_0x2ce1a2);}(_0xbb33,0x8f));var _0x3bb3=function(_0x461a30,_0x4366bc){_0x461a30=_0x461a30-0x0;var _0x2e4a01=_0xbb33[_0x461a30];return _0x2e4a01;};'use strict';var _=require(_0x3bb3('0x0'));var util=require('util');var moment=require(_0x3bb3('0x1'));var BPromise=require(_0x3bb3('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x3bb3('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0x3bb3('0x4'))(_0x3bb3('0x5'));var config=require(_0x3bb3('0x6'));var jayson=require(_0x3bb3('0x7'));var client=jayson['client'][_0x3bb3('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1e2923,_0x840d50,_0x195b55){return new BPromise(function(_0x1744f6,_0x4e833d){return client[_0x3bb3('0x9')](_0x1e2923,_0x195b55)[_0x3bb3('0xa')](function(_0x5f0a79){logger[_0x3bb3('0xb')](_0x3bb3('0xc'),_0x840d50,'request\x20sent');logger[_0x3bb3('0xd')](_0x3bb3('0xe'),_0x840d50,_0x3bb3('0xf'),JSON[_0x3bb3('0x10')](_0x5f0a79));if(_0x5f0a79[_0x3bb3('0x11')]){if(_0x5f0a79[_0x3bb3('0x11')]['code']===0x1f4){logger['error'](_0x3bb3('0xc'),_0x840d50,_0x5f0a79[_0x3bb3('0x11')][_0x3bb3('0x12')]);return _0x4e833d(_0x5f0a79[_0x3bb3('0x11')][_0x3bb3('0x12')]);}logger[_0x3bb3('0x11')](_0x3bb3('0xc'),_0x840d50,_0x5f0a79[_0x3bb3('0x11')][_0x3bb3('0x12')]);return _0x1744f6(_0x5f0a79[_0x3bb3('0x11')][_0x3bb3('0x12')]);}else{logger[_0x3bb3('0xb')]('Automation,\x20%s,\x20%s',_0x840d50,_0x3bb3('0xf'));_0x1744f6(_0x5f0a79[_0x3bb3('0x13')][_0x3bb3('0x12')]);}})['catch'](function(_0x2274cb){logger[_0x3bb3('0x11')](_0x3bb3('0xc'),_0x840d50,_0x2274cb);_0x4e833d(_0x2274cb);});});}
\ No newline at end of file
diff --git a/server/api/automation/index.js b/server/api/automation/index.js
index 3f12f58..0253d98 100644
--- a/server/api/automation/index.js
+++ b/server/api/automation/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5333=['getConditions','/:id/actions','post','/:id/conditions','addConditions','addActions','put','/:id','update','delete','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show'];(function(_0x344fd9,_0x33cc0a){var _0x2312dd=function(_0x1d2a7f){while(--_0x1d2a7f){_0x344fd9['push'](_0x344fd9['shift']());}};_0x2312dd(++_0x33cc0a);}(_0x5333,0x1ef));var _0x3533=function(_0x26693b,_0x1209d0){_0x26693b=_0x26693b-0x0;var _0x2d3c39=_0x5333[_0x26693b];return _0x2d3c39;};'use strict';var multer=require('multer');var util=require(_0x3533('0x0'));var path=require('path');var timeout=require(_0x3533('0x1'));var express=require(_0x3533('0x2'));var router=express[_0x3533('0x3')]();var auth=require(_0x3533('0x4'));var interaction=require(_0x3533('0x5'));var config=require(_0x3533('0x6'));var controller=require('./automation.controller');router[_0x3533('0x7')]('/',auth['isAuthenticated'](),controller[_0x3533('0x8')]);router['get']('/:id',auth[_0x3533('0x9')](),controller[_0x3533('0xa')]);router[_0x3533('0x7')]('/:id/conditions',auth['isAuthenticated'](),controller[_0x3533('0xb')]);router[_0x3533('0x7')](_0x3533('0xc'),auth['isAuthenticated'](),controller['getActions']);router[_0x3533('0xd')]('/',auth[_0x3533('0x9')](),controller['create']);router['post'](_0x3533('0xe'),auth['isAuthenticated'](),controller[_0x3533('0xf')]);router['post'](_0x3533('0xc'),auth[_0x3533('0x9')](),controller[_0x3533('0x10')]);router[_0x3533('0x11')](_0x3533('0x12'),auth['isAuthenticated'](),controller[_0x3533('0x13')]);router[_0x3533('0x14')](_0x3533('0x12'),auth[_0x3533('0x9')](),controller['destroy']);module[_0x3533('0x15')]=router;
\ No newline at end of file
+var _0x567a=['destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','getConditions','/:id/actions','post','create','/:id/conditions','delete'];(function(_0x49e913,_0x14dbe3){var _0x3f9f12=function(_0x4ae45d){while(--_0x4ae45d){_0x49e913['push'](_0x49e913['shift']());}};_0x3f9f12(++_0x14dbe3);}(_0x567a,0x8d));var _0xa567=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x567a[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0xa567('0x0'));var util=require(_0xa567('0x1'));var path=require(_0xa567('0x2'));var timeout=require(_0xa567('0x3'));var express=require(_0xa567('0x4'));var router=express[_0xa567('0x5')]();var auth=require(_0xa567('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xa567('0x7'));var controller=require('./automation.controller');router[_0xa567('0x8')]('/',auth[_0xa567('0x9')](),controller[_0xa567('0xa')]);router[_0xa567('0x8')](_0xa567('0xb'),auth[_0xa567('0x9')](),controller[_0xa567('0xc')]);router[_0xa567('0x8')]('/:id/conditions',auth['isAuthenticated'](),controller[_0xa567('0xd')]);router['get'](_0xa567('0xe'),auth['isAuthenticated'](),controller['getActions']);router[_0xa567('0xf')]('/',auth['isAuthenticated'](),controller[_0xa567('0x10')]);router[_0xa567('0xf')](_0xa567('0x11'),auth[_0xa567('0x9')](),controller['addConditions']);router[_0xa567('0xf')](_0xa567('0xe'),auth[_0xa567('0x9')](),controller['addActions']);router['put'](_0xa567('0xb'),auth[_0xa567('0x9')](),controller['update']);router[_0xa567('0x12')](_0xa567('0xb'),auth['isAuthenticated'](),controller[_0xa567('0x13')]);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 19a044c..ac2fe6f 100644
--- a/server/api/campaign/campaign.attributes.js
+++ b/server/api/campaign/campaign.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xde45=['Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','always','never','Active/Disactive\x20AMD','#AMD\x20Greeting','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Min\x20Word\x20Length','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#AMD\x20Maximum\x20Word\x20Length','DESC','ASC','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','sequelize','exports','STRING','ENUM','ivr','BOOLEAN','INTEGER','UNSIGNED','Max\x20200\x20calls.','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'];(function(_0x2387e0,_0x24df19){var _0xc3c730=function(_0x1f5455){while(--_0x1f5455){_0x2387e0['push'](_0x2387e0['shift']());}};_0xc3c730(++_0x24df19);}(_0xde45,0x10c));var _0x5de4=function(_0x5df1fb,_0x1e974b){_0x5df1fb=_0x5df1fb-0x0;var _0x32bb36=_0xde45[_0x5df1fb];return _0x32bb36;};'use strict';var Sequelize=require(_0x5de4('0x0'));module[_0x5de4('0x1')]={'name':{'type':Sequelize[_0x5de4('0x2')],'unique':'name','allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x5de4('0x3')](_0x5de4('0x4')),'allowNull':![],'defaultValue':_0x5de4('0x4')},'description':{'type':Sequelize[_0x5de4('0x2')]},'active':{'type':Sequelize[_0x5de4('0x5')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'limitCalls':{'type':Sequelize[_0x5de4('0x6')](0x4)[_0x5de4('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x5de4('0x8')},'dialOriginateCallerIdName':{'type':Sequelize[_0x5de4('0x2')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x5de4('0x2')]},'dialOriginateTimeout':{'type':Sequelize[_0x5de4('0x6')](0x3)[_0x5de4('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x5de4('0x9')},'dialCongestionMaxRetry':{'type':Sequelize[_0x5de4('0x6')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x5de4('0xa')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x5de4('0x6')](0x5)[_0x5de4('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x5de4('0xb')},'dialBusyMaxRetry':{'type':Sequelize[_0x5de4('0x6')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':Sequelize[_0x5de4('0x6')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x5de4('0xc')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x5de4('0x6')](0x3)[_0x5de4('0x7')],'defaultValue':0x3,'comment':_0x5de4('0xd')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x5de4('0x6')](0x5)[_0x5de4('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':Sequelize[_0x5de4('0x6')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x5de4('0xe')},'dialTimezone':{'type':Sequelize[_0x5de4('0x2')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':Sequelize[_0x5de4('0x3')](_0x5de4('0xf'),_0x5de4('0x10'),'onlyIfOpen'),'defaultValue':_0x5de4('0xf')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x5de4('0x11')},'dialAMDInitialSilence':{'type':Sequelize['INTEGER'](0x9)[_0x5de4('0x7')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x5de4('0x6')](0x9)[_0x5de4('0x7')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x5de4('0x12')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x5de4('0x6')](0x9)['UNSIGNED'],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x5de4('0x13')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x5de4('0x6')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Total\x20Analysis\x20Time'},'dialAMDMinWordLength':{'type':Sequelize[_0x5de4('0x6')](0x9)[_0x5de4('0x7')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x5de4('0x14')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x5de4('0x6')](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x5de4('0x15')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x5de4('0x6')](0x9)[_0x5de4('0x7')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x5de4('0x16')},'dialAMDSilenceThreshold':{'type':Sequelize[_0x5de4('0x6')](0x5)[_0x5de4('0x7')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x5de4('0x17')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x5de4('0x6')](0x9)[_0x5de4('0x7')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x5de4('0x18')},'dialOrderByScheduledAt':{'type':Sequelize[_0x5de4('0x3')](_0x5de4('0x19'),_0x5de4('0x1a')),'defaultValue':_0x5de4('0x19')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x5de4('0x6')](0x3)[_0x5de4('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x5de4('0x1b')},'dialCutDigit':{'type':Sequelize[_0x5de4('0x6')](0x3)[_0x5de4('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'}};
\ No newline at end of file
+var _0xbcd2=['always','never','Active/Disactive\x20AMD','#AMD\x20Initial\x20Silence','#AMD\x20Greeting','#AMD\x20Total\x20Analysis\x20Time','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#AMD\x20Maximum\x20Word\x20Length','DESC','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','sequelize','STRING','name','ENUM','ivr','BOOLEAN','Active/Disactive\x20Campaign','UNSIGNED','Max\x20200\x20calls.','INTEGER','#Congestion\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Busy\x20Retry\x20(min:1,\x20max:999)','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','07:00-22:00,*,*,*'];(function(_0x455f19,_0x4f8f3a){var _0x422f21=function(_0x4537cd){while(--_0x4537cd){_0x455f19['push'](_0x455f19['shift']());}};_0x422f21(++_0x4f8f3a);}(_0xbcd2,0xf4));var _0x2bcd=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbcd2[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0x2bcd('0x0'));module['exports']={'name':{'type':Sequelize[_0x2bcd('0x1')],'unique':_0x2bcd('0x2'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x2bcd('0x3')](_0x2bcd('0x4')),'allowNull':![],'defaultValue':_0x2bcd('0x4')},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0x2bcd('0x5')],'defaultValue':0x0,'comment':_0x2bcd('0x6')},'limitCalls':{'type':Sequelize['INTEGER'](0x4)[_0x2bcd('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x2bcd('0x8')},'dialOriginateCallerIdName':{'type':Sequelize[_0x2bcd('0x1')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x2bcd('0x1')]},'dialOriginateTimeout':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialCongestionMaxRetry':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2bcd('0xa')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x2bcd('0x9')](0x5)[_0x2bcd('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2bcd('0xb')},'dialBusyMaxRetry':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2bcd('0xc')},'dialBusyRetryFrequency':{'type':Sequelize[_0x2bcd('0x9')](0x5)[_0x2bcd('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2bcd('0xd')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'defaultValue':0x3,'comment':_0x2bcd('0xe')},'dialNoAnswerRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x2bcd('0x7')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x2bcd('0xf')},'dialGlobalMaxRetry':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0x2bcd('0x1')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0x2bcd('0x10')},'dialCheckDuplicateType':{'type':Sequelize[_0x2bcd('0x3')](_0x2bcd('0x11'),_0x2bcd('0x12'),'onlyIfOpen'),'defaultValue':_0x2bcd('0x11')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x2bcd('0x13')},'dialAMDInitialSilence':{'type':Sequelize[_0x2bcd('0x9')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x2bcd('0x14')},'dialAMDGreeting':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x2bcd('0x15')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x2bcd('0x7')],'defaultValue':0x320,'validate':{'min':0x0},'comment':'#AMD\x20After\x20Greeting\x20Silence'},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x2bcd('0x9')](0x9)[_0x2bcd('0x7')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x2bcd('0x16')},'dialAMDMinWordLength':{'type':Sequelize[_0x2bcd('0x9')](0x9)[_0x2bcd('0x7')],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x2bcd('0x9')](0x9)[_0x2bcd('0x7')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x2bcd('0x17')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x2bcd('0x9')](0x9)[_0x2bcd('0x7')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0x2bcd('0x18')},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)[_0x2bcd('0x7')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x2bcd('0x19')},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x2bcd('0x1a')},'dialOrderByScheduledAt':{'type':Sequelize[_0x2bcd('0x3')](_0x2bcd('0x1b'),'ASC'),'defaultValue':'DESC'},'dialPrefix':{'type':Sequelize[_0x2bcd('0x1')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x2bcd('0x1c')},'dialCutDigit':{'type':Sequelize[_0x2bcd('0x9')](0x3)[_0x2bcd('0x7')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'}};
\ No newline at end of file
diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js
index 4c16617..115e8e3 100644
--- a/server/api/campaign/campaign.controller.js
+++ b/server/api/campaign/campaign.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x04cd=['Campaign','rawAttributes','fieldName','type','map','query','keys','filters','intersection','model','attributes','fields','length','nolimit','order','sort','where','pick','merge','filter','options','includeAll','include','rows','catch','show','params','find','create','user','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','autoAssociation','error','omit','createdAt','updatedAt','body','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getHoppers','findOne','hasOwnProperty','CampaignId','CmHopper','findAll','getHopperHistories','CmHopperHistory','CmHopperFinal','getHopperBlacks','CmHopperBlack','getLists','CmList','addLists','ids','dialCheckDuplicateType','always','insert','into','cm_hopper','fromQuery','phone','scheduledAt','ContactId','select','field','CmListId','toString','ListId','NOW()','from','cm_contacts','deletedAt\x20IS\x20NULL','ListId\x20=\x20?','phone\x20NOT\x20IN\x20(?)','cm_hopper_final','onlyIfOpen','phone\x20IS\x20NOT\x20NULL','COALESCE(phone,\x27\x27)','CampaignId\x20=\x20?','push','sequelize','all','removeLists','getBlackLists','addBlackLists','spread','cm_hopper_black','removeBlackLists','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','mustache','util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','api','../../mysqldb','sendStatus','end','json','count','offset','limit','status','set','Content-Range','apply','save','update','destroy','IvrCampaigns','UserProfileResource','then','stack','name','send','index'];(function(_0x142020,_0x1f7233){var _0x40da8f=function(_0x17f0a3){while(--_0x17f0a3){_0x142020['push'](_0x142020['shift']());}};_0x40da8f(++_0x1f7233);}(_0x04cd,0x1e9));var _0xd04c=function(_0x1d1536,_0x3484b8){_0x1d1536=_0x1d1536-0x0;var _0x4b5b84=_0x04cd[_0x1d1536];return _0x4b5b84;};'use strict';var pdf=require(_0xd04c('0x0'));var emlformat=require(_0xd04c('0x1'));var rimraf=require(_0xd04c('0x2'));var zipdir=require(_0xd04c('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0xd04c('0x4'));var moment=require(_0xd04c('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xd04c('0x6'));var util=require(_0xd04c('0x7'));var path=require('path');var sox=require(_0xd04c('0x8'));var csv=require(_0xd04c('0x9'));var ejs=require(_0xd04c('0xa'));var fs=require('fs');var _=require(_0xd04c('0xb'));var squel=require(_0xd04c('0xc'));var crypto=require(_0xd04c('0xd'));var jsforce=require(_0xd04c('0xe'));var deskjs=require(_0xd04c('0xf'));var toCsv=require(_0xd04c('0x9'));var querystring=require(_0xd04c('0x10'));var Papa=require(_0xd04c('0x11'));var Redis=require(_0xd04c('0x12'));var authService=require(_0xd04c('0x13'));var qs=require(_0xd04c('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0xd04c('0x15'));var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0xd04c('0x16'))['db'];function respondWithStatusCode(_0x4688f0,_0x232b0e){_0x232b0e=_0x232b0e||0xcc;return function(_0x4403d1){if(_0x4403d1){return _0x4688f0[_0xd04c('0x17')](_0x232b0e);}return _0x4688f0['status'](_0x232b0e)[_0xd04c('0x18')]();};}function respondWithResult(_0x2c800b,_0x19da96){_0x19da96=_0x19da96||0xc8;return function(_0x1389e4){if(_0x1389e4){return _0x2c800b['status'](_0x19da96)[_0xd04c('0x19')](_0x1389e4);}};}function respondWithFilteredResult(_0x69bae6,_0x33ab0e){return function(_0x394b0c){if(_0x394b0c){var _0x55dd69=_0x394b0c[_0xd04c('0x1a')],_0x3d1f32=_0x33ab0e[_0xd04c('0x1b')],_0x88ab28=_0x33ab0e[_0xd04c('0x1b')]+_0x33ab0e[_0xd04c('0x1c')],_0x43b243;if(_0x88ab28>=_0x55dd69){_0x88ab28=_0x55dd69;_0x43b243=0xc8;}else{_0x43b243=0xce;}_0x69bae6[_0xd04c('0x1d')](_0x43b243);return _0x69bae6[_0xd04c('0x1e')](_0xd04c('0x1f'),_0x3d1f32+'-'+_0x88ab28+'/'+_0x55dd69)['json'](_0x394b0c);}return null;};}function patchUpdates(_0x3f5b26){return function(_0x2cbc62){try{jsonpatch[_0xd04c('0x20')](_0x2cbc62,_0x3f5b26,!![]);}catch(_0x6c44da){return BPromise['reject'](_0x6c44da);}return _0x2cbc62[_0xd04c('0x21')]();};}function saveUpdates(_0x47814c,_0x480ad2){return function(_0x2bd7c1){if(_0x2bd7c1){return _0x2bd7c1[_0xd04c('0x22')](_0x47814c)['then'](function(_0x4f7402){return _0x4f7402;});}return null;};}function removeEntity(_0x3f2b5d,_0x29e8ae){return function(_0x2a1949){if(_0x2a1949){return _0x2a1949[_0xd04c('0x23')]()['then'](function(){var _0x572ce5=_0x2a1949['get']({'plain':!![]});var _0x2a174e=_0xd04c('0x24');return db[_0xd04c('0x25')][_0xd04c('0x23')]({'where':{'type':_0x2a174e,'resourceId':_0x572ce5['id']}})[_0xd04c('0x26')](function(){return _0x2a1949;});})[_0xd04c('0x26')](function(){_0x3f2b5d['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x361a9c,_0x25eec8){return function(_0x13bc4e){if(!_0x13bc4e){_0x361a9c[_0xd04c('0x17')](0x194);}return _0x13bc4e;};}function handleError(_0x5a2786,_0x18332f){_0x18332f=_0x18332f||0x1f4;return function(_0x7bed75){logger['error'](_0x7bed75[_0xd04c('0x27')]);if(_0x7bed75[_0xd04c('0x28')]){delete _0x7bed75[_0xd04c('0x28')];}_0x5a2786[_0xd04c('0x1d')](_0x18332f)[_0xd04c('0x29')](_0x7bed75);};}exports[_0xd04c('0x2a')]=function(_0x13a0f9,_0x30bea2){var _0x33184a={},_0xbb660e={},_0x38a8a7={'count':0x0,'rows':[]};var _0x234d90=_['map'](db[_0xd04c('0x2b')][_0xd04c('0x2c')],function(_0x54be51){return{'name':_0x54be51[_0xd04c('0x2d')],'type':_0x54be51[_0xd04c('0x2e')]['key']};});_0xbb660e['model']=_[_0xd04c('0x2f')](_0x234d90,'name');_0xbb660e[_0xd04c('0x30')]=_[_0xd04c('0x31')](_0x13a0f9[_0xd04c('0x30')]);_0xbb660e[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0xbb660e[_0xd04c('0x34')],_0xbb660e[_0xd04c('0x30')]);_0x33184a[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0xbb660e['model'],qs[_0xd04c('0x36')](_0x13a0f9[_0xd04c('0x30')][_0xd04c('0x36')]));_0x33184a['attributes']=_0x33184a[_0xd04c('0x35')][_0xd04c('0x37')]?_0x33184a['attributes']:_0xbb660e[_0xd04c('0x34')];if(!_0x13a0f9[_0xd04c('0x30')]['hasOwnProperty'](_0xd04c('0x38'))){_0x33184a['limit']=qs[_0xd04c('0x1c')](_0x13a0f9[_0xd04c('0x30')]['limit']);_0x33184a[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0x13a0f9[_0xd04c('0x30')][_0xd04c('0x1b')]);}_0x33184a[_0xd04c('0x39')]=qs[_0xd04c('0x3a')](_0x13a0f9[_0xd04c('0x30')][_0xd04c('0x3a')]);_0x33184a[_0xd04c('0x3b')]=qs[_0xd04c('0x32')](_[_0xd04c('0x3c')](_0x13a0f9['query'],_0xbb660e[_0xd04c('0x32')]));if(_0x13a0f9['query']['filter']){_0x33184a[_0xd04c('0x3b')]=_[_0xd04c('0x3d')](_0x33184a[_0xd04c('0x3b')],{'$or':_[_0xd04c('0x2f')](_0x234d90,function(_0x182d3a){if(_0x182d3a['type']!=='VIRTUAL'){var _0x1889e1={};_0x1889e1[_0x182d3a['name']]={'$like':'%'+_0x13a0f9[_0xd04c('0x30')][_0xd04c('0x3e')]+'%'};return _0x1889e1;}})});}_0x33184a=_['merge']({},_0x33184a,_0x13a0f9[_0xd04c('0x3f')]);var _0x6f1ee7={'where':_0x33184a[_0xd04c('0x3b')]};return db['Campaign'][_0xd04c('0x1a')](_0x6f1ee7)[_0xd04c('0x26')](function(_0x1691da){_0x38a8a7['count']=_0x1691da;if(_0x13a0f9['query'][_0xd04c('0x40')]){_0x33184a[_0xd04c('0x41')]=[{'all':!![]}];}return db[_0xd04c('0x2b')]['findAll'](_0x33184a);})[_0xd04c('0x26')](function(_0x20c4ee){_0x38a8a7[_0xd04c('0x42')]=_0x20c4ee;return _0x38a8a7;})['then'](respondWithFilteredResult(_0x30bea2,_0x33184a))[_0xd04c('0x43')](handleError(_0x30bea2,null));};exports[_0xd04c('0x44')]=function(_0x24d2f0,_0x31df3b){var _0x4681fd={'raw':![],'where':{'id':_0x24d2f0[_0xd04c('0x45')]['id']}},_0xbc2634={};_0xbc2634[_0xd04c('0x34')]=_[_0xd04c('0x31')](db[_0xd04c('0x2b')]['rawAttributes']);_0xbc2634[_0xd04c('0x30')]=_['keys'](_0x24d2f0[_0xd04c('0x30')]);_0xbc2634['filters']=_[_0xd04c('0x33')](_0xbc2634['model'],_0xbc2634[_0xd04c('0x30')]);_0x4681fd['attributes']=_[_0xd04c('0x33')](_0xbc2634[_0xd04c('0x34')],qs['fields'](_0x24d2f0[_0xd04c('0x30')][_0xd04c('0x36')]));_0x4681fd['attributes']=_0x4681fd[_0xd04c('0x35')]['length']?_0x4681fd['attributes']:_0xbc2634[_0xd04c('0x34')];if(_0x24d2f0[_0xd04c('0x30')]['includeAll']){_0x4681fd[_0xd04c('0x41')]=[{'all':!![]}];}_0x4681fd=_[_0xd04c('0x3d')]({},_0x4681fd,_0x24d2f0[_0xd04c('0x3f')]);return db[_0xd04c('0x2b')][_0xd04c('0x46')](_0x4681fd)[_0xd04c('0x26')](handleEntityNotFound(_0x31df3b,null))['then'](respondWithResult(_0x31df3b,null))['catch'](handleError(_0x31df3b,null));};exports['create']=function(_0x773c11,_0x202b21){return db[_0xd04c('0x2b')][_0xd04c('0x47')](_0x773c11['body'],{})[_0xd04c('0x26')](function(_0x583bf1){var _0x31b384=_0x773c11[_0xd04c('0x48')][_0xd04c('0x49')]({'plain':!![]});if(!_0x31b384)throw new Error(_0xd04c('0x4a'));if(_0x31b384[_0xd04c('0x4b')]===_0xd04c('0x48')){var _0x4e410a=_0x583bf1[_0xd04c('0x49')]({'plain':!![]});var _0x3fc058=_0xd04c('0x24');return db[_0xd04c('0x4c')][_0xd04c('0x46')]({'where':{'name':_0x3fc058,'userProfileId':_0x31b384['userProfileId']},'raw':!![]})[_0xd04c('0x26')](function(_0x59eac6){if(_0x59eac6&&_0x59eac6[_0xd04c('0x4d')]===0x0){return db[_0xd04c('0x25')][_0xd04c('0x47')]({'name':_0x4e410a['name'],'resourceId':_0x4e410a['id'],'type':_0x59eac6[_0xd04c('0x28')],'sectionId':_0x59eac6['id']},{})[_0xd04c('0x26')](function(){return _0x583bf1;});}else{return _0x583bf1;}})[_0xd04c('0x43')](function(_0x121d54){logger[_0xd04c('0x4e')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x121d54);throw _0x121d54;});}return _0x583bf1;})['then'](respondWithResult(_0x202b21,0xc9))['catch'](handleError(_0x202b21,null));};exports['clone']=function(_0x46f67e,_0x3f1407){var _0x42e79c={'where':{'id':_0x46f67e['params']['id']}},_0x4996f7={};_0x4996f7[_0xd04c('0x34')]=_[_0xd04c('0x31')](db[_0xd04c('0x2b')][_0xd04c('0x2c')]);_0x42e79c[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0x4996f7[_0xd04c('0x34')],qs[_0xd04c('0x36')](_0x46f67e[_0xd04c('0x30')][_0xd04c('0x36')]));_0x42e79c[_0xd04c('0x35')]=_0x42e79c[_0xd04c('0x35')]['length']?_0x42e79c[_0xd04c('0x35')]:_0x4996f7['model'];if(_0x46f67e['query']['includeAll']){_0x42e79c['include']=[{'all':!![]}];}_0x42e79c=_[_0xd04c('0x3d')]({},_0x42e79c,_0x46f67e['options']);return db[_0xd04c('0x2b')][_0xd04c('0x46')](_0x42e79c)[_0xd04c('0x26')](handleEntityNotFound(_0x3f1407,null))[_0xd04c('0x26')](function(_0x4e5453){if(_0x4e5453){var _0x13862f=_0x4e5453[_0xd04c('0x49')]({'plain':!![]});_0x13862f=qs[_0xd04c('0x4f')](_0x13862f,['id',_0xd04c('0x50'),_0xd04c('0x51')]);_0x46f67e[_0xd04c('0x52')]=_[_0xd04c('0x4f')](_0x46f67e[_0xd04c('0x52')],['id',_0xd04c('0x50'),'updatedAt']);return db[_0xd04c('0x2b')][_0xd04c('0x47')](_[_0xd04c('0x3d')](_0x13862f,_0x46f67e[_0xd04c('0x52')]),{'include':_0x46f67e['query'][_0xd04c('0x40')]?[{'all':!![]}]:undefined})[_0xd04c('0x26')](function(_0x50a781){var _0x56c35b=_0x46f67e[_0xd04c('0x48')][_0xd04c('0x49')]({'plain':!![]});if(!_0x56c35b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x56c35b[_0xd04c('0x4b')]==='user'){var _0x105228=_0x50a781[_0xd04c('0x49')]({'plain':!![]});var _0x2f511b=_0xd04c('0x24');return db[_0xd04c('0x4c')][_0xd04c('0x46')]({'where':{'name':_0x2f511b,'userProfileId':_0x56c35b['userProfileId']},'raw':!![]})[_0xd04c('0x26')](function(_0x3630d2){if(_0x3630d2&&_0x3630d2[_0xd04c('0x4d')]===0x0){return db[_0xd04c('0x25')][_0xd04c('0x47')]({'name':_0x105228[_0xd04c('0x28')],'resourceId':_0x105228['id'],'type':_0x3630d2[_0xd04c('0x28')],'sectionId':_0x3630d2['id']},{})[_0xd04c('0x26')](function(){return _0x50a781;});}else{return _0x50a781;}})[_0xd04c('0x43')](function(_0x4ff5a9){logger[_0xd04c('0x4e')](_0xd04c('0x53'),_0x4ff5a9);throw _0x4ff5a9;});}return _0x50a781;});}})[_0xd04c('0x26')](respondWithResult(_0x3f1407,0xc9))[_0xd04c('0x43')](handleError(_0x3f1407,null));};exports['update']=function(_0xe276b5,_0x2d4771){if(_0xe276b5[_0xd04c('0x52')]['id']){delete _0xe276b5[_0xd04c('0x52')]['id'];}return db[_0xd04c('0x2b')][_0xd04c('0x46')]({'where':{'id':_0xe276b5[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x2d4771,null))['then'](saveUpdates(_0xe276b5[_0xd04c('0x52')],null))[_0xd04c('0x26')](respondWithResult(_0x2d4771,null))[_0xd04c('0x43')](handleError(_0x2d4771,null));};exports[_0xd04c('0x23')]=function(_0x719872,_0x1e6aca){return db['Campaign'][_0xd04c('0x46')]({'where':{'id':_0x719872[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x1e6aca,null))['then'](removeEntity(_0x1e6aca,null))[_0xd04c('0x43')](handleError(_0x1e6aca,null));};exports[_0xd04c('0x54')]=function(_0x185a6e,_0x9ffa2b,_0x4419f7){var _0x1ca676={'raw':!![],'where':{}};var _0x222e9e={};var _0x2d4a4c={'count':0x0,'rows':[]};return db[_0xd04c('0x2b')][_0xd04c('0x55')]({'where':{'id':_0x185a6e[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x9ffa2b,null))[_0xd04c('0x26')](function(_0x2203e5){if(_0x2203e5){_0x222e9e[_0xd04c('0x34')]=_[_0xd04c('0x31')](db['CmHopper']['rawAttributes']);_0x222e9e['query']=_[_0xd04c('0x31')](_0x185a6e[_0xd04c('0x30')]);_0x222e9e[_0xd04c('0x32')]=_['intersection'](_0x222e9e['model'],_0x222e9e[_0xd04c('0x30')]);_0x1ca676[_0xd04c('0x35')]=_['intersection'](_0x222e9e[_0xd04c('0x34')],qs[_0xd04c('0x36')](_0x185a6e[_0xd04c('0x30')][_0xd04c('0x36')]));_0x1ca676[_0xd04c('0x35')]=_0x1ca676[_0xd04c('0x35')]['length']?_0x1ca676[_0xd04c('0x35')]:_0x222e9e['model'];if(!_0x185a6e[_0xd04c('0x30')][_0xd04c('0x56')]('nolimit')){_0x1ca676[_0xd04c('0x1c')]=qs[_0xd04c('0x1c')](_0x185a6e[_0xd04c('0x30')][_0xd04c('0x1c')]);_0x1ca676[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0x185a6e[_0xd04c('0x30')][_0xd04c('0x1b')]);}_0x1ca676['order']=qs['sort'](_0x185a6e['query']['sort']);_0x1ca676['where']=qs[_0xd04c('0x32')](_[_0xd04c('0x3c')](_0x185a6e['query'],_0x222e9e[_0xd04c('0x32')]));_0x1ca676['where'][_0xd04c('0x57')]=_0x2203e5['id'];if(_0x185a6e['query'][_0xd04c('0x3e')]){_0x1ca676['where']=_['merge'](_0x1ca676['where'],{'$or':_['map'](_0x1ca676[_0xd04c('0x35')],function(_0x2ffb92){var _0x29aeca={};_0x29aeca[_0x2ffb92]={'$like':'%'+_0x185a6e[_0xd04c('0x30')][_0xd04c('0x3e')]+'%'};return _0x29aeca;})});}_0x1ca676=_[_0xd04c('0x3d')]({},_0x1ca676,_0x185a6e[_0xd04c('0x3f')]);return db[_0xd04c('0x58')][_0xd04c('0x1a')]({'where':_0x1ca676[_0xd04c('0x3b')]})[_0xd04c('0x26')](function(_0x23d402){_0x2d4a4c['count']=_0x23d402;if(_0x185a6e[_0xd04c('0x30')][_0xd04c('0x40')]){_0x1ca676[_0xd04c('0x41')]=[{'all':!![]}];}return db[_0xd04c('0x58')][_0xd04c('0x59')](_0x1ca676);})[_0xd04c('0x26')](function(_0x4c2b0a){_0x2d4a4c['rows']=_0x4c2b0a;return _0x2d4a4c;});}})['then'](respondWithFilteredResult(_0x9ffa2b,_0x1ca676))[_0xd04c('0x43')](handleError(_0x9ffa2b,null));};exports[_0xd04c('0x5a')]=function(_0x5cd5fd,_0x22b090,_0x593667){var _0x5aaca2={'raw':!![],'where':{}};var _0x397212={};var _0x1aa112={'count':0x0,'rows':[]};return db[_0xd04c('0x2b')][_0xd04c('0x55')]({'where':{'id':_0x5cd5fd[_0xd04c('0x45')]['id']}})['then'](handleEntityNotFound(_0x22b090,null))[_0xd04c('0x26')](function(_0x59b971){if(_0x59b971){_0x397212['model']=_[_0xd04c('0x31')](db[_0xd04c('0x5b')][_0xd04c('0x2c')]);_0x397212[_0xd04c('0x30')]=_[_0xd04c('0x31')](_0x5cd5fd[_0xd04c('0x30')]);_0x397212[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0x397212[_0xd04c('0x34')],_0x397212['query']);_0x5aaca2[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0x397212['model'],qs['fields'](_0x5cd5fd[_0xd04c('0x30')][_0xd04c('0x36')]));_0x5aaca2[_0xd04c('0x35')]=_0x5aaca2['attributes'][_0xd04c('0x37')]?_0x5aaca2[_0xd04c('0x35')]:_0x397212['model'];if(!_0x5cd5fd[_0xd04c('0x30')][_0xd04c('0x56')](_0xd04c('0x38'))){_0x5aaca2[_0xd04c('0x1c')]=qs[_0xd04c('0x1c')](_0x5cd5fd['query'][_0xd04c('0x1c')]);_0x5aaca2[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0x5cd5fd[_0xd04c('0x30')]['offset']);}_0x5aaca2[_0xd04c('0x39')]=qs[_0xd04c('0x3a')](_0x5cd5fd[_0xd04c('0x30')][_0xd04c('0x3a')]);_0x5aaca2[_0xd04c('0x3b')]=qs['filters'](_[_0xd04c('0x3c')](_0x5cd5fd['query'],_0x397212[_0xd04c('0x32')]));_0x5aaca2[_0xd04c('0x3b')][_0xd04c('0x57')]=_0x59b971['id'];if(_0x5cd5fd[_0xd04c('0x30')][_0xd04c('0x3e')]){_0x5aaca2[_0xd04c('0x3b')]=_['merge'](_0x5aaca2['where'],{'$or':_[_0xd04c('0x2f')](_0x5aaca2[_0xd04c('0x35')],function(_0x42bc2a){var _0x42e097={};_0x42e097[_0x42bc2a]={'$like':'%'+_0x5cd5fd[_0xd04c('0x30')]['filter']+'%'};return _0x42e097;})});}_0x5aaca2=_[_0xd04c('0x3d')]({},_0x5aaca2,_0x5cd5fd[_0xd04c('0x3f')]);return db[_0xd04c('0x5b')][_0xd04c('0x1a')]({'where':_0x5aaca2[_0xd04c('0x3b')]})[_0xd04c('0x26')](function(_0x6620e5){_0x1aa112[_0xd04c('0x1a')]=_0x6620e5;if(_0x5cd5fd[_0xd04c('0x30')][_0xd04c('0x40')]){_0x5aaca2[_0xd04c('0x41')]=[{'all':!![]}];}return db['CmHopperHistory']['findAll'](_0x5aaca2);})[_0xd04c('0x26')](function(_0x3090e0){_0x1aa112[_0xd04c('0x42')]=_0x3090e0;return _0x1aa112;});}})[_0xd04c('0x26')](respondWithFilteredResult(_0x22b090,_0x5aaca2))[_0xd04c('0x43')](handleError(_0x22b090,null));};exports['getHopperFinals']=function(_0xe708cb,_0x5ba46e,_0x59e5ee){var _0x4e1d86={'raw':!![],'where':{}};var _0x50d725={};var _0x1b9b88={'count':0x0,'rows':[]};return db[_0xd04c('0x2b')][_0xd04c('0x55')]({'where':{'id':_0xe708cb[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x5ba46e,null))[_0xd04c('0x26')](function(_0x33cf62){if(_0x33cf62){_0x50d725[_0xd04c('0x34')]=_[_0xd04c('0x31')](db[_0xd04c('0x5c')][_0xd04c('0x2c')]);_0x50d725[_0xd04c('0x30')]=_[_0xd04c('0x31')](_0xe708cb[_0xd04c('0x30')]);_0x50d725[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0x50d725[_0xd04c('0x34')],_0x50d725[_0xd04c('0x30')]);_0x4e1d86[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0x50d725[_0xd04c('0x34')],qs[_0xd04c('0x36')](_0xe708cb[_0xd04c('0x30')][_0xd04c('0x36')]));_0x4e1d86[_0xd04c('0x35')]=_0x4e1d86['attributes'][_0xd04c('0x37')]?_0x4e1d86['attributes']:_0x50d725[_0xd04c('0x34')];if(!_0xe708cb[_0xd04c('0x30')][_0xd04c('0x56')](_0xd04c('0x38'))){_0x4e1d86['limit']=qs[_0xd04c('0x1c')](_0xe708cb[_0xd04c('0x30')][_0xd04c('0x1c')]);_0x4e1d86[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0xe708cb[_0xd04c('0x30')]['offset']);}_0x4e1d86[_0xd04c('0x39')]=qs[_0xd04c('0x3a')](_0xe708cb['query'][_0xd04c('0x3a')]);_0x4e1d86[_0xd04c('0x3b')]=qs[_0xd04c('0x32')](_['pick'](_0xe708cb[_0xd04c('0x30')],_0x50d725[_0xd04c('0x32')]));_0x4e1d86[_0xd04c('0x3b')]['CampaignId']=_0x33cf62['id'];if(_0xe708cb['query'][_0xd04c('0x3e')]){_0x4e1d86[_0xd04c('0x3b')]=_[_0xd04c('0x3d')](_0x4e1d86[_0xd04c('0x3b')],{'$or':_[_0xd04c('0x2f')](_0x4e1d86[_0xd04c('0x35')],function(_0x5f2b51){var _0x555da4={};_0x555da4[_0x5f2b51]={'$like':'%'+_0xe708cb[_0xd04c('0x30')][_0xd04c('0x3e')]+'%'};return _0x555da4;})});}_0x4e1d86=_[_0xd04c('0x3d')]({},_0x4e1d86,_0xe708cb['options']);return db[_0xd04c('0x5c')][_0xd04c('0x1a')]({'where':_0x4e1d86[_0xd04c('0x3b')]})[_0xd04c('0x26')](function(_0x30634c){_0x1b9b88[_0xd04c('0x1a')]=_0x30634c;if(_0xe708cb[_0xd04c('0x30')]['includeAll']){_0x4e1d86[_0xd04c('0x41')]=[{'all':!![]}];}return db['CmHopperFinal'][_0xd04c('0x59')](_0x4e1d86);})[_0xd04c('0x26')](function(_0x32a7bb){_0x1b9b88[_0xd04c('0x42')]=_0x32a7bb;return _0x1b9b88;});}})[_0xd04c('0x26')](respondWithFilteredResult(_0x5ba46e,_0x4e1d86))[_0xd04c('0x43')](handleError(_0x5ba46e,null));};exports[_0xd04c('0x5d')]=function(_0x38b979,_0x1be380,_0x1af750){var _0x3e090f={'raw':!![],'where':{}};var _0x2bb91b={};var _0x48b825={'count':0x0,'rows':[]};return db[_0xd04c('0x2b')]['findOne']({'where':{'id':_0x38b979[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x1be380,null))[_0xd04c('0x26')](function(_0x6bfbb0){if(_0x6bfbb0){_0x2bb91b['model']=_[_0xd04c('0x31')](db['CmHopperBlack'][_0xd04c('0x2c')]);_0x2bb91b[_0xd04c('0x30')]=_[_0xd04c('0x31')](_0x38b979['query']);_0x2bb91b[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0x2bb91b[_0xd04c('0x34')],_0x2bb91b[_0xd04c('0x30')]);_0x3e090f[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0x2bb91b[_0xd04c('0x34')],qs[_0xd04c('0x36')](_0x38b979[_0xd04c('0x30')][_0xd04c('0x36')]));_0x3e090f[_0xd04c('0x35')]=_0x3e090f[_0xd04c('0x35')]['length']?_0x3e090f[_0xd04c('0x35')]:_0x2bb91b[_0xd04c('0x34')];if(!_0x38b979[_0xd04c('0x30')][_0xd04c('0x56')](_0xd04c('0x38'))){_0x3e090f['limit']=qs[_0xd04c('0x1c')](_0x38b979[_0xd04c('0x30')][_0xd04c('0x1c')]);_0x3e090f[_0xd04c('0x1b')]=qs['offset'](_0x38b979['query'][_0xd04c('0x1b')]);}_0x3e090f[_0xd04c('0x39')]=qs[_0xd04c('0x3a')](_0x38b979['query'][_0xd04c('0x3a')]);_0x3e090f[_0xd04c('0x3b')]=qs[_0xd04c('0x32')](_[_0xd04c('0x3c')](_0x38b979[_0xd04c('0x30')],_0x2bb91b[_0xd04c('0x32')]));_0x3e090f['where'][_0xd04c('0x57')]=_0x6bfbb0['id'];if(_0x38b979[_0xd04c('0x30')][_0xd04c('0x3e')]){_0x3e090f[_0xd04c('0x3b')]=_[_0xd04c('0x3d')](_0x3e090f[_0xd04c('0x3b')],{'$or':_[_0xd04c('0x2f')](_0x3e090f[_0xd04c('0x35')],function(_0x5a86c5){var _0x303a75={};_0x303a75[_0x5a86c5]={'$like':'%'+_0x38b979[_0xd04c('0x30')]['filter']+'%'};return _0x303a75;})});}_0x3e090f=_['merge']({},_0x3e090f,_0x38b979[_0xd04c('0x3f')]);return db['CmHopperBlack'][_0xd04c('0x1a')]({'where':_0x3e090f[_0xd04c('0x3b')]})[_0xd04c('0x26')](function(_0x53167b){_0x48b825[_0xd04c('0x1a')]=_0x53167b;if(_0x38b979['query'][_0xd04c('0x40')]){_0x3e090f['include']=[{'all':!![]}];}return db[_0xd04c('0x5e')][_0xd04c('0x59')](_0x3e090f);})[_0xd04c('0x26')](function(_0x3de4b7){_0x48b825[_0xd04c('0x42')]=_0x3de4b7;return _0x48b825;});}})[_0xd04c('0x26')](respondWithFilteredResult(_0x1be380,_0x3e090f))['catch'](handleError(_0x1be380,null));};exports[_0xd04c('0x5f')]=function(_0x3aabf9,_0x328b53,_0x315c04){var _0x32e0c9={};var _0x3876bc={};var _0x25f090;var _0x5f4635;return db[_0xd04c('0x2b')][_0xd04c('0x55')]({'where':{'id':_0x3aabf9[_0xd04c('0x45')]['id']}})['then'](handleEntityNotFound(_0x328b53,null))[_0xd04c('0x26')](function(_0x5c4829){if(_0x5c4829){_0x25f090=_0x5c4829;_0x3876bc[_0xd04c('0x34')]=_['keys'](db[_0xd04c('0x60')][_0xd04c('0x2c')]);_0x3876bc['query']=_['keys'](_0x3aabf9[_0xd04c('0x30')]);_0x3876bc[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0x3876bc[_0xd04c('0x34')],_0x3876bc[_0xd04c('0x30')]);_0x32e0c9['attributes']=_[_0xd04c('0x33')](_0x3876bc[_0xd04c('0x34')],qs['fields'](_0x3aabf9['query']['fields']));_0x32e0c9[_0xd04c('0x35')]=_0x32e0c9['attributes'][_0xd04c('0x37')]?_0x32e0c9[_0xd04c('0x35')]:_0x3876bc[_0xd04c('0x34')];_0x32e0c9[_0xd04c('0x39')]=qs['sort'](_0x3aabf9[_0xd04c('0x30')][_0xd04c('0x3a')]);_0x32e0c9['where']=qs[_0xd04c('0x32')](_[_0xd04c('0x3c')](_0x3aabf9[_0xd04c('0x30')],_0x3876bc[_0xd04c('0x32')]));if(_0x3aabf9[_0xd04c('0x30')][_0xd04c('0x3e')]){_0x32e0c9[_0xd04c('0x3b')]=_['merge'](_0x32e0c9[_0xd04c('0x3b')],{'$or':_[_0xd04c('0x2f')](_0x32e0c9['attributes'],function(_0x2a14e9){var _0x578733={};_0x578733[_0x2a14e9]={'$like':'%'+_0x3aabf9[_0xd04c('0x30')][_0xd04c('0x3e')]+'%'};return _0x578733;})});}_0x32e0c9=_[_0xd04c('0x3d')]({},_0x32e0c9,_0x3aabf9[_0xd04c('0x3f')]);return _0x25f090['getLists'](_0x32e0c9);}})[_0xd04c('0x26')](function(_0x1f1f72){if(_0x1f1f72){_0x5f4635=_0x1f1f72[_0xd04c('0x37')];if(!_0x3aabf9['query'][_0xd04c('0x56')](_0xd04c('0x38'))){_0x32e0c9[_0xd04c('0x1c')]=qs[_0xd04c('0x1c')](_0x3aabf9['query']['limit']);_0x32e0c9[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0x3aabf9[_0xd04c('0x30')]['offset']);}return _0x25f090[_0xd04c('0x5f')](_0x32e0c9);}})['then'](function(_0x3a6918){if(_0x3a6918){return _0x3a6918?{'count':_0x5f4635,'rows':_0x3a6918}:null;}})[_0xd04c('0x26')](respondWithResult(_0x328b53,null))[_0xd04c('0x43')](handleError(_0x328b53,null));};exports['addLists']=function(_0x272155,_0x3e832a,_0x241906){var _0x210c22,_0x24907b;return db[_0xd04c('0x2b')]['find']({'where':{'id':_0x272155[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x3e832a,null))['then'](function(_0x3c9f05){if(_0x3c9f05){_0x24907b=_0x3c9f05;return _0x3c9f05[_0xd04c('0x61')](_0x272155['body'][_0xd04c('0x62')],_['omit'](_0x272155['body'],[_0xd04c('0x62'),'id'])||{});}return null;})['spread'](function(_0x45fee7){var _0x499d1c;_0x210c22=_0x45fee7||[];var _0x101c99=[];if(_0x45fee7){for(var _0x4d516b=0x0;_0x4d516b<_0x45fee7[_0xd04c('0x37')];_0x4d516b+=0x1){var _0x398f96=_0x45fee7[_0x4d516b][_0xd04c('0x49')]({'plain':!![]});_0x24907b[_0xd04c('0x63')]=_0x272155[_0xd04c('0x52')][_0xd04c('0x63')]?_0x272155[_0xd04c('0x52')][_0xd04c('0x63')]:_0x24907b['dialCheckDuplicateType'];switch(_0x24907b[_0xd04c('0x63')]){case _0xd04c('0x64'):_0x499d1c=squel[_0xd04c('0x65')]()[_0xd04c('0x66')](_0xd04c('0x67'))[_0xd04c('0x68')]([_0xd04c('0x69'),_0xd04c('0x6a'),_0xd04c('0x6b'),'ListId',_0xd04c('0x57'),'createdAt',_0xd04c('0x51')],squel[_0xd04c('0x6c')]()[_0xd04c('0x6d')](_0xd04c('0x69'),'phone')[_0xd04c('0x6d')]('NOW()',_0xd04c('0x6a'))[_0xd04c('0x6d')]('id',_0xd04c('0x6b'))[_0xd04c('0x6d')](_0x398f96[_0xd04c('0x6e')][_0xd04c('0x6f')](),_0xd04c('0x70'))[_0xd04c('0x6d')](_0x272155[_0xd04c('0x45')]['id'][_0xd04c('0x6f')](),_0xd04c('0x57'))[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x50'))[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x51'))[_0xd04c('0x72')](_0xd04c('0x73'))[_0xd04c('0x3b')](_0xd04c('0x74'))[_0xd04c('0x3b')](_0xd04c('0x75'),_0x398f96[_0xd04c('0x6e')][_0xd04c('0x6f')]())['where']('phone\x20IS\x20NOT\x20NULL')['where'](_0xd04c('0x76'),squel[_0xd04c('0x6c')]()['field']('COALESCE(calleridnum,\x27\x27)')[_0xd04c('0x72')](_0xd04c('0x77'))[_0xd04c('0x3b')]('CampaignId\x20=\x20?',_0x272155[_0xd04c('0x45')]['id'][_0xd04c('0x6f')]()))[_0xd04c('0x3b')](_0xd04c('0x76'),squel[_0xd04c('0x6c')]()[_0xd04c('0x6d')]('COALESCE(phone,\x27\x27)')[_0xd04c('0x72')](_0xd04c('0x67'))[_0xd04c('0x3b')]('CampaignId\x20=\x20?',_0x272155[_0xd04c('0x45')]['id'][_0xd04c('0x6f')]())))['toString']();break;case _0xd04c('0x78'):_0x499d1c=squel[_0xd04c('0x65')]()['into'](_0xd04c('0x67'))[_0xd04c('0x68')]([_0xd04c('0x69'),'scheduledAt',_0xd04c('0x6b'),_0xd04c('0x70'),_0xd04c('0x57'),'createdAt','updatedAt'],squel[_0xd04c('0x6c')]()['field'](_0xd04c('0x69'),'phone')['field'](_0xd04c('0x71'),'scheduledAt')['field']('id',_0xd04c('0x6b'))[_0xd04c('0x6d')](_0x398f96[_0xd04c('0x6e')][_0xd04c('0x6f')](),_0xd04c('0x70'))[_0xd04c('0x6d')](_0x272155['params']['id']['toString'](),_0xd04c('0x57'))['field'](_0xd04c('0x71'),'createdAt')[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x51'))[_0xd04c('0x72')](_0xd04c('0x73'))['where'](_0xd04c('0x74'))[_0xd04c('0x3b')]('ListId\x20=\x20?',_0x398f96[_0xd04c('0x6e')][_0xd04c('0x6f')]())[_0xd04c('0x3b')](_0xd04c('0x79'))[_0xd04c('0x3b')](_0xd04c('0x76'),squel[_0xd04c('0x6c')]()['field'](_0xd04c('0x7a'))[_0xd04c('0x72')](_0xd04c('0x67'))[_0xd04c('0x3b')](_0xd04c('0x7b'),_0x272155[_0xd04c('0x45')]['id']['toString']())))[_0xd04c('0x6f')]();break;default:_0x499d1c=squel[_0xd04c('0x65')]()['into'](_0xd04c('0x67'))[_0xd04c('0x68')]([_0xd04c('0x69'),'scheduledAt',_0xd04c('0x6b'),_0xd04c('0x70'),'CampaignId',_0xd04c('0x50'),_0xd04c('0x51')],squel['select']()[_0xd04c('0x6d')]('phone',_0xd04c('0x69'))[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x6a'))[_0xd04c('0x6d')]('id','ContactId')['field'](_0x398f96['CmListId'][_0xd04c('0x6f')](),_0xd04c('0x70'))[_0xd04c('0x6d')](_0x272155[_0xd04c('0x45')]['id'][_0xd04c('0x6f')](),_0xd04c('0x57'))[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x50'))[_0xd04c('0x6d')](_0xd04c('0x71'),_0xd04c('0x51'))[_0xd04c('0x72')](_0xd04c('0x73'))[_0xd04c('0x3b')]('deletedAt\x20IS\x20NULL')[_0xd04c('0x3b')](_0xd04c('0x75'),_0x398f96[_0xd04c('0x6e')][_0xd04c('0x6f')]())[_0xd04c('0x3b')](_0xd04c('0x79')))[_0xd04c('0x6f')]();}_0x101c99[_0xd04c('0x7c')](db[_0xd04c('0x7d')][_0xd04c('0x30')](_0x499d1c));}return BPromise[_0xd04c('0x7e')](_0x101c99);}})[_0xd04c('0x26')](function(){return _0x210c22;})[_0xd04c('0x26')](respondWithResult(_0x3e832a,null))['catch'](handleError(_0x3e832a,null));};exports[_0xd04c('0x7f')]=function(_0x3584a5,_0x11b55f,_0x3abf23){return db[_0xd04c('0x2b')][_0xd04c('0x46')]({'where':{'id':_0x3584a5[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x11b55f,null))[_0xd04c('0x26')](function(_0x765608){if(_0x765608){return _0x765608[_0xd04c('0x7f')](_0x3584a5[_0xd04c('0x30')][_0xd04c('0x62')]);}})[_0xd04c('0x26')](function(_0x57485d){if(_0x57485d){return db[_0xd04c('0x58')][_0xd04c('0x23')]({'where':{'ListId':_0x3584a5['query'][_0xd04c('0x62')],'CampaignId':_0x3584a5['params']['id']}})[_0xd04c('0x26')](function(){return _0x57485d;});}})[_0xd04c('0x26')](respondWithStatusCode(_0x11b55f,null))['catch'](handleError(_0x11b55f,null));};exports[_0xd04c('0x80')]=function(_0x4fbcc3,_0x18f6db,_0x563fb1){var _0x62bf02={'raw':!![],'where':{}};var _0x16257e={};var _0x59c76a={'count':0x0,'rows':[]};return db[_0xd04c('0x2b')][_0xd04c('0x55')]({'where':{'id':_0x4fbcc3['params']['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x18f6db,null))[_0xd04c('0x26')](function(_0x3ed072){if(_0x3ed072){_0x16257e[_0xd04c('0x34')]=_[_0xd04c('0x31')](db[_0xd04c('0x60')][_0xd04c('0x2c')]);_0x16257e[_0xd04c('0x30')]=_[_0xd04c('0x31')](_0x4fbcc3[_0xd04c('0x30')]);_0x16257e[_0xd04c('0x32')]=_[_0xd04c('0x33')](_0x16257e['model'],_0x16257e[_0xd04c('0x30')]);_0x62bf02[_0xd04c('0x35')]=_[_0xd04c('0x33')](_0x16257e[_0xd04c('0x34')],qs[_0xd04c('0x36')](_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x36')]));_0x62bf02['attributes']=_0x62bf02[_0xd04c('0x35')]['length']?_0x62bf02[_0xd04c('0x35')]:_0x16257e[_0xd04c('0x34')];if(!_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x56')](_0xd04c('0x38'))){_0x62bf02[_0xd04c('0x1c')]=qs['limit'](_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x1c')]);_0x62bf02[_0xd04c('0x1b')]=qs[_0xd04c('0x1b')](_0x4fbcc3[_0xd04c('0x30')]['offset']);}_0x62bf02[_0xd04c('0x39')]=qs[_0xd04c('0x3a')](_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x3a')]);_0x62bf02[_0xd04c('0x3b')]=qs[_0xd04c('0x32')](_[_0xd04c('0x3c')](_0x4fbcc3['query'],_0x16257e['filters']));_0x62bf02['where'][_0xd04c('0x57')]=_0x3ed072['id'];if(_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x3e')]){_0x62bf02[_0xd04c('0x3b')]=_[_0xd04c('0x3d')](_0x62bf02[_0xd04c('0x3b')],{'$or':_[_0xd04c('0x2f')](_0x62bf02[_0xd04c('0x35')],function(_0x300017){var _0x2688bd={};_0x2688bd[_0x300017]={'$like':'%'+_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x3e')]+'%'};return _0x2688bd;})});}_0x62bf02=_[_0xd04c('0x3d')]({},_0x62bf02,_0x4fbcc3[_0xd04c('0x3f')]);return db[_0xd04c('0x60')]['count']({'where':_0x62bf02[_0xd04c('0x3b')]})[_0xd04c('0x26')](function(_0x3a2961){_0x59c76a[_0xd04c('0x1a')]=_0x3a2961;if(_0x4fbcc3[_0xd04c('0x30')][_0xd04c('0x40')]){_0x62bf02[_0xd04c('0x41')]=[{'all':!![]}];}return db[_0xd04c('0x60')][_0xd04c('0x59')](_0x62bf02);})[_0xd04c('0x26')](function(_0x3c4827){_0x59c76a[_0xd04c('0x42')]=_0x3c4827;return _0x59c76a;});}})[_0xd04c('0x26')](respondWithFilteredResult(_0x18f6db,_0x62bf02))[_0xd04c('0x43')](handleError(_0x18f6db,null));};exports[_0xd04c('0x81')]=function(_0xadfdb4,_0x4e653b,_0x3a3192){var _0x5a22d9,_0x30a38b;return db[_0xd04c('0x2b')]['find']({'where':{'id':_0xadfdb4[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x4e653b,null))[_0xd04c('0x26')](function(_0x24cd42){if(_0x24cd42){_0x30a38b=_0x24cd42;return _0x24cd42[_0xd04c('0x81')](_0xadfdb4[_0xd04c('0x52')][_0xd04c('0x62')],_['omit'](_0xadfdb4[_0xd04c('0x52')],['ids','id'])||{});}return null;})[_0xd04c('0x82')](function(_0x6a07a8){var _0x5aaee3;_0x5a22d9=_0x6a07a8||[];var _0x4476fa=[];if(_0x6a07a8){for(var _0x297492=0x0;_0x297492<_0x6a07a8[_0xd04c('0x37')];_0x297492+=0x1){var _0x157920=_0x6a07a8[_0x297492][_0xd04c('0x49')]({'plain':!![]});_0x5aaee3=squel[_0xd04c('0x65')]()[_0xd04c('0x66')](_0xd04c('0x83'))[_0xd04c('0x68')]([_0xd04c('0x69'),'ContactId',_0xd04c('0x70'),_0xd04c('0x57'),'createdAt','updatedAt'],squel[_0xd04c('0x6c')]()[_0xd04c('0x6d')](_0xd04c('0x69'),_0xd04c('0x69'))[_0xd04c('0x6d')]('id',_0xd04c('0x6b'))[_0xd04c('0x6d')](_0x157920['CmListId'][_0xd04c('0x6f')](),_0xd04c('0x70'))[_0xd04c('0x6d')](_0xadfdb4['params']['id'][_0xd04c('0x6f')](),_0xd04c('0x57'))[_0xd04c('0x6d')]('NOW()',_0xd04c('0x50'))[_0xd04c('0x6d')](_0xd04c('0x71'),'updatedAt')[_0xd04c('0x72')]('cm_contacts')[_0xd04c('0x3b')](_0xd04c('0x74'))[_0xd04c('0x3b')](_0xd04c('0x75'),_0x157920[_0xd04c('0x6e')][_0xd04c('0x6f')]())[_0xd04c('0x3b')]('phone\x20IS\x20NOT\x20NULL'))[_0xd04c('0x6f')]();_0x4476fa[_0xd04c('0x7c')](db[_0xd04c('0x7d')]['query'](_0x5aaee3));}return BPromise['all'](_0x4476fa);}})[_0xd04c('0x26')](function(){return _0x5a22d9;})[_0xd04c('0x26')](respondWithResult(_0x4e653b,null))[_0xd04c('0x43')](handleError(_0x4e653b,null));};exports[_0xd04c('0x84')]=function(_0xd421ed,_0x234074,_0x41b8cb){return db[_0xd04c('0x2b')][_0xd04c('0x46')]({'where':{'id':_0xd421ed[_0xd04c('0x45')]['id']}})[_0xd04c('0x26')](handleEntityNotFound(_0x234074,null))[_0xd04c('0x26')](function(_0x4330f9){if(_0x4330f9){return _0x4330f9[_0xd04c('0x84')](_0xd421ed[_0xd04c('0x30')][_0xd04c('0x62')]);}})[_0xd04c('0x26')](function(_0x21eb4b){if(_0x21eb4b){return db['CmHopperBlack'][_0xd04c('0x23')]({'where':{'ListId':_0xd421ed[_0xd04c('0x30')][_0xd04c('0x62')],'CampaignId':_0xd421ed[_0xd04c('0x45')]['id']}})['then'](function(){return _0x21eb4b;});}})['then'](respondWithStatusCode(_0x234074,null))[_0xd04c('0x43')](handleError(_0x234074,null));};
\ No newline at end of file
+var _0xe098=['keys','filters','attributes','fields','length','nolimit','order','sort','where','pick','filter','options','include','rows','catch','show','intersection','includeAll','merge','create','body','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','clone','params','omit','updatedAt','createdAt','user','find','update','destroy','findOne','CmHopper','hasOwnProperty','CampaignId','findAll','getHopperHistories','CmHopperHistory','getHopperFinals','CmHopperFinal','getHopperBlacks','CmHopperBlack','CmList','getLists','addLists','ids','dialCheckDuplicateType','always','insert','into','cm_hopper','fromQuery','phone','scheduledAt','ContactId','ListId','select','field','NOW()','CmListId','toString','deletedAt\x20IS\x20NULL','ListId\x20=\x20?','phone\x20IS\x20NOT\x20NULL','from','cm_hopper_final','CampaignId\x20=\x20?','phone\x20NOT\x20IN\x20(?)','COALESCE(phone,\x27\x27)','onlyIfOpen','cm_contacts','push','sequelize','all','removeLists','getBlackLists','addBlackLists','spread','cm_hopper_black','removeBlackLists','html-pdf','eml-format','zip-dir','fast-json-patch','moment','mustache','util','path','sox','ejs','lodash','crypto','jsforce','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','apply','reject','save','then','IvrCampaigns','UserProfileResource','error','stack','name','index','Campaign','rawAttributes','fieldName','type','model','map','query'];(function(_0x36888d,_0x22988e){var _0x14f524=function(_0x5cdbfe){while(--_0x5cdbfe){_0x36888d['push'](_0x36888d['shift']());}};_0x14f524(++_0x22988e);}(_0xe098,0xdc));var _0x8e09=function(_0x4133db,_0x5ee998){_0x4133db=_0x4133db-0x0;var _0x3bf831=_0xe098[_0x4133db];return _0x3bf831;};'use strict';var pdf=require(_0x8e09('0x0'));var emlformat=require(_0x8e09('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x8e09('0x2'));var jsonpatch=require(_0x8e09('0x3'));var rp=require('request-promise');var moment=require(_0x8e09('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x8e09('0x5'));var util=require(_0x8e09('0x6'));var path=require(_0x8e09('0x7'));var sox=require(_0x8e09('0x8'));var csv=require('to-csv');var ejs=require(_0x8e09('0x9'));var fs=require('fs');var _=require(_0x8e09('0xa'));var squel=require('squel');var crypto=require(_0x8e09('0xb'));var jsforce=require(_0x8e09('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x8e09('0xd'));var querystring=require(_0x8e09('0xe'));var Papa=require(_0x8e09('0xf'));var Redis=require(_0x8e09('0x10'));var authService=require(_0x8e09('0x11'));var qs=require(_0x8e09('0x12'));var as=require(_0x8e09('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x8e09('0x14'))('api');var utils=require(_0x8e09('0x15'));var config=require(_0x8e09('0x16'));var db=require(_0x8e09('0x17'))['db'];function respondWithStatusCode(_0x4d0da5,_0x3358a7){_0x3358a7=_0x3358a7||0xcc;return function(_0x4a8a20){if(_0x4a8a20){return _0x4d0da5[_0x8e09('0x18')](_0x3358a7);}return _0x4d0da5[_0x8e09('0x19')](_0x3358a7)[_0x8e09('0x1a')]();};}function respondWithResult(_0x1e053b,_0x5ab42c){_0x5ab42c=_0x5ab42c||0xc8;return function(_0x59a737){if(_0x59a737){return _0x1e053b['status'](_0x5ab42c)[_0x8e09('0x1b')](_0x59a737);}};}function respondWithFilteredResult(_0x472647,_0x56ef00){return function(_0x2d3c3c){if(_0x2d3c3c){var _0x12f4d0=_0x2d3c3c[_0x8e09('0x1c')],_0x4152ab=_0x56ef00[_0x8e09('0x1d')],_0x59cb22=_0x56ef00[_0x8e09('0x1d')]+_0x56ef00[_0x8e09('0x1e')],_0x3d9836;if(_0x59cb22>=_0x12f4d0){_0x59cb22=_0x12f4d0;_0x3d9836=0xc8;}else{_0x3d9836=0xce;}_0x472647['status'](_0x3d9836);return _0x472647['set']('Content-Range',_0x4152ab+'-'+_0x59cb22+'/'+_0x12f4d0)[_0x8e09('0x1b')](_0x2d3c3c);}return null;};}function patchUpdates(_0x27893){return function(_0x42f00b){try{jsonpatch[_0x8e09('0x1f')](_0x42f00b,_0x27893,!![]);}catch(_0x47fc17){return BPromise[_0x8e09('0x20')](_0x47fc17);}return _0x42f00b[_0x8e09('0x21')]();};}function saveUpdates(_0x4cdfe4,_0x1387e6){return function(_0x241c81){if(_0x241c81){return _0x241c81['update'](_0x4cdfe4)[_0x8e09('0x22')](function(_0x1c4b30){return _0x1c4b30;});}return null;};}function removeEntity(_0x39ada0,_0x12958a){return function(_0x490801){if(_0x490801){return _0x490801['destroy']()[_0x8e09('0x22')](function(){var _0x797ea=_0x490801['get']({'plain':!![]});var _0xd5f646=_0x8e09('0x23');return db[_0x8e09('0x24')]['destroy']({'where':{'type':_0xd5f646,'resourceId':_0x797ea['id']}})[_0x8e09('0x22')](function(){return _0x490801;});})[_0x8e09('0x22')](function(){_0x39ada0['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x569267,_0x1cd7eb){return function(_0x24cfcb){if(!_0x24cfcb){_0x569267['sendStatus'](0x194);}return _0x24cfcb;};}function handleError(_0x12dc21,_0x56f19a){_0x56f19a=_0x56f19a||0x1f4;return function(_0x2c4e52){logger[_0x8e09('0x25')](_0x2c4e52[_0x8e09('0x26')]);if(_0x2c4e52[_0x8e09('0x27')]){delete _0x2c4e52['name'];}_0x12dc21[_0x8e09('0x19')](_0x56f19a)['send'](_0x2c4e52);};}exports[_0x8e09('0x28')]=function(_0xee51b7,_0xa31fb8){var _0x5e99fd={},_0x213727={},_0x3d4107={'count':0x0,'rows':[]};var _0x3e3518=_['map'](db[_0x8e09('0x29')][_0x8e09('0x2a')],function(_0x15abc3){return{'name':_0x15abc3[_0x8e09('0x2b')],'type':_0x15abc3[_0x8e09('0x2c')]['key']};});_0x213727[_0x8e09('0x2d')]=_[_0x8e09('0x2e')](_0x3e3518,_0x8e09('0x27'));_0x213727[_0x8e09('0x2f')]=_[_0x8e09('0x30')](_0xee51b7['query']);_0x213727[_0x8e09('0x31')]=_['intersection'](_0x213727[_0x8e09('0x2d')],_0x213727[_0x8e09('0x2f')]);_0x5e99fd[_0x8e09('0x32')]=_['intersection'](_0x213727['model'],qs['fields'](_0xee51b7[_0x8e09('0x2f')][_0x8e09('0x33')]));_0x5e99fd[_0x8e09('0x32')]=_0x5e99fd[_0x8e09('0x32')][_0x8e09('0x34')]?_0x5e99fd[_0x8e09('0x32')]:_0x213727[_0x8e09('0x2d')];if(!_0xee51b7[_0x8e09('0x2f')]['hasOwnProperty'](_0x8e09('0x35'))){_0x5e99fd[_0x8e09('0x1e')]=qs[_0x8e09('0x1e')](_0xee51b7[_0x8e09('0x2f')][_0x8e09('0x1e')]);_0x5e99fd[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0xee51b7[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x5e99fd[_0x8e09('0x36')]=qs[_0x8e09('0x37')](_0xee51b7[_0x8e09('0x2f')][_0x8e09('0x37')]);_0x5e99fd[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0xee51b7[_0x8e09('0x2f')],_0x213727['filters']));if(_0xee51b7[_0x8e09('0x2f')][_0x8e09('0x3a')]){_0x5e99fd[_0x8e09('0x38')]=_['merge'](_0x5e99fd['where'],{'$or':_[_0x8e09('0x2e')](_0x3e3518,function(_0x45c6fe){if(_0x45c6fe[_0x8e09('0x2c')]!=='VIRTUAL'){var _0x2f88b8={};_0x2f88b8[_0x45c6fe[_0x8e09('0x27')]]={'$like':'%'+_0xee51b7['query']['filter']+'%'};return _0x2f88b8;}})});}_0x5e99fd=_['merge']({},_0x5e99fd,_0xee51b7[_0x8e09('0x3b')]);var _0x44253e={'where':_0x5e99fd[_0x8e09('0x38')]};return db[_0x8e09('0x29')][_0x8e09('0x1c')](_0x44253e)[_0x8e09('0x22')](function(_0x5e32fd){_0x3d4107['count']=_0x5e32fd;if(_0xee51b7[_0x8e09('0x2f')]['includeAll']){_0x5e99fd[_0x8e09('0x3c')]=[{'all':!![]}];}return db['Campaign']['findAll'](_0x5e99fd);})['then'](function(_0x9b875b){_0x3d4107[_0x8e09('0x3d')]=_0x9b875b;return _0x3d4107;})[_0x8e09('0x22')](respondWithFilteredResult(_0xa31fb8,_0x5e99fd))[_0x8e09('0x3e')](handleError(_0xa31fb8,null));};exports[_0x8e09('0x3f')]=function(_0x120062,_0x41a821){var _0x37676c={'raw':![],'where':{'id':_0x120062['params']['id']}},_0x286d68={};_0x286d68[_0x8e09('0x2d')]=_['keys'](db['Campaign'][_0x8e09('0x2a')]);_0x286d68[_0x8e09('0x2f')]=_['keys'](_0x120062['query']);_0x286d68[_0x8e09('0x31')]=_[_0x8e09('0x40')](_0x286d68['model'],_0x286d68[_0x8e09('0x2f')]);_0x37676c[_0x8e09('0x32')]=_[_0x8e09('0x40')](_0x286d68['model'],qs[_0x8e09('0x33')](_0x120062['query']['fields']));_0x37676c[_0x8e09('0x32')]=_0x37676c[_0x8e09('0x32')][_0x8e09('0x34')]?_0x37676c['attributes']:_0x286d68[_0x8e09('0x2d')];if(_0x120062[_0x8e09('0x2f')][_0x8e09('0x41')]){_0x37676c[_0x8e09('0x3c')]=[{'all':!![]}];}_0x37676c=_[_0x8e09('0x42')]({},_0x37676c,_0x120062['options']);return db[_0x8e09('0x29')]['find'](_0x37676c)[_0x8e09('0x22')](handleEntityNotFound(_0x41a821,null))[_0x8e09('0x22')](respondWithResult(_0x41a821,null))[_0x8e09('0x3e')](handleError(_0x41a821,null));};exports['create']=function(_0x18589c,_0x17299c){return db[_0x8e09('0x29')][_0x8e09('0x43')](_0x18589c[_0x8e09('0x44')],{})[_0x8e09('0x22')](function(_0x1a7ee0){var _0x112f52=_0x18589c['user'][_0x8e09('0x45')]({'plain':!![]});if(!_0x112f52)throw new Error(_0x8e09('0x46'));if(_0x112f52[_0x8e09('0x47')]==='user'){var _0x207fa5=_0x1a7ee0[_0x8e09('0x45')]({'plain':!![]});var _0x1ef16f=_0x8e09('0x23');return db[_0x8e09('0x48')]['find']({'where':{'name':_0x1ef16f,'userProfileId':_0x112f52[_0x8e09('0x49')]},'raw':!![]})['then'](function(_0x5f1d1c){if(_0x5f1d1c&&_0x5f1d1c[_0x8e09('0x4a')]===0x0){return db['UserProfileResource'][_0x8e09('0x43')]({'name':_0x207fa5[_0x8e09('0x27')],'resourceId':_0x207fa5['id'],'type':_0x5f1d1c[_0x8e09('0x27')],'sectionId':_0x5f1d1c['id']},{})['then'](function(){return _0x1a7ee0;});}else{return _0x1a7ee0;}})[_0x8e09('0x3e')](function(_0x1a2e99){logger[_0x8e09('0x25')](_0x8e09('0x4b'),_0x1a2e99);throw _0x1a2e99;});}return _0x1a7ee0;})[_0x8e09('0x22')](respondWithResult(_0x17299c,0xc9))[_0x8e09('0x3e')](handleError(_0x17299c,null));};exports[_0x8e09('0x4c')]=function(_0xe93446,_0x215c94){var _0x50997f={'where':{'id':_0xe93446[_0x8e09('0x4d')]['id']}},_0x2019a1={};_0x2019a1[_0x8e09('0x2d')]=_['keys'](db[_0x8e09('0x29')][_0x8e09('0x2a')]);_0x50997f[_0x8e09('0x32')]=_['intersection'](_0x2019a1[_0x8e09('0x2d')],qs['fields'](_0xe93446[_0x8e09('0x2f')][_0x8e09('0x33')]));_0x50997f[_0x8e09('0x32')]=_0x50997f[_0x8e09('0x32')][_0x8e09('0x34')]?_0x50997f['attributes']:_0x2019a1[_0x8e09('0x2d')];if(_0xe93446[_0x8e09('0x2f')]['includeAll']){_0x50997f[_0x8e09('0x3c')]=[{'all':!![]}];}_0x50997f=_[_0x8e09('0x42')]({},_0x50997f,_0xe93446['options']);return db[_0x8e09('0x29')]['find'](_0x50997f)[_0x8e09('0x22')](handleEntityNotFound(_0x215c94,null))[_0x8e09('0x22')](function(_0x4c2db7){if(_0x4c2db7){var _0x3344e8=_0x4c2db7['get']({'plain':!![]});_0x3344e8=qs[_0x8e09('0x4e')](_0x3344e8,['id','createdAt',_0x8e09('0x4f')]);_0xe93446['body']=_[_0x8e09('0x4e')](_0xe93446[_0x8e09('0x44')],['id',_0x8e09('0x50'),_0x8e09('0x4f')]);return db[_0x8e09('0x29')][_0x8e09('0x43')](_[_0x8e09('0x42')](_0x3344e8,_0xe93446['body']),{'include':_0xe93446[_0x8e09('0x2f')]['includeAll']?[{'all':!![]}]:undefined})[_0x8e09('0x22')](function(_0x567dc4){var _0x2bfe47=_0xe93446[_0x8e09('0x51')][_0x8e09('0x45')]({'plain':!![]});if(!_0x2bfe47)throw new Error(_0x8e09('0x46'));if(_0x2bfe47[_0x8e09('0x47')]==='user'){var _0x5a85b4=_0x567dc4['get']({'plain':!![]});var _0x52ce34=_0x8e09('0x23');return db[_0x8e09('0x48')][_0x8e09('0x52')]({'where':{'name':_0x52ce34,'userProfileId':_0x2bfe47[_0x8e09('0x49')]},'raw':!![]})[_0x8e09('0x22')](function(_0x2de15d){if(_0x2de15d&&_0x2de15d['autoAssociation']===0x0){return db[_0x8e09('0x24')][_0x8e09('0x43')]({'name':_0x5a85b4[_0x8e09('0x27')],'resourceId':_0x5a85b4['id'],'type':_0x2de15d[_0x8e09('0x27')],'sectionId':_0x2de15d['id']},{})['then'](function(){return _0x567dc4;});}else{return _0x567dc4;}})[_0x8e09('0x3e')](function(_0x35b9f3){logger['error'](_0x8e09('0x4b'),_0x35b9f3);throw _0x35b9f3;});}return _0x567dc4;});}})[_0x8e09('0x22')](respondWithResult(_0x215c94,0xc9))[_0x8e09('0x3e')](handleError(_0x215c94,null));};exports[_0x8e09('0x53')]=function(_0x2b0fbb,_0x4b1301){if(_0x2b0fbb[_0x8e09('0x44')]['id']){delete _0x2b0fbb[_0x8e09('0x44')]['id'];}return db[_0x8e09('0x29')]['find']({'where':{'id':_0x2b0fbb[_0x8e09('0x4d')]['id']}})['then'](handleEntityNotFound(_0x4b1301,null))[_0x8e09('0x22')](saveUpdates(_0x2b0fbb['body'],null))[_0x8e09('0x22')](respondWithResult(_0x4b1301,null))[_0x8e09('0x3e')](handleError(_0x4b1301,null));};exports[_0x8e09('0x54')]=function(_0x24c2af,_0x3a8753){return db[_0x8e09('0x29')]['find']({'where':{'id':_0x24c2af[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x3a8753,null))[_0x8e09('0x22')](removeEntity(_0x3a8753,null))['catch'](handleError(_0x3a8753,null));};exports['getHoppers']=function(_0x5a69dd,_0x5bc38c,_0x5cf0be){var _0x24930f={'raw':!![],'where':{}};var _0x20fca2={};var _0x9c2f5d={'count':0x0,'rows':[]};return db['Campaign'][_0x8e09('0x55')]({'where':{'id':_0x5a69dd[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x5bc38c,null))['then'](function(_0x5c7031){if(_0x5c7031){_0x20fca2[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x56')][_0x8e09('0x2a')]);_0x20fca2[_0x8e09('0x2f')]=_[_0x8e09('0x30')](_0x5a69dd[_0x8e09('0x2f')]);_0x20fca2[_0x8e09('0x31')]=_['intersection'](_0x20fca2[_0x8e09('0x2d')],_0x20fca2['query']);_0x24930f['attributes']=_[_0x8e09('0x40')](_0x20fca2[_0x8e09('0x2d')],qs[_0x8e09('0x33')](_0x5a69dd[_0x8e09('0x2f')][_0x8e09('0x33')]));_0x24930f[_0x8e09('0x32')]=_0x24930f['attributes']['length']?_0x24930f[_0x8e09('0x32')]:_0x20fca2['model'];if(!_0x5a69dd[_0x8e09('0x2f')][_0x8e09('0x57')](_0x8e09('0x35'))){_0x24930f[_0x8e09('0x1e')]=qs[_0x8e09('0x1e')](_0x5a69dd['query'][_0x8e09('0x1e')]);_0x24930f[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0x5a69dd[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x24930f[_0x8e09('0x36')]=qs[_0x8e09('0x37')](_0x5a69dd[_0x8e09('0x2f')]['sort']);_0x24930f[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0x5a69dd['query'],_0x20fca2[_0x8e09('0x31')]));_0x24930f[_0x8e09('0x38')][_0x8e09('0x58')]=_0x5c7031['id'];if(_0x5a69dd[_0x8e09('0x2f')]['filter']){_0x24930f[_0x8e09('0x38')]=_[_0x8e09('0x42')](_0x24930f[_0x8e09('0x38')],{'$or':_[_0x8e09('0x2e')](_0x24930f[_0x8e09('0x32')],function(_0x133eeb){var _0x56e358={};_0x56e358[_0x133eeb]={'$like':'%'+_0x5a69dd[_0x8e09('0x2f')]['filter']+'%'};return _0x56e358;})});}_0x24930f=_[_0x8e09('0x42')]({},_0x24930f,_0x5a69dd['options']);return db[_0x8e09('0x56')][_0x8e09('0x1c')]({'where':_0x24930f[_0x8e09('0x38')]})['then'](function(_0xc7e1a4){_0x9c2f5d['count']=_0xc7e1a4;if(_0x5a69dd[_0x8e09('0x2f')][_0x8e09('0x41')]){_0x24930f[_0x8e09('0x3c')]=[{'all':!![]}];}return db['CmHopper'][_0x8e09('0x59')](_0x24930f);})[_0x8e09('0x22')](function(_0x3763df){_0x9c2f5d[_0x8e09('0x3d')]=_0x3763df;return _0x9c2f5d;});}})['then'](respondWithFilteredResult(_0x5bc38c,_0x24930f))[_0x8e09('0x3e')](handleError(_0x5bc38c,null));};exports[_0x8e09('0x5a')]=function(_0x4819dd,_0x2b4e12,_0x268055){var _0x1a79c1={'raw':!![],'where':{}};var _0x11fc89={};var _0xf7e3f3={'count':0x0,'rows':[]};return db['Campaign'][_0x8e09('0x55')]({'where':{'id':_0x4819dd[_0x8e09('0x4d')]['id']}})['then'](handleEntityNotFound(_0x2b4e12,null))[_0x8e09('0x22')](function(_0x538340){if(_0x538340){_0x11fc89[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x5b')]['rawAttributes']);_0x11fc89[_0x8e09('0x2f')]=_['keys'](_0x4819dd[_0x8e09('0x2f')]);_0x11fc89['filters']=_[_0x8e09('0x40')](_0x11fc89[_0x8e09('0x2d')],_0x11fc89[_0x8e09('0x2f')]);_0x1a79c1['attributes']=_[_0x8e09('0x40')](_0x11fc89[_0x8e09('0x2d')],qs[_0x8e09('0x33')](_0x4819dd['query'][_0x8e09('0x33')]));_0x1a79c1[_0x8e09('0x32')]=_0x1a79c1[_0x8e09('0x32')][_0x8e09('0x34')]?_0x1a79c1[_0x8e09('0x32')]:_0x11fc89[_0x8e09('0x2d')];if(!_0x4819dd[_0x8e09('0x2f')][_0x8e09('0x57')](_0x8e09('0x35'))){_0x1a79c1[_0x8e09('0x1e')]=qs['limit'](_0x4819dd[_0x8e09('0x2f')]['limit']);_0x1a79c1[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0x4819dd[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x1a79c1[_0x8e09('0x36')]=qs[_0x8e09('0x37')](_0x4819dd['query']['sort']);_0x1a79c1[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0x4819dd[_0x8e09('0x2f')],_0x11fc89[_0x8e09('0x31')]));_0x1a79c1['where'][_0x8e09('0x58')]=_0x538340['id'];if(_0x4819dd[_0x8e09('0x2f')][_0x8e09('0x3a')]){_0x1a79c1['where']=_['merge'](_0x1a79c1['where'],{'$or':_[_0x8e09('0x2e')](_0x1a79c1[_0x8e09('0x32')],function(_0x11a6e2){var _0x3f4101={};_0x3f4101[_0x11a6e2]={'$like':'%'+_0x4819dd[_0x8e09('0x2f')][_0x8e09('0x3a')]+'%'};return _0x3f4101;})});}_0x1a79c1=_[_0x8e09('0x42')]({},_0x1a79c1,_0x4819dd['options']);return db['CmHopperHistory'][_0x8e09('0x1c')]({'where':_0x1a79c1[_0x8e09('0x38')]})[_0x8e09('0x22')](function(_0x5dec67){_0xf7e3f3['count']=_0x5dec67;if(_0x4819dd[_0x8e09('0x2f')][_0x8e09('0x41')]){_0x1a79c1[_0x8e09('0x3c')]=[{'all':!![]}];}return db['CmHopperHistory']['findAll'](_0x1a79c1);})[_0x8e09('0x22')](function(_0x2e3d36){_0xf7e3f3['rows']=_0x2e3d36;return _0xf7e3f3;});}})[_0x8e09('0x22')](respondWithFilteredResult(_0x2b4e12,_0x1a79c1))[_0x8e09('0x3e')](handleError(_0x2b4e12,null));};exports[_0x8e09('0x5c')]=function(_0x4f9ece,_0x14033d,_0x111ce2){var _0x4a4010={'raw':!![],'where':{}};var _0x521b7b={};var _0x1c1ddc={'count':0x0,'rows':[]};return db[_0x8e09('0x29')][_0x8e09('0x55')]({'where':{'id':_0x4f9ece[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x14033d,null))[_0x8e09('0x22')](function(_0xf960d5){if(_0xf960d5){_0x521b7b[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x5d')]['rawAttributes']);_0x521b7b['query']=_[_0x8e09('0x30')](_0x4f9ece[_0x8e09('0x2f')]);_0x521b7b[_0x8e09('0x31')]=_[_0x8e09('0x40')](_0x521b7b['model'],_0x521b7b[_0x8e09('0x2f')]);_0x4a4010[_0x8e09('0x32')]=_[_0x8e09('0x40')](_0x521b7b[_0x8e09('0x2d')],qs[_0x8e09('0x33')](_0x4f9ece[_0x8e09('0x2f')][_0x8e09('0x33')]));_0x4a4010[_0x8e09('0x32')]=_0x4a4010['attributes'][_0x8e09('0x34')]?_0x4a4010[_0x8e09('0x32')]:_0x521b7b['model'];if(!_0x4f9ece['query'][_0x8e09('0x57')]('nolimit')){_0x4a4010[_0x8e09('0x1e')]=qs[_0x8e09('0x1e')](_0x4f9ece['query'][_0x8e09('0x1e')]);_0x4a4010[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0x4f9ece[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x4a4010[_0x8e09('0x36')]=qs[_0x8e09('0x37')](_0x4f9ece[_0x8e09('0x2f')][_0x8e09('0x37')]);_0x4a4010[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0x4f9ece[_0x8e09('0x2f')],_0x521b7b[_0x8e09('0x31')]));_0x4a4010[_0x8e09('0x38')]['CampaignId']=_0xf960d5['id'];if(_0x4f9ece[_0x8e09('0x2f')]['filter']){_0x4a4010[_0x8e09('0x38')]=_['merge'](_0x4a4010[_0x8e09('0x38')],{'$or':_['map'](_0x4a4010['attributes'],function(_0x120164){var _0x4d7203={};_0x4d7203[_0x120164]={'$like':'%'+_0x4f9ece[_0x8e09('0x2f')][_0x8e09('0x3a')]+'%'};return _0x4d7203;})});}_0x4a4010=_['merge']({},_0x4a4010,_0x4f9ece[_0x8e09('0x3b')]);return db[_0x8e09('0x5d')]['count']({'where':_0x4a4010[_0x8e09('0x38')]})[_0x8e09('0x22')](function(_0x13971a){_0x1c1ddc[_0x8e09('0x1c')]=_0x13971a;if(_0x4f9ece['query'][_0x8e09('0x41')]){_0x4a4010['include']=[{'all':!![]}];}return db[_0x8e09('0x5d')][_0x8e09('0x59')](_0x4a4010);})[_0x8e09('0x22')](function(_0x293f72){_0x1c1ddc['rows']=_0x293f72;return _0x1c1ddc;});}})[_0x8e09('0x22')](respondWithFilteredResult(_0x14033d,_0x4a4010))[_0x8e09('0x3e')](handleError(_0x14033d,null));};exports[_0x8e09('0x5e')]=function(_0x539f22,_0x4a6806,_0x3d6384){var _0x11f1ed={'raw':!![],'where':{}};var _0x212c78={};var _0x420f57={'count':0x0,'rows':[]};return db[_0x8e09('0x29')][_0x8e09('0x55')]({'where':{'id':_0x539f22['params']['id']}})['then'](handleEntityNotFound(_0x4a6806,null))[_0x8e09('0x22')](function(_0x281ed){if(_0x281ed){_0x212c78[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x5f')][_0x8e09('0x2a')]);_0x212c78['query']=_[_0x8e09('0x30')](_0x539f22[_0x8e09('0x2f')]);_0x212c78[_0x8e09('0x31')]=_[_0x8e09('0x40')](_0x212c78[_0x8e09('0x2d')],_0x212c78[_0x8e09('0x2f')]);_0x11f1ed[_0x8e09('0x32')]=_[_0x8e09('0x40')](_0x212c78[_0x8e09('0x2d')],qs[_0x8e09('0x33')](_0x539f22[_0x8e09('0x2f')]['fields']));_0x11f1ed[_0x8e09('0x32')]=_0x11f1ed[_0x8e09('0x32')][_0x8e09('0x34')]?_0x11f1ed[_0x8e09('0x32')]:_0x212c78['model'];if(!_0x539f22[_0x8e09('0x2f')][_0x8e09('0x57')](_0x8e09('0x35'))){_0x11f1ed['limit']=qs['limit'](_0x539f22[_0x8e09('0x2f')]['limit']);_0x11f1ed[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0x539f22[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x11f1ed['order']=qs[_0x8e09('0x37')](_0x539f22[_0x8e09('0x2f')][_0x8e09('0x37')]);_0x11f1ed[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0x539f22[_0x8e09('0x2f')],_0x212c78[_0x8e09('0x31')]));_0x11f1ed[_0x8e09('0x38')][_0x8e09('0x58')]=_0x281ed['id'];if(_0x539f22['query'][_0x8e09('0x3a')]){_0x11f1ed[_0x8e09('0x38')]=_[_0x8e09('0x42')](_0x11f1ed['where'],{'$or':_[_0x8e09('0x2e')](_0x11f1ed[_0x8e09('0x32')],function(_0x519e93){var _0x521692={};_0x521692[_0x519e93]={'$like':'%'+_0x539f22['query'][_0x8e09('0x3a')]+'%'};return _0x521692;})});}_0x11f1ed=_[_0x8e09('0x42')]({},_0x11f1ed,_0x539f22[_0x8e09('0x3b')]);return db[_0x8e09('0x5f')]['count']({'where':_0x11f1ed[_0x8e09('0x38')]})[_0x8e09('0x22')](function(_0x5d4e42){_0x420f57['count']=_0x5d4e42;if(_0x539f22[_0x8e09('0x2f')][_0x8e09('0x41')]){_0x11f1ed[_0x8e09('0x3c')]=[{'all':!![]}];}return db[_0x8e09('0x5f')][_0x8e09('0x59')](_0x11f1ed);})['then'](function(_0x30d5ff){_0x420f57[_0x8e09('0x3d')]=_0x30d5ff;return _0x420f57;});}})[_0x8e09('0x22')](respondWithFilteredResult(_0x4a6806,_0x11f1ed))[_0x8e09('0x3e')](handleError(_0x4a6806,null));};exports['getLists']=function(_0x26d635,_0x2922cb,_0x5c9c26){var _0x58feb0={};var _0x11bda9={};var _0x3e3f36;var _0x6174d6;return db[_0x8e09('0x29')][_0x8e09('0x55')]({'where':{'id':_0x26d635[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x2922cb,null))['then'](function(_0x14c8ff){if(_0x14c8ff){_0x3e3f36=_0x14c8ff;_0x11bda9[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x60')][_0x8e09('0x2a')]);_0x11bda9[_0x8e09('0x2f')]=_['keys'](_0x26d635[_0x8e09('0x2f')]);_0x11bda9[_0x8e09('0x31')]=_[_0x8e09('0x40')](_0x11bda9[_0x8e09('0x2d')],_0x11bda9['query']);_0x58feb0[_0x8e09('0x32')]=_[_0x8e09('0x40')](_0x11bda9[_0x8e09('0x2d')],qs['fields'](_0x26d635['query'][_0x8e09('0x33')]));_0x58feb0[_0x8e09('0x32')]=_0x58feb0[_0x8e09('0x32')][_0x8e09('0x34')]?_0x58feb0[_0x8e09('0x32')]:_0x11bda9['model'];_0x58feb0[_0x8e09('0x36')]=qs[_0x8e09('0x37')](_0x26d635[_0x8e09('0x2f')][_0x8e09('0x37')]);_0x58feb0[_0x8e09('0x38')]=qs['filters'](_['pick'](_0x26d635['query'],_0x11bda9['filters']));if(_0x26d635[_0x8e09('0x2f')][_0x8e09('0x3a')]){_0x58feb0[_0x8e09('0x38')]=_[_0x8e09('0x42')](_0x58feb0[_0x8e09('0x38')],{'$or':_[_0x8e09('0x2e')](_0x58feb0[_0x8e09('0x32')],function(_0x248670){var _0x3c7179={};_0x3c7179[_0x248670]={'$like':'%'+_0x26d635[_0x8e09('0x2f')]['filter']+'%'};return _0x3c7179;})});}_0x58feb0=_[_0x8e09('0x42')]({},_0x58feb0,_0x26d635[_0x8e09('0x3b')]);return _0x3e3f36[_0x8e09('0x61')](_0x58feb0);}})[_0x8e09('0x22')](function(_0x5a3633){if(_0x5a3633){_0x6174d6=_0x5a3633['length'];if(!_0x26d635[_0x8e09('0x2f')][_0x8e09('0x57')](_0x8e09('0x35'))){_0x58feb0[_0x8e09('0x1e')]=qs[_0x8e09('0x1e')](_0x26d635[_0x8e09('0x2f')][_0x8e09('0x1e')]);_0x58feb0[_0x8e09('0x1d')]=qs[_0x8e09('0x1d')](_0x26d635['query'][_0x8e09('0x1d')]);}return _0x3e3f36[_0x8e09('0x61')](_0x58feb0);}})['then'](function(_0x9e8443){if(_0x9e8443){return _0x9e8443?{'count':_0x6174d6,'rows':_0x9e8443}:null;}})['then'](respondWithResult(_0x2922cb,null))[_0x8e09('0x3e')](handleError(_0x2922cb,null));};exports[_0x8e09('0x62')]=function(_0x19bd8c,_0xf9cd5b,_0x5d34ec){var _0x2c8d41,_0x210fbb;return db[_0x8e09('0x29')][_0x8e09('0x52')]({'where':{'id':_0x19bd8c[_0x8e09('0x4d')]['id']}})['then'](handleEntityNotFound(_0xf9cd5b,null))[_0x8e09('0x22')](function(_0x5dd584){if(_0x5dd584){_0x210fbb=_0x5dd584;return _0x5dd584[_0x8e09('0x62')](_0x19bd8c[_0x8e09('0x44')][_0x8e09('0x63')],_[_0x8e09('0x4e')](_0x19bd8c[_0x8e09('0x44')],[_0x8e09('0x63'),'id'])||{});}return null;})['spread'](function(_0x40c8a2){var _0x191308;_0x2c8d41=_0x40c8a2||[];var _0x160d0e=[];if(_0x40c8a2){for(var _0x18b50c=0x0;_0x18b50c<_0x40c8a2['length'];_0x18b50c+=0x1){var _0x42f14c=_0x40c8a2[_0x18b50c]['get']({'plain':!![]});_0x210fbb[_0x8e09('0x64')]=_0x19bd8c[_0x8e09('0x44')]['dialCheckDuplicateType']?_0x19bd8c['body'][_0x8e09('0x64')]:_0x210fbb[_0x8e09('0x64')];switch(_0x210fbb[_0x8e09('0x64')]){case _0x8e09('0x65'):_0x191308=squel[_0x8e09('0x66')]()[_0x8e09('0x67')](_0x8e09('0x68'))[_0x8e09('0x69')]([_0x8e09('0x6a'),_0x8e09('0x6b'),_0x8e09('0x6c'),_0x8e09('0x6d'),_0x8e09('0x58'),_0x8e09('0x50'),_0x8e09('0x4f')],squel[_0x8e09('0x6e')]()[_0x8e09('0x6f')](_0x8e09('0x6a'),_0x8e09('0x6a'))['field'](_0x8e09('0x70'),_0x8e09('0x6b'))[_0x8e09('0x6f')]('id',_0x8e09('0x6c'))['field'](_0x42f14c[_0x8e09('0x71')][_0x8e09('0x72')](),_0x8e09('0x6d'))[_0x8e09('0x6f')](_0x19bd8c[_0x8e09('0x4d')]['id'][_0x8e09('0x72')](),_0x8e09('0x58'))['field'](_0x8e09('0x70'),_0x8e09('0x50'))[_0x8e09('0x6f')](_0x8e09('0x70'),_0x8e09('0x4f'))['from']('cm_contacts')[_0x8e09('0x38')](_0x8e09('0x73'))[_0x8e09('0x38')](_0x8e09('0x74'),_0x42f14c[_0x8e09('0x71')][_0x8e09('0x72')]())[_0x8e09('0x38')](_0x8e09('0x75'))[_0x8e09('0x38')]('phone\x20NOT\x20IN\x20(?)',squel[_0x8e09('0x6e')]()[_0x8e09('0x6f')]('COALESCE(calleridnum,\x27\x27)')[_0x8e09('0x76')](_0x8e09('0x77'))[_0x8e09('0x38')](_0x8e09('0x78'),_0x19bd8c[_0x8e09('0x4d')]['id'][_0x8e09('0x72')]()))[_0x8e09('0x38')](_0x8e09('0x79'),squel[_0x8e09('0x6e')]()[_0x8e09('0x6f')](_0x8e09('0x7a'))[_0x8e09('0x76')](_0x8e09('0x68'))[_0x8e09('0x38')](_0x8e09('0x78'),_0x19bd8c[_0x8e09('0x4d')]['id'][_0x8e09('0x72')]())))['toString']();break;case _0x8e09('0x7b'):_0x191308=squel['insert']()[_0x8e09('0x67')]('cm_hopper')['fromQuery']([_0x8e09('0x6a'),_0x8e09('0x6b'),_0x8e09('0x6c'),_0x8e09('0x6d'),_0x8e09('0x58'),_0x8e09('0x50'),'updatedAt'],squel['select']()[_0x8e09('0x6f')](_0x8e09('0x6a'),_0x8e09('0x6a'))[_0x8e09('0x6f')](_0x8e09('0x70'),_0x8e09('0x6b'))[_0x8e09('0x6f')]('id',_0x8e09('0x6c'))[_0x8e09('0x6f')](_0x42f14c[_0x8e09('0x71')][_0x8e09('0x72')](),_0x8e09('0x6d'))[_0x8e09('0x6f')](_0x19bd8c['params']['id'][_0x8e09('0x72')](),_0x8e09('0x58'))[_0x8e09('0x6f')](_0x8e09('0x70'),'createdAt')[_0x8e09('0x6f')](_0x8e09('0x70'),_0x8e09('0x4f'))[_0x8e09('0x76')](_0x8e09('0x7c'))[_0x8e09('0x38')]('deletedAt\x20IS\x20NULL')[_0x8e09('0x38')](_0x8e09('0x74'),_0x42f14c[_0x8e09('0x71')]['toString']())[_0x8e09('0x38')](_0x8e09('0x75'))[_0x8e09('0x38')]('phone\x20NOT\x20IN\x20(?)',squel[_0x8e09('0x6e')]()[_0x8e09('0x6f')](_0x8e09('0x7a'))[_0x8e09('0x76')](_0x8e09('0x68'))[_0x8e09('0x38')](_0x8e09('0x78'),_0x19bd8c[_0x8e09('0x4d')]['id']['toString']())))[_0x8e09('0x72')]();break;default:_0x191308=squel[_0x8e09('0x66')]()[_0x8e09('0x67')](_0x8e09('0x68'))['fromQuery']([_0x8e09('0x6a'),_0x8e09('0x6b'),_0x8e09('0x6c'),_0x8e09('0x6d'),_0x8e09('0x58'),_0x8e09('0x50'),'updatedAt'],squel['select']()[_0x8e09('0x6f')]('phone','phone')[_0x8e09('0x6f')](_0x8e09('0x70'),'scheduledAt')[_0x8e09('0x6f')]('id',_0x8e09('0x6c'))['field'](_0x42f14c['CmListId'][_0x8e09('0x72')](),'ListId')['field'](_0x19bd8c[_0x8e09('0x4d')]['id'][_0x8e09('0x72')](),'CampaignId')[_0x8e09('0x6f')]('NOW()',_0x8e09('0x50'))[_0x8e09('0x6f')](_0x8e09('0x70'),_0x8e09('0x4f'))[_0x8e09('0x76')](_0x8e09('0x7c'))[_0x8e09('0x38')]('deletedAt\x20IS\x20NULL')[_0x8e09('0x38')](_0x8e09('0x74'),_0x42f14c[_0x8e09('0x71')][_0x8e09('0x72')]())[_0x8e09('0x38')](_0x8e09('0x75')))[_0x8e09('0x72')]();}_0x160d0e[_0x8e09('0x7d')](db[_0x8e09('0x7e')][_0x8e09('0x2f')](_0x191308));}return BPromise[_0x8e09('0x7f')](_0x160d0e);}})[_0x8e09('0x22')](function(){return _0x2c8d41;})[_0x8e09('0x22')](respondWithResult(_0xf9cd5b,null))['catch'](handleError(_0xf9cd5b,null));};exports['removeLists']=function(_0x2d2be3,_0x27ad1a,_0x15422a){return db[_0x8e09('0x29')][_0x8e09('0x52')]({'where':{'id':_0x2d2be3[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x27ad1a,null))['then'](function(_0x1f8b5e){if(_0x1f8b5e){return _0x1f8b5e[_0x8e09('0x80')](_0x2d2be3['query'][_0x8e09('0x63')]);}})[_0x8e09('0x22')](function(_0x2099cb){if(_0x2099cb){return db[_0x8e09('0x56')][_0x8e09('0x54')]({'where':{'ListId':_0x2d2be3[_0x8e09('0x2f')][_0x8e09('0x63')],'CampaignId':_0x2d2be3['params']['id']}})[_0x8e09('0x22')](function(){return _0x2099cb;});}})['then'](respondWithStatusCode(_0x27ad1a,null))[_0x8e09('0x3e')](handleError(_0x27ad1a,null));};exports[_0x8e09('0x81')]=function(_0x4d5eeb,_0x23bc29,_0x3222ee){var _0x206983={'raw':!![],'where':{}};var _0xd649d2={};var _0x58c223={'count':0x0,'rows':[]};return db['Campaign'][_0x8e09('0x55')]({'where':{'id':_0x4d5eeb[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x23bc29,null))['then'](function(_0xf2a5df){if(_0xf2a5df){_0xd649d2[_0x8e09('0x2d')]=_[_0x8e09('0x30')](db[_0x8e09('0x60')][_0x8e09('0x2a')]);_0xd649d2[_0x8e09('0x2f')]=_['keys'](_0x4d5eeb[_0x8e09('0x2f')]);_0xd649d2[_0x8e09('0x31')]=_[_0x8e09('0x40')](_0xd649d2[_0x8e09('0x2d')],_0xd649d2[_0x8e09('0x2f')]);_0x206983[_0x8e09('0x32')]=_['intersection'](_0xd649d2[_0x8e09('0x2d')],qs[_0x8e09('0x33')](_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x33')]));_0x206983['attributes']=_0x206983[_0x8e09('0x32')][_0x8e09('0x34')]?_0x206983['attributes']:_0xd649d2['model'];if(!_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x57')]('nolimit')){_0x206983['limit']=qs['limit'](_0x4d5eeb['query']['limit']);_0x206983[_0x8e09('0x1d')]=qs['offset'](_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x1d')]);}_0x206983[_0x8e09('0x36')]=qs['sort'](_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x37')]);_0x206983[_0x8e09('0x38')]=qs[_0x8e09('0x31')](_[_0x8e09('0x39')](_0x4d5eeb[_0x8e09('0x2f')],_0xd649d2['filters']));_0x206983['where'][_0x8e09('0x58')]=_0xf2a5df['id'];if(_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x3a')]){_0x206983[_0x8e09('0x38')]=_[_0x8e09('0x42')](_0x206983[_0x8e09('0x38')],{'$or':_['map'](_0x206983['attributes'],function(_0x17f7b8){var _0x595a94={};_0x595a94[_0x17f7b8]={'$like':'%'+_0x4d5eeb[_0x8e09('0x2f')][_0x8e09('0x3a')]+'%'};return _0x595a94;})});}_0x206983=_[_0x8e09('0x42')]({},_0x206983,_0x4d5eeb['options']);return db[_0x8e09('0x60')][_0x8e09('0x1c')]({'where':_0x206983[_0x8e09('0x38')]})['then'](function(_0x1325d7){_0x58c223['count']=_0x1325d7;if(_0x4d5eeb[_0x8e09('0x2f')]['includeAll']){_0x206983[_0x8e09('0x3c')]=[{'all':!![]}];}return db[_0x8e09('0x60')]['findAll'](_0x206983);})[_0x8e09('0x22')](function(_0x45e391){_0x58c223['rows']=_0x45e391;return _0x58c223;});}})[_0x8e09('0x22')](respondWithFilteredResult(_0x23bc29,_0x206983))[_0x8e09('0x3e')](handleError(_0x23bc29,null));};exports[_0x8e09('0x82')]=function(_0x2f78c7,_0x401cb2,_0x529a3){var _0x41f058,_0x3bfbbe;return db[_0x8e09('0x29')][_0x8e09('0x52')]({'where':{'id':_0x2f78c7[_0x8e09('0x4d')]['id']}})['then'](handleEntityNotFound(_0x401cb2,null))[_0x8e09('0x22')](function(_0xb3544d){if(_0xb3544d){_0x3bfbbe=_0xb3544d;return _0xb3544d[_0x8e09('0x82')](_0x2f78c7[_0x8e09('0x44')][_0x8e09('0x63')],_[_0x8e09('0x4e')](_0x2f78c7[_0x8e09('0x44')],[_0x8e09('0x63'),'id'])||{});}return null;})[_0x8e09('0x83')](function(_0x380fa0){var _0x225475;_0x41f058=_0x380fa0||[];var _0x44c1ca=[];if(_0x380fa0){for(var _0xfe4136=0x0;_0xfe4136<_0x380fa0[_0x8e09('0x34')];_0xfe4136+=0x1){var _0x3c17e9=_0x380fa0[_0xfe4136][_0x8e09('0x45')]({'plain':!![]});_0x225475=squel[_0x8e09('0x66')]()[_0x8e09('0x67')](_0x8e09('0x84'))['fromQuery']([_0x8e09('0x6a'),_0x8e09('0x6c'),_0x8e09('0x6d'),_0x8e09('0x58'),_0x8e09('0x50'),_0x8e09('0x4f')],squel['select']()[_0x8e09('0x6f')]('phone',_0x8e09('0x6a'))[_0x8e09('0x6f')]('id','ContactId')[_0x8e09('0x6f')](_0x3c17e9[_0x8e09('0x71')]['toString'](),_0x8e09('0x6d'))[_0x8e09('0x6f')](_0x2f78c7[_0x8e09('0x4d')]['id'][_0x8e09('0x72')](),_0x8e09('0x58'))['field'](_0x8e09('0x70'),'createdAt')[_0x8e09('0x6f')](_0x8e09('0x70'),_0x8e09('0x4f'))[_0x8e09('0x76')]('cm_contacts')[_0x8e09('0x38')]('deletedAt\x20IS\x20NULL')[_0x8e09('0x38')](_0x8e09('0x74'),_0x3c17e9[_0x8e09('0x71')][_0x8e09('0x72')]())[_0x8e09('0x38')](_0x8e09('0x75')))['toString']();_0x44c1ca[_0x8e09('0x7d')](db['sequelize']['query'](_0x225475));}return BPromise['all'](_0x44c1ca);}})['then'](function(){return _0x41f058;})[_0x8e09('0x22')](respondWithResult(_0x401cb2,null))[_0x8e09('0x3e')](handleError(_0x401cb2,null));};exports[_0x8e09('0x85')]=function(_0x4315f7,_0x5091be,_0x1615cc){return db[_0x8e09('0x29')][_0x8e09('0x52')]({'where':{'id':_0x4315f7[_0x8e09('0x4d')]['id']}})[_0x8e09('0x22')](handleEntityNotFound(_0x5091be,null))['then'](function(_0x5d9d5e){if(_0x5d9d5e){return _0x5d9d5e[_0x8e09('0x85')](_0x4315f7[_0x8e09('0x2f')][_0x8e09('0x63')]);}})[_0x8e09('0x22')](function(_0x39d344){if(_0x39d344){return db[_0x8e09('0x5f')][_0x8e09('0x54')]({'where':{'ListId':_0x4315f7[_0x8e09('0x2f')][_0x8e09('0x63')],'CampaignId':_0x4315f7[_0x8e09('0x4d')]['id']}})['then'](function(){return _0x39d344;});}})[_0x8e09('0x22')](respondWithStatusCode(_0x5091be,null))['catch'](handleError(_0x5091be,null));};
\ No newline at end of file
diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js
index 776d7a9..75b2743 100644
--- a/server/api/campaign/campaign.model.js
+++ b/server/api/campaign/campaign.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4d78=['moment','request-promise','path','rimraf','../../config/environment','./campaign.attributes','exports','define','Campaign','lodash','../../config/logger','api'];(function(_0x31833d,_0x256a13){var _0x48b2be=function(_0x1e7f16){while(--_0x1e7f16){_0x31833d['push'](_0x31833d['shift']());}};_0x48b2be(++_0x256a13);}(_0x4d78,0x1ad));var _0x84d7=function(_0x386b6c,_0xdf75d1){_0x386b6c=_0x386b6c-0x0;var _0x39a2ff=_0x4d78[_0x386b6c];return _0x39a2ff;};'use strict';var _=require(_0x84d7('0x0'));var util=require('util');var logger=require(_0x84d7('0x1'))(_0x84d7('0x2'));var moment=require(_0x84d7('0x3'));var BPromise=require('bluebird');var rp=require(_0x84d7('0x4'));var fs=require('fs');var path=require(_0x84d7('0x5'));var rimraf=require(_0x84d7('0x6'));var config=require(_0x84d7('0x7'));var attributes=require(_0x84d7('0x8'));module[_0x84d7('0x9')]=function(_0x4c3979,_0xfdab8){return _0x4c3979[_0x84d7('0xa')](_0x84d7('0xb'),attributes,{'tableName':'campaigns','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x80ea=['moment','bluebird','request-promise','rimraf','../../config/environment','./campaign.attributes','exports','define','campaigns','lodash','util','../../config/logger','api'];(function(_0xcf8e79,_0x34bd33){var _0x76e1b=function(_0x351f77){while(--_0x351f77){_0xcf8e79['push'](_0xcf8e79['shift']());}};_0x76e1b(++_0x34bd33);}(_0x80ea,0x1c3));var _0xa80e=function(_0x325bb8,_0x52a2d8){_0x325bb8=_0x325bb8-0x0;var _0x15fcb9=_0x80ea[_0x325bb8];return _0x15fcb9;};'use strict';var _=require(_0xa80e('0x0'));var util=require(_0xa80e('0x1'));var logger=require(_0xa80e('0x2'))(_0xa80e('0x3'));var moment=require(_0xa80e('0x4'));var BPromise=require(_0xa80e('0x5'));var rp=require(_0xa80e('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa80e('0x7'));var config=require(_0xa80e('0x8'));var attributes=require(_0xa80e('0x9'));module[_0xa80e('0xa')]=function(_0x1e3206,_0xa30295){return _0x1e3206[_0xa80e('0xb')]('Campaign',attributes,{'tableName':_0xa80e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js
index 86f0e03..b057857 100644
--- a/server/api/campaign/campaign.rpc.js
+++ b/server/api/campaign/campaign.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa9e0=['catch','Campaign','findAll','options','raw','where','attributes','include','map','model','GetCampaign','stringify','lodash','util','moment','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','info','Campaign,\x20%s,\x20%s','request\x20sent','debug','Campaign,\x20%s,\x20%s,\x20%s','code','error','message','result'];(function(_0x2c545b,_0x538b5b){var _0x101a1a=function(_0x5796ad){while(--_0x5796ad){_0x2c545b['push'](_0x2c545b['shift']());}};_0x101a1a(++_0x538b5b);}(_0xa9e0,0x123));var _0x0a9e=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0xa9e0[_0x3947c9];return _0x2e7871;};'use strict';var _=require(_0x0a9e('0x0'));var util=require(_0x0a9e('0x1'));var moment=require(_0x0a9e('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0a9e('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x0a9e('0x4'));var logger=require(_0x0a9e('0x5'))(_0x0a9e('0x6'));var config=require(_0x0a9e('0x7'));var jayson=require(_0x0a9e('0x8'));var client=jayson['client'][_0x0a9e('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x441e3a,_0x2cc193,_0x5f41ea){return new BPromise(function(_0x503809,_0xe42b77){return client['request'](_0x441e3a,_0x5f41ea)['then'](function(_0x39753a){logger[_0x0a9e('0xa')](_0x0a9e('0xb'),_0x2cc193,_0x0a9e('0xc'));logger[_0x0a9e('0xd')](_0x0a9e('0xe'),_0x2cc193,'request\x20sent',JSON['stringify'](_0x39753a));if(_0x39753a['error']){if(_0x39753a['error'][_0x0a9e('0xf')]===0x1f4){logger[_0x0a9e('0x10')](_0x0a9e('0xb'),_0x2cc193,_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);return _0xe42b77(_0x39753a[_0x0a9e('0x10')]['message']);}logger[_0x0a9e('0x10')](_0x0a9e('0xb'),_0x2cc193,_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);return _0x503809(_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);}else{logger['info'](_0x0a9e('0xb'),_0x2cc193,'request\x20sent');_0x503809(_0x39753a[_0x0a9e('0x12')]['message']);}})[_0x0a9e('0x13')](function(_0x12066b){logger['error'](_0x0a9e('0xb'),_0x2cc193,_0x12066b);_0xe42b77(_0x12066b);});});}exports['GetCampaign']=function(_0x459eb1){var _0x478723=this;return new Promise(function(_0x106033,_0x205fd6){return db[_0x0a9e('0x14')][_0x0a9e('0x15')]({'raw':_0x459eb1[_0x0a9e('0x16')]?_0x459eb1[_0x0a9e('0x16')][_0x0a9e('0x17')]===undefined?!![]:![]:!![],'where':_0x459eb1[_0x0a9e('0x16')]?_0x459eb1[_0x0a9e('0x16')][_0x0a9e('0x18')]||null:null,'attributes':_0x459eb1['options']?_0x459eb1[_0x0a9e('0x16')][_0x0a9e('0x19')]||null:null,'limit':_0x459eb1['options']?_0x459eb1[_0x0a9e('0x16')]['limit']||null:null,'include':_0x459eb1['options']?_0x459eb1[_0x0a9e('0x16')][_0x0a9e('0x1a')]?_[_0x0a9e('0x1b')](_0x459eb1[_0x0a9e('0x16')]['include'],function(_0xfb6e48){return{'model':db[_0xfb6e48[_0x0a9e('0x1c')]],'as':_0xfb6e48['as'],'attributes':_0xfb6e48[_0x0a9e('0x19')],'include':_0xfb6e48[_0x0a9e('0x1a')]?_[_0x0a9e('0x1b')](_0xfb6e48[_0x0a9e('0x1a')],function(_0x16b1ca){return{'model':db[_0x16b1ca['model']],'as':_0x16b1ca['as'],'attributes':_0x16b1ca['attributes'],'include':_0x16b1ca[_0x0a9e('0x1a')]?_[_0x0a9e('0x1b')](_0x16b1ca[_0x0a9e('0x1a')],function(_0x33161b){return{'model':db[_0x33161b['model']],'as':_0x33161b['as'],'attributes':_0x33161b[_0x0a9e('0x19')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x45a1e7){logger['info'](_0x0a9e('0x1d'),_0x459eb1);logger[_0x0a9e('0xd')](_0x0a9e('0x1d'),_0x459eb1,JSON[_0x0a9e('0x1e')](_0x45a1e7));_0x106033(_0x45a1e7);})[_0x0a9e('0x13')](function(_0x1538a4){logger[_0x0a9e('0x10')](_0x0a9e('0x1d'),_0x1538a4['message'],_0x459eb1);_0x205fd6(_0x478723[_0x0a9e('0x10')](0x1f4,_0x1538a4[_0x0a9e('0x11')]));});});};
\ No newline at end of file
+var _0x9957=['catch','GetCampaign','findAll','raw','options','where','attributes','limit','map','include','model','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','then','info','Campaign,\x20%s,\x20%s','request\x20sent','debug','Campaign,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result'];(function(_0x34b709,_0x5dc8af){var _0x20dda4=function(_0x33eaef){while(--_0x33eaef){_0x34b709['push'](_0x34b709['shift']());}};_0x20dda4(++_0x5dc8af);}(_0x9957,0x93));var _0x7995=function(_0x1ac595,_0x5d2081){_0x1ac595=_0x1ac595-0x0;var _0x455fff=_0x9957[_0x1ac595];return _0x455fff;};'use strict';var _=require(_0x7995('0x0'));var util=require(_0x7995('0x1'));var moment=require(_0x7995('0x2'));var BPromise=require(_0x7995('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x7995('0x4'));var db=require(_0x7995('0x5'))['db'];var utils=require(_0x7995('0x6'));var logger=require(_0x7995('0x7'))('rpc');var config=require(_0x7995('0x8'));var jayson=require(_0x7995('0x9'));var client=jayson[_0x7995('0xa')][_0x7995('0xb')]({'port':0x232a});function respondWithRpcPromise(_0xbda126,_0x326741,_0x4996ca){return new BPromise(function(_0x465276,_0x1cad37){return client['request'](_0xbda126,_0x4996ca)[_0x7995('0xc')](function(_0x3116fb){logger[_0x7995('0xd')](_0x7995('0xe'),_0x326741,_0x7995('0xf'));logger[_0x7995('0x10')](_0x7995('0x11'),_0x326741,'request\x20sent',JSON[_0x7995('0x12')](_0x3116fb));if(_0x3116fb[_0x7995('0x13')]){if(_0x3116fb['error'][_0x7995('0x14')]===0x1f4){logger[_0x7995('0x13')](_0x7995('0xe'),_0x326741,_0x3116fb[_0x7995('0x13')][_0x7995('0x15')]);return _0x1cad37(_0x3116fb[_0x7995('0x13')][_0x7995('0x15')]);}logger['error']('Campaign,\x20%s,\x20%s',_0x326741,_0x3116fb[_0x7995('0x13')][_0x7995('0x15')]);return _0x465276(_0x3116fb[_0x7995('0x13')][_0x7995('0x15')]);}else{logger[_0x7995('0xd')](_0x7995('0xe'),_0x326741,_0x7995('0xf'));_0x465276(_0x3116fb[_0x7995('0x16')]['message']);}})[_0x7995('0x17')](function(_0x565d97){logger[_0x7995('0x13')](_0x7995('0xe'),_0x326741,_0x565d97);_0x1cad37(_0x565d97);});});}exports[_0x7995('0x18')]=function(_0x291317){var _0x1e1415=this;return new Promise(function(_0x37a7d4,_0x4faa60){return db['Campaign'][_0x7995('0x19')]({'raw':_0x291317['options']?_0x291317['options'][_0x7995('0x1a')]===undefined?!![]:![]:!![],'where':_0x291317[_0x7995('0x1b')]?_0x291317['options'][_0x7995('0x1c')]||null:null,'attributes':_0x291317['options']?_0x291317['options'][_0x7995('0x1d')]||null:null,'limit':_0x291317[_0x7995('0x1b')]?_0x291317[_0x7995('0x1b')][_0x7995('0x1e')]||null:null,'include':_0x291317[_0x7995('0x1b')]?_0x291317[_0x7995('0x1b')]['include']?_[_0x7995('0x1f')](_0x291317[_0x7995('0x1b')][_0x7995('0x20')],function(_0x285437){return{'model':db[_0x285437[_0x7995('0x21')]],'as':_0x285437['as'],'attributes':_0x285437[_0x7995('0x1d')],'include':_0x285437[_0x7995('0x20')]?_[_0x7995('0x1f')](_0x285437['include'],function(_0x39df42){return{'model':db[_0x39df42[_0x7995('0x21')]],'as':_0x39df42['as'],'attributes':_0x39df42[_0x7995('0x1d')],'include':_0x39df42[_0x7995('0x20')]?_[_0x7995('0x1f')](_0x39df42[_0x7995('0x20')],function(_0x56691a){return{'model':db[_0x56691a[_0x7995('0x21')]],'as':_0x56691a['as'],'attributes':_0x56691a['attributes']};}):[]};}):[]};}):[]:[]})[_0x7995('0xc')](function(_0x49bc7e){logger[_0x7995('0xd')](_0x7995('0x18'),_0x291317);logger[_0x7995('0x10')]('GetCampaign',_0x291317,JSON[_0x7995('0x12')](_0x49bc7e));_0x37a7d4(_0x49bc7e);})['catch'](function(_0x456a28){logger[_0x7995('0x13')](_0x7995('0x18'),_0x456a28['message'],_0x291317);_0x4faa60(_0x1e1415['error'](0x1f4,_0x456a28['message']));});});};
\ No newline at end of file
diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js
index 32ef7a2..156c16b 100644
--- a/server/api/campaign/index.js
+++ b/server/api/campaign/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcc97=['../../components/auth/service','../../components/interaction/service','../../config/environment','./campaign.controller','get','isAuthenticated','index','show','/:id/hoppers','getHopperHistories','/:id/hopper_finals','getHopperFinals','getHopperBlacks','/:id/lists','getLists','/:id/blacklists','getBlackLists','create','post','/:id/clone','addLists','addBlackLists','/:id','update','delete','removeLists','removeBlackLists','exports','multer','util','connect-timeout','express','Router'];(function(_0x4fac21,_0x263e36){var _0x55c6df=function(_0x50ecce){while(--_0x50ecce){_0x4fac21['push'](_0x4fac21['shift']());}};_0x55c6df(++_0x263e36);}(_0xcc97,0x1a8));var _0x7cc9=function(_0x1ce23a,_0x5d5cad){_0x1ce23a=_0x1ce23a-0x0;var _0x3e7645=_0xcc97[_0x1ce23a];return _0x3e7645;};'use strict';var multer=require(_0x7cc9('0x0'));var util=require(_0x7cc9('0x1'));var path=require('path');var timeout=require(_0x7cc9('0x2'));var express=require(_0x7cc9('0x3'));var router=express[_0x7cc9('0x4')]();var auth=require(_0x7cc9('0x5'));var interaction=require(_0x7cc9('0x6'));var config=require(_0x7cc9('0x7'));var controller=require(_0x7cc9('0x8'));router[_0x7cc9('0x9')]('/',auth[_0x7cc9('0xa')](),controller[_0x7cc9('0xb')]);router[_0x7cc9('0x9')]('/:id',auth[_0x7cc9('0xa')](),controller[_0x7cc9('0xc')]);router[_0x7cc9('0x9')](_0x7cc9('0xd'),auth[_0x7cc9('0xa')](),controller['getHoppers']);router[_0x7cc9('0x9')]('/:id/hopper_histories',auth[_0x7cc9('0xa')](),controller[_0x7cc9('0xe')]);router[_0x7cc9('0x9')](_0x7cc9('0xf'),auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x10')]);router[_0x7cc9('0x9')]('/:id/hopper_black',auth['isAuthenticated'](),controller[_0x7cc9('0x11')]);router['get'](_0x7cc9('0x12'),auth['isAuthenticated'](),controller[_0x7cc9('0x13')]);router[_0x7cc9('0x9')](_0x7cc9('0x14'),auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x15')]);router['post']('/',auth['isAuthenticated'](),controller[_0x7cc9('0x16')]);router[_0x7cc9('0x17')](_0x7cc9('0x18'),auth[_0x7cc9('0xa')](),controller['clone']);router[_0x7cc9('0x17')]('/:id/lists',auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x19')]);router[_0x7cc9('0x17')](_0x7cc9('0x14'),auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x1a')]);router['put'](_0x7cc9('0x1b'),auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x1c')]);router[_0x7cc9('0x1d')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0x7cc9('0x1d')]('/:id/lists',auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x1e')]);router['delete'](_0x7cc9('0x14'),auth[_0x7cc9('0xa')](),controller[_0x7cc9('0x1f')]);module[_0x7cc9('0x20')]=router;
\ No newline at end of file
+var _0x434b=['/:id','/:id/hoppers','getHoppers','/:id/hopper_histories','/:id/hopper_finals','/:id/hopper_black','/:id/lists','/:id/blacklists','getBlackLists','post','create','clone','addLists','update','destroy','delete','removeLists','removeBlackLists','exports','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./campaign.controller','get','isAuthenticated','index'];(function(_0x401121,_0x181adb){var _0x3aef8f=function(_0x3a05cb){while(--_0x3a05cb){_0x401121['push'](_0x401121['shift']());}};_0x3aef8f(++_0x181adb);}(_0x434b,0x17f));var _0xb434=function(_0x4c1ec2,_0x4f42b7){_0x4c1ec2=_0x4c1ec2-0x0;var _0x3f6f1c=_0x434b[_0x4c1ec2];return _0x3f6f1c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xb434('0x0'));var timeout=require(_0xb434('0x1'));var express=require('express');var router=express[_0xb434('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0xb434('0x3'));var config=require(_0xb434('0x4'));var controller=require(_0xb434('0x5'));router[_0xb434('0x6')]('/',auth[_0xb434('0x7')](),controller[_0xb434('0x8')]);router[_0xb434('0x6')](_0xb434('0x9'),auth[_0xb434('0x7')](),controller['show']);router[_0xb434('0x6')](_0xb434('0xa'),auth[_0xb434('0x7')](),controller[_0xb434('0xb')]);router[_0xb434('0x6')](_0xb434('0xc'),auth[_0xb434('0x7')](),controller['getHopperHistories']);router['get'](_0xb434('0xd'),auth[_0xb434('0x7')](),controller['getHopperFinals']);router['get'](_0xb434('0xe'),auth[_0xb434('0x7')](),controller['getHopperBlacks']);router['get'](_0xb434('0xf'),auth[_0xb434('0x7')](),controller['getLists']);router[_0xb434('0x6')](_0xb434('0x10'),auth[_0xb434('0x7')](),controller[_0xb434('0x11')]);router[_0xb434('0x12')]('/',auth[_0xb434('0x7')](),controller[_0xb434('0x13')]);router[_0xb434('0x12')]('/:id/clone',auth[_0xb434('0x7')](),controller[_0xb434('0x14')]);router[_0xb434('0x12')](_0xb434('0xf'),auth[_0xb434('0x7')](),controller[_0xb434('0x15')]);router[_0xb434('0x12')](_0xb434('0x10'),auth['isAuthenticated'](),controller['addBlackLists']);router['put']('/:id',auth[_0xb434('0x7')](),controller[_0xb434('0x16')]);router['delete'](_0xb434('0x9'),auth['isAuthenticated'](),controller[_0xb434('0x17')]);router[_0xb434('0x18')](_0xb434('0xf'),auth[_0xb434('0x7')](),controller[_0xb434('0x19')]);router[_0xb434('0x18')](_0xb434('0x10'),auth[_0xb434('0x7')](),controller[_0xb434('0x1a')]);module[_0xb434('0x1b')]=router;
\ No newline at end of file
diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js
index dac89e3..2438421 100644
--- a/server/api/cannedAnswer/cannedAnswer.attributes.js
+++ b/server/api/cannedAnswer/cannedAnswer.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc903=['STRING','TEXT','VIRTUAL','getDataValue','key','sequelize','exports'];(function(_0xc7c964,_0xd0392a){var _0x2f65c6=function(_0x162919){while(--_0x162919){_0xc7c964['push'](_0xc7c964['shift']());}};_0x2f65c6(++_0xd0392a);}(_0xc903,0x178));var _0x3c90=function(_0x1d1219,_0x23fc71){_0x1d1219=_0x1d1219-0x0;var _0x5b5b89=_0xc903[_0x1d1219];return _0x5b5b89;};'use strict';var Sequelize=require(_0x3c90('0x0'));module[_0x3c90('0x1')]={'key':{'type':Sequelize[_0x3c90('0x2')],'allowNull':![]},'value':{'type':Sequelize[_0x3c90('0x3')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize[_0x3c90('0x4')],'get':function(){return this[_0x3c90('0x5')](_0x3c90('0x6'));}}};
\ No newline at end of file
+var _0x3eb5=['getDataValue','exports','STRING','TEXT'];(function(_0x7a8ae3,_0x272a77){var _0x351557=function(_0x242295){while(--_0x242295){_0x7a8ae3['push'](_0x7a8ae3['shift']());}};_0x351557(++_0x272a77);}(_0x3eb5,0x161));var _0x53eb=function(_0x57d740,_0x50be99){_0x57d740=_0x57d740-0x0;var _0x6607ef=_0x3eb5[_0x57d740];return _0x6607ef;};'use strict';var Sequelize=require('sequelize');module[_0x53eb('0x0')]={'key':{'type':Sequelize[_0x53eb('0x1')],'allowNull':![]},'value':{'type':Sequelize[_0x53eb('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize['VIRTUAL'],'get':function(){return this[_0x53eb('0x3')]('key');}}};
\ No newline at end of file
diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js
index 62c5016..da135a1 100644
--- a/server/api/cannedAnswer/cannedAnswer.controller.js
+++ b/server/api/cannedAnswer/cannedAnswer.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x9957=['limit','set','Content-Range','reject','save','then','destroy','get','CannedAnswers','UserProfileResource','stack','name','send','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','hasOwnProperty','nolimit','order','sort','where','pick','merge','map','filter','options','CannedAnswer','count','include','catch','show','params','keys','length','includeAll','find','update','body','create','MailAccountId','SmsAccountId','OpenchannelAccountId','ChatWebsiteId','Sequelize','ValidationError','The\x20inserted\x20key\x20already\x20exists.','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../mysqldb','sendStatus','status','end','json','offset'];(function(_0x281567,_0x96a91e){var _0x1df161=function(_0x5dd671){while(--_0x5dd671){_0x281567['push'](_0x281567['shift']());}};_0x1df161(++_0x96a91e);}(_0x9957,0x93));var _0x7995=function(_0x2f5ac5,_0x1ee939){_0x2f5ac5=_0x2f5ac5-0x0;var _0x37c9a8=_0x9957[_0x2f5ac5];return _0x37c9a8;};'use strict';var pdf=require(_0x7995('0x0'));var emlformat=require(_0x7995('0x1'));var rimraf=require(_0x7995('0x2'));var zipdir=require(_0x7995('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0x7995('0x4'));var moment=require(_0x7995('0x5'));var BPromise=require(_0x7995('0x6'));var Mustache=require(_0x7995('0x7'));var util=require('util');var path=require(_0x7995('0x8'));var sox=require(_0x7995('0x9'));var csv=require(_0x7995('0xa'));var ejs=require(_0x7995('0xb'));var fs=require('fs');var _=require(_0x7995('0xc'));var squel=require(_0x7995('0xd'));var crypto=require('crypto');var jsforce=require(_0x7995('0xe'));var deskjs=require(_0x7995('0xf'));var toCsv=require('to-csv');var querystring=require(_0x7995('0x10'));var Papa=require(_0x7995('0x11'));var Redis=require(_0x7995('0x12'));var authService=require(_0x7995('0x13'));var qs=require(_0x7995('0x14'));var as=require(_0x7995('0x15'));var hardwareService=require(_0x7995('0x16'));var logger=require('../../config/logger')(_0x7995('0x17'));var utils=require(_0x7995('0x18'));var config=require('../../config/environment');var db=require(_0x7995('0x19'))['db'];function respondWithStatusCode(_0x2cb37a,_0x19a27e){_0x19a27e=_0x19a27e||0xcc;return function(_0x385f00){if(_0x385f00){return _0x2cb37a[_0x7995('0x1a')](_0x19a27e);}return _0x2cb37a[_0x7995('0x1b')](_0x19a27e)[_0x7995('0x1c')]();};}function respondWithResult(_0x4cc004,_0x58f5ad){_0x58f5ad=_0x58f5ad||0xc8;return function(_0x2b4e94){if(_0x2b4e94){return _0x4cc004[_0x7995('0x1b')](_0x58f5ad)[_0x7995('0x1d')](_0x2b4e94);}};}function respondWithFilteredResult(_0x321ae8,_0x3f1d3e){return function(_0x1a5310){if(_0x1a5310){var _0x2202ce=_0x1a5310['count'],_0x41cbf0=_0x3f1d3e[_0x7995('0x1e')],_0x5377e5=_0x3f1d3e[_0x7995('0x1e')]+_0x3f1d3e[_0x7995('0x1f')],_0x2eeacc;if(_0x5377e5>=_0x2202ce){_0x5377e5=_0x2202ce;_0x2eeacc=0xc8;}else{_0x2eeacc=0xce;}_0x321ae8[_0x7995('0x1b')](_0x2eeacc);return _0x321ae8[_0x7995('0x20')](_0x7995('0x21'),_0x41cbf0+'-'+_0x5377e5+'/'+_0x2202ce)['json'](_0x1a5310);}return null;};}function patchUpdates(_0x54c9ae){return function(_0x2536c8){try{jsonpatch['apply'](_0x2536c8,_0x54c9ae,!![]);}catch(_0x555f74){return BPromise[_0x7995('0x22')](_0x555f74);}return _0x2536c8[_0x7995('0x23')]();};}function saveUpdates(_0x4cbe10,_0x3a9b54){return function(_0x51f276){if(_0x51f276){return _0x51f276['update'](_0x4cbe10)[_0x7995('0x24')](function(_0x327b1f){return _0x327b1f;});}return null;};}function removeEntity(_0x350fd9,_0x1a8568){return function(_0x460924){if(_0x460924){return _0x460924[_0x7995('0x25')]()['then'](function(){var _0x32a09a=_0x460924[_0x7995('0x26')]({'plain':!![]});var _0x204507=_0x7995('0x27');return db[_0x7995('0x28')][_0x7995('0x25')]({'where':{'type':_0x204507,'resourceId':_0x32a09a['id']}})[_0x7995('0x24')](function(){return _0x460924;});})[_0x7995('0x24')](function(){_0x350fd9['status'](0xcc)[_0x7995('0x1c')]();});}};}function handleEntityNotFound(_0x34e70c,_0x401dc3){return function(_0x268ce7){if(!_0x268ce7){_0x34e70c[_0x7995('0x1a')](0x194);}return _0x268ce7;};}function handleError(_0x2a307e,_0x56691a){_0x56691a=_0x56691a||0x1f4;return function(_0x47625f){logger['error'](_0x47625f[_0x7995('0x29')]);if(_0x47625f[_0x7995('0x2a')]){delete _0x47625f[_0x7995('0x2a')];}_0x2a307e[_0x7995('0x1b')](_0x56691a)[_0x7995('0x2b')](_0x47625f);};}exports['index']=function(_0x9b2a15,_0x514445){var _0x456a28={},_0x3250e0={},_0x4253e5={'count':0x0,'rows':[]};var _0x574574=_['map'](db['CannedAnswer'][_0x7995('0x2c')],function(_0xe6b0b3){return{'name':_0xe6b0b3[_0x7995('0x2d')],'type':_0xe6b0b3[_0x7995('0x2e')][_0x7995('0x2f')]};});_0x3250e0[_0x7995('0x30')]=_['map'](_0x574574,'name');_0x3250e0[_0x7995('0x31')]=_['keys'](_0x9b2a15[_0x7995('0x31')]);_0x3250e0[_0x7995('0x32')]=_[_0x7995('0x33')](_0x3250e0[_0x7995('0x30')],_0x3250e0[_0x7995('0x31')]);_0x456a28['attributes']=_[_0x7995('0x33')](_0x3250e0[_0x7995('0x30')],qs['fields'](_0x9b2a15['query']['fields']));_0x456a28[_0x7995('0x34')]=_0x456a28[_0x7995('0x34')]['length']?_0x456a28[_0x7995('0x34')]:_0x3250e0['model'];if(!_0x9b2a15[_0x7995('0x31')][_0x7995('0x35')](_0x7995('0x36'))){_0x456a28['limit']=qs['limit'](_0x9b2a15[_0x7995('0x31')]['limit']);_0x456a28['offset']=qs[_0x7995('0x1e')](_0x9b2a15[_0x7995('0x31')]['offset']);}_0x456a28[_0x7995('0x37')]=qs[_0x7995('0x38')](_0x9b2a15[_0x7995('0x31')][_0x7995('0x38')]);_0x456a28[_0x7995('0x39')]=qs['filters'](_[_0x7995('0x3a')](_0x9b2a15[_0x7995('0x31')],_0x3250e0[_0x7995('0x32')]));if(_0x9b2a15[_0x7995('0x31')]['filter']){_0x456a28[_0x7995('0x39')]=_[_0x7995('0x3b')](_0x456a28[_0x7995('0x39')],{'$or':_[_0x7995('0x3c')](_0x574574,function(_0x1f5bee){if(_0x1f5bee[_0x7995('0x2e')]!=='VIRTUAL'){var _0x183a68={};_0x183a68[_0x1f5bee[_0x7995('0x2a')]]={'$like':'%'+_0x9b2a15[_0x7995('0x31')][_0x7995('0x3d')]+'%'};return _0x183a68;}})});}_0x456a28=_[_0x7995('0x3b')]({},_0x456a28,_0x9b2a15[_0x7995('0x3e')]);var _0x14d638={'where':_0x456a28[_0x7995('0x39')]};return db[_0x7995('0x3f')][_0x7995('0x40')](_0x14d638)[_0x7995('0x24')](function(_0x270d52){_0x4253e5[_0x7995('0x40')]=_0x270d52;if(_0x9b2a15['query']['includeAll']){_0x456a28[_0x7995('0x41')]=[{'all':!![]}];}return db[_0x7995('0x3f')]['findAll'](_0x456a28);})['then'](function(_0x3f8522){_0x4253e5['rows']=_0x3f8522;return _0x4253e5;})['then'](respondWithFilteredResult(_0x514445,_0x456a28))[_0x7995('0x42')](handleError(_0x514445,null));};exports[_0x7995('0x43')]=function(_0x35c8ff,_0x576b96){var _0x46ac4f={'raw':!![],'where':{'id':_0x35c8ff[_0x7995('0x44')]['id']}},_0x5e85b9={};_0x5e85b9['model']=_['keys'](db[_0x7995('0x3f')][_0x7995('0x2c')]);_0x5e85b9[_0x7995('0x31')]=_[_0x7995('0x45')](_0x35c8ff['query']);_0x5e85b9[_0x7995('0x32')]=_[_0x7995('0x33')](_0x5e85b9[_0x7995('0x30')],_0x5e85b9[_0x7995('0x31')]);_0x46ac4f['attributes']=_['intersection'](_0x5e85b9[_0x7995('0x30')],qs['fields'](_0x35c8ff[_0x7995('0x31')]['fields']));_0x46ac4f[_0x7995('0x34')]=_0x46ac4f['attributes'][_0x7995('0x46')]?_0x46ac4f[_0x7995('0x34')]:_0x5e85b9['model'];if(_0x35c8ff[_0x7995('0x31')][_0x7995('0x47')]){_0x46ac4f[_0x7995('0x41')]=[{'all':!![]}];}_0x46ac4f=_[_0x7995('0x3b')]({},_0x46ac4f,_0x35c8ff['options']);return db[_0x7995('0x3f')][_0x7995('0x48')](_0x46ac4f)[_0x7995('0x24')](handleEntityNotFound(_0x576b96,null))['then'](respondWithResult(_0x576b96,null))[_0x7995('0x42')](handleError(_0x576b96,null));};exports[_0x7995('0x49')]=function(_0x511567,_0x3d8ae3){if(_0x511567[_0x7995('0x4a')]['id']){delete _0x511567['body']['id'];}return db[_0x7995('0x3f')][_0x7995('0x48')]({'where':{'id':_0x511567['params']['id']}})[_0x7995('0x24')](handleEntityNotFound(_0x3d8ae3,null))['then'](saveUpdates(_0x511567[_0x7995('0x4a')],null))[_0x7995('0x24')](respondWithResult(_0x3d8ae3,null))[_0x7995('0x42')](handleError(_0x3d8ae3,null));};exports[_0x7995('0x25')]=function(_0xddf537,_0x14b537){return db[_0x7995('0x3f')]['find']({'where':{'id':_0xddf537[_0x7995('0x44')]['id']}})[_0x7995('0x24')](handleEntityNotFound(_0x14b537,null))[_0x7995('0x24')](removeEntity(_0x14b537,null))['catch'](handleError(_0x14b537,null));};exports[_0x7995('0x4b')]=function(_0x1fe77e,_0x12d4b8){var _0x47d1d8={'key':_0x1fe77e['body']['key']};if(_0x1fe77e[_0x7995('0x4a')][_0x7995('0x4c')]){_0x47d1d8['MailAccountId']=_0x1fe77e[_0x7995('0x4a')][_0x7995('0x4c')];}else if(_0x1fe77e[_0x7995('0x4a')][_0x7995('0x4d')]){_0x47d1d8[_0x7995('0x4d')]=_0x1fe77e['body'][_0x7995('0x4d')];}else if(_0x1fe77e['body'][_0x7995('0x4e')]){_0x47d1d8[_0x7995('0x4e')]=_0x1fe77e[_0x7995('0x4a')]['OpenchannelAccountId'];}else if(_0x1fe77e['body']['ChatWebsiteId']){_0x47d1d8['ChatWebsiteId']=_0x1fe77e[_0x7995('0x4a')][_0x7995('0x4f')];}return db[_0x7995('0x3f')][_0x7995('0x48')]({'where':_0x47d1d8})[_0x7995('0x24')](function(_0x357e60){if(_0x357e60){throw new db[(_0x7995('0x50'))][(_0x7995('0x51'))](_0x7995('0x52'));}return db[_0x7995('0x3f')][_0x7995('0x4b')](_0x1fe77e[_0x7995('0x4a')]);})[_0x7995('0x24')](function(_0x35bea3){var _0x1ea1dc=_0x1fe77e[_0x7995('0x53')][_0x7995('0x26')]({'plain':!![]});if(!_0x1ea1dc)throw new Error(_0x7995('0x54'));if(_0x1ea1dc[_0x7995('0x55')]==='user'){var _0x56a374=_0x35bea3[_0x7995('0x26')]({'plain':!![]});return db[_0x7995('0x56')][_0x7995('0x48')]({'where':{'name':'CannedAnswers','userProfileId':_0x1ea1dc['userProfileId']},'raw':!![]})[_0x7995('0x24')](function(_0x197b52){if(_0x197b52&&_0x197b52[_0x7995('0x57')]===0x0){return db[_0x7995('0x28')]['create']({'name':_0x56a374[_0x7995('0x2a')],'resourceId':_0x56a374['id'],'type':_0x197b52[_0x7995('0x2a')],'sectionId':_0x197b52['id']},{})[_0x7995('0x24')](function(){return _0x35bea3;});}else{return _0x35bea3;}})[_0x7995('0x42')](function(_0x502d43){logger['error'](_0x7995('0x58'),_0x502d43);throw _0x502d43;});}return _0x35bea3;})[_0x7995('0x24')](respondWithResult(_0x12d4b8,0xc9))[_0x7995('0x42')](handleError(_0x12d4b8,null));};
\ No newline at end of file
+var _0xa9e0=['filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','limit','order','sort','pick','filter','where','VIRTUAL','merge','options','includeAll','findAll','rows','catch','show','params','include','find','body','create','MailAccountId','SmsAccountId','OpenchannelAccountId','Sequelize','The\x20inserted\x20key\x20already\x20exists.','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','html-pdf','eml-format','rimraf','request-promise','bluebird','mustache','util','path','sox','ejs','lodash','squel','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../mysqldb','sendStatus','status','json','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','get','CannedAnswers','UserProfileResource','end','error','name','send','index','map','CannedAnswer','rawAttributes','type','key','model','query','keys'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa9e0,0x123));var _0x0a9e=function(_0x1facfa,_0x1acf7d){_0x1facfa=_0x1facfa-0x0;var _0x9ec701=_0xa9e0[_0x1facfa];return _0x9ec701;};'use strict';var pdf=require(_0x0a9e('0x0'));var emlformat=require(_0x0a9e('0x1'));var rimraf=require(_0x0a9e('0x2'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x0a9e('0x3'));var moment=require('moment');var BPromise=require(_0x0a9e('0x4'));var Mustache=require(_0x0a9e('0x5'));var util=require(_0x0a9e('0x6'));var path=require(_0x0a9e('0x7'));var sox=require(_0x0a9e('0x8'));var csv=require('to-csv');var ejs=require(_0x0a9e('0x9'));var fs=require('fs');var _=require(_0x0a9e('0xa'));var squel=require(_0x0a9e('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x0a9e('0xc'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x0a9e('0xd'));var Redis=require(_0x0a9e('0xe'));var authService=require(_0x0a9e('0xf'));var qs=require(_0x0a9e('0x10'));var as=require(_0x0a9e('0x11'));var hardwareService=require(_0x0a9e('0x12'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require('../../config/environment');var db=require(_0x0a9e('0x13'))['db'];function respondWithStatusCode(_0x36471c,_0xd5b662){_0xd5b662=_0xd5b662||0xcc;return function(_0x26d672){if(_0x26d672){return _0x36471c[_0x0a9e('0x14')](_0xd5b662);}return _0x36471c[_0x0a9e('0x15')](_0xd5b662)['end']();};}function respondWithResult(_0x4283ce,_0x239b12){_0x239b12=_0x239b12||0xc8;return function(_0x2b4227){if(_0x2b4227){return _0x4283ce[_0x0a9e('0x15')](_0x239b12)[_0x0a9e('0x16')](_0x2b4227);}};}function respondWithFilteredResult(_0x4d5611,_0x52a03d){return function(_0x22dccb){if(_0x22dccb){var _0x5d0880=_0x22dccb[_0x0a9e('0x17')],_0x1985b6=_0x52a03d['offset'],_0x519dfd=_0x52a03d[_0x0a9e('0x18')]+_0x52a03d['limit'],_0x16033c;if(_0x519dfd>=_0x5d0880){_0x519dfd=_0x5d0880;_0x16033c=0xc8;}else{_0x16033c=0xce;}_0x4d5611[_0x0a9e('0x15')](_0x16033c);return _0x4d5611[_0x0a9e('0x19')](_0x0a9e('0x1a'),_0x1985b6+'-'+_0x519dfd+'/'+_0x5d0880)[_0x0a9e('0x16')](_0x22dccb);}return null;};}function patchUpdates(_0x31b1ca){return function(_0x2eb11f){try{jsonpatch[_0x0a9e('0x1b')](_0x2eb11f,_0x31b1ca,!![]);}catch(_0x20559e){return BPromise[_0x0a9e('0x1c')](_0x20559e);}return _0x2eb11f[_0x0a9e('0x1d')]();};}function saveUpdates(_0x1c696a,_0x105080){return function(_0x4bb1e3){if(_0x4bb1e3){return _0x4bb1e3[_0x0a9e('0x1e')](_0x1c696a)[_0x0a9e('0x1f')](function(_0x53682f){return _0x53682f;});}return null;};}function removeEntity(_0x20f109,_0x5a09ef){return function(_0x588269){if(_0x588269){return _0x588269[_0x0a9e('0x20')]()[_0x0a9e('0x1f')](function(){var _0x38e7c4=_0x588269[_0x0a9e('0x21')]({'plain':!![]});var _0x4abc77=_0x0a9e('0x22');return db[_0x0a9e('0x23')][_0x0a9e('0x20')]({'where':{'type':_0x4abc77,'resourceId':_0x38e7c4['id']}})[_0x0a9e('0x1f')](function(){return _0x588269;});})[_0x0a9e('0x1f')](function(){_0x20f109[_0x0a9e('0x15')](0xcc)[_0x0a9e('0x24')]();});}};}function handleEntityNotFound(_0x5ea472,_0x59181e){return function(_0x197ec0){if(!_0x197ec0){_0x5ea472[_0x0a9e('0x14')](0x194);}return _0x197ec0;};}function handleError(_0x40c424,_0x33161b){_0x33161b=_0x33161b||0x1f4;return function(_0x526cf3){logger[_0x0a9e('0x25')](_0x526cf3['stack']);if(_0x526cf3[_0x0a9e('0x26')]){delete _0x526cf3['name'];}_0x40c424[_0x0a9e('0x15')](_0x33161b)[_0x0a9e('0x27')](_0x526cf3);};}exports[_0x0a9e('0x28')]=function(_0x14433c,_0x140511){var _0x1538a4={},_0x11c3b6={},_0x14de77={'count':0x0,'rows':[]};var _0x5a101a=_[_0x0a9e('0x29')](db[_0x0a9e('0x2a')][_0x0a9e('0x2b')],function(_0x2ec755){return{'name':_0x2ec755['fieldName'],'type':_0x2ec755[_0x0a9e('0x2c')][_0x0a9e('0x2d')]};});_0x11c3b6[_0x0a9e('0x2e')]=_[_0x0a9e('0x29')](_0x5a101a,_0x0a9e('0x26'));_0x11c3b6[_0x0a9e('0x2f')]=_[_0x0a9e('0x30')](_0x14433c[_0x0a9e('0x2f')]);_0x11c3b6[_0x0a9e('0x31')]=_['intersection'](_0x11c3b6[_0x0a9e('0x2e')],_0x11c3b6['query']);_0x1538a4[_0x0a9e('0x32')]=_[_0x0a9e('0x33')](_0x11c3b6[_0x0a9e('0x2e')],qs[_0x0a9e('0x34')](_0x14433c[_0x0a9e('0x2f')]['fields']));_0x1538a4[_0x0a9e('0x32')]=_0x1538a4[_0x0a9e('0x32')][_0x0a9e('0x35')]?_0x1538a4[_0x0a9e('0x32')]:_0x11c3b6[_0x0a9e('0x2e')];if(!_0x14433c[_0x0a9e('0x2f')][_0x0a9e('0x36')](_0x0a9e('0x37'))){_0x1538a4['limit']=qs[_0x0a9e('0x38')](_0x14433c['query'][_0x0a9e('0x38')]);_0x1538a4[_0x0a9e('0x18')]=qs[_0x0a9e('0x18')](_0x14433c[_0x0a9e('0x2f')]['offset']);}_0x1538a4[_0x0a9e('0x39')]=qs[_0x0a9e('0x3a')](_0x14433c[_0x0a9e('0x2f')][_0x0a9e('0x3a')]);_0x1538a4['where']=qs['filters'](_[_0x0a9e('0x3b')](_0x14433c['query'],_0x11c3b6[_0x0a9e('0x31')]));if(_0x14433c[_0x0a9e('0x2f')][_0x0a9e('0x3c')]){_0x1538a4[_0x0a9e('0x3d')]=_['merge'](_0x1538a4[_0x0a9e('0x3d')],{'$or':_[_0x0a9e('0x29')](_0x5a101a,function(_0x3cae){if(_0x3cae['type']!==_0x0a9e('0x3e')){var _0x1a180b={};_0x1a180b[_0x3cae[_0x0a9e('0x26')]]={'$like':'%'+_0x14433c['query']['filter']+'%'};return _0x1a180b;}})});}_0x1538a4=_[_0x0a9e('0x3f')]({},_0x1538a4,_0x14433c[_0x0a9e('0x40')]);var _0x5adda1={'where':_0x1538a4[_0x0a9e('0x3d')]};return db[_0x0a9e('0x2a')][_0x0a9e('0x17')](_0x5adda1)[_0x0a9e('0x1f')](function(_0x4b38d9){_0x14de77['count']=_0x4b38d9;if(_0x14433c[_0x0a9e('0x2f')][_0x0a9e('0x41')]){_0x1538a4['include']=[{'all':!![]}];}return db[_0x0a9e('0x2a')][_0x0a9e('0x42')](_0x1538a4);})[_0x0a9e('0x1f')](function(_0x5b4f5e){_0x14de77[_0x0a9e('0x43')]=_0x5b4f5e;return _0x14de77;})[_0x0a9e('0x1f')](respondWithFilteredResult(_0x140511,_0x1538a4))[_0x0a9e('0x44')](handleError(_0x140511,null));};exports[_0x0a9e('0x45')]=function(_0x13cb1f,_0xeaa5e5){var _0x2881b3={'raw':!![],'where':{'id':_0x13cb1f[_0x0a9e('0x46')]['id']}},_0x45a9b8={};_0x45a9b8[_0x0a9e('0x2e')]=_[_0x0a9e('0x30')](db[_0x0a9e('0x2a')][_0x0a9e('0x2b')]);_0x45a9b8[_0x0a9e('0x2f')]=_[_0x0a9e('0x30')](_0x13cb1f['query']);_0x45a9b8['filters']=_[_0x0a9e('0x33')](_0x45a9b8[_0x0a9e('0x2e')],_0x45a9b8[_0x0a9e('0x2f')]);_0x2881b3[_0x0a9e('0x32')]=_[_0x0a9e('0x33')](_0x45a9b8[_0x0a9e('0x2e')],qs[_0x0a9e('0x34')](_0x13cb1f[_0x0a9e('0x2f')][_0x0a9e('0x34')]));_0x2881b3[_0x0a9e('0x32')]=_0x2881b3[_0x0a9e('0x32')][_0x0a9e('0x35')]?_0x2881b3['attributes']:_0x45a9b8[_0x0a9e('0x2e')];if(_0x13cb1f[_0x0a9e('0x2f')][_0x0a9e('0x41')]){_0x2881b3[_0x0a9e('0x47')]=[{'all':!![]}];}_0x2881b3=_[_0x0a9e('0x3f')]({},_0x2881b3,_0x13cb1f[_0x0a9e('0x40')]);return db[_0x0a9e('0x2a')][_0x0a9e('0x48')](_0x2881b3)['then'](handleEntityNotFound(_0xeaa5e5,null))[_0x0a9e('0x1f')](respondWithResult(_0xeaa5e5,null))['catch'](handleError(_0xeaa5e5,null));};exports[_0x0a9e('0x1e')]=function(_0x476688,_0x8d6dd1){if(_0x476688['body']['id']){delete _0x476688[_0x0a9e('0x49')]['id'];}return db[_0x0a9e('0x2a')][_0x0a9e('0x48')]({'where':{'id':_0x476688[_0x0a9e('0x46')]['id']}})[_0x0a9e('0x1f')](handleEntityNotFound(_0x8d6dd1,null))[_0x0a9e('0x1f')](saveUpdates(_0x476688[_0x0a9e('0x49')],null))['then'](respondWithResult(_0x8d6dd1,null))[_0x0a9e('0x44')](handleError(_0x8d6dd1,null));};exports[_0x0a9e('0x20')]=function(_0x1b5e80,_0x16f976){return db[_0x0a9e('0x2a')][_0x0a9e('0x48')]({'where':{'id':_0x1b5e80[_0x0a9e('0x46')]['id']}})[_0x0a9e('0x1f')](handleEntityNotFound(_0x16f976,null))[_0x0a9e('0x1f')](removeEntity(_0x16f976,null))['catch'](handleError(_0x16f976,null));};exports[_0x0a9e('0x4a')]=function(_0x3fe430,_0x4f7240){var _0x4ae14b={'key':_0x3fe430['body'][_0x0a9e('0x2d')]};if(_0x3fe430[_0x0a9e('0x49')][_0x0a9e('0x4b')]){_0x4ae14b[_0x0a9e('0x4b')]=_0x3fe430[_0x0a9e('0x49')][_0x0a9e('0x4b')];}else if(_0x3fe430[_0x0a9e('0x49')][_0x0a9e('0x4c')]){_0x4ae14b['SmsAccountId']=_0x3fe430['body']['SmsAccountId'];}else if(_0x3fe430[_0x0a9e('0x49')][_0x0a9e('0x4d')]){_0x4ae14b[_0x0a9e('0x4d')]=_0x3fe430['body'][_0x0a9e('0x4d')];}else if(_0x3fe430[_0x0a9e('0x49')]['ChatWebsiteId']){_0x4ae14b['ChatWebsiteId']=_0x3fe430[_0x0a9e('0x49')]['ChatWebsiteId'];}return db[_0x0a9e('0x2a')]['find']({'where':_0x4ae14b})[_0x0a9e('0x1f')](function(_0x3c20b2){if(_0x3c20b2){throw new db[(_0x0a9e('0x4e'))]['ValidationError'](_0x0a9e('0x4f'));}return db[_0x0a9e('0x2a')]['create'](_0x3fe430['body']);})[_0x0a9e('0x1f')](function(_0x3aedd0){var _0x49c095=_0x3fe430[_0x0a9e('0x50')]['get']({'plain':!![]});if(!_0x49c095)throw new Error(_0x0a9e('0x51'));if(_0x49c095['role']===_0x0a9e('0x50')){var _0x4a6deb=_0x3aedd0['get']({'plain':!![]});return db['UserProfileSection'][_0x0a9e('0x48')]({'where':{'name':'CannedAnswers','userProfileId':_0x49c095[_0x0a9e('0x52')]},'raw':!![]})[_0x0a9e('0x1f')](function(_0x3cfd00){if(_0x3cfd00&&_0x3cfd00[_0x0a9e('0x53')]===0x0){return db[_0x0a9e('0x23')][_0x0a9e('0x4a')]({'name':_0x4a6deb[_0x0a9e('0x26')],'resourceId':_0x4a6deb['id'],'type':_0x3cfd00[_0x0a9e('0x26')],'sectionId':_0x3cfd00['id']},{})['then'](function(){return _0x3aedd0;});}else{return _0x3aedd0;}})[_0x0a9e('0x44')](function(_0x121cef){logger[_0x0a9e('0x25')](_0x0a9e('0x54'),_0x121cef);throw _0x121cef;});}return _0x3aedd0;})[_0x0a9e('0x1f')](respondWithResult(_0x4f7240,0xc9))[_0x0a9e('0x44')](handleError(_0x4f7240,null));};
\ No newline at end of file
diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js
index bcf685f..6cb19bc 100644
--- a/server/api/cannedAnswer/cannedAnswer.model.js
+++ b/server/api/cannedAnswer/cannedAnswer.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xfaa4=['../../config/environment','./cannedAnswer.attributes','define','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf'];(function(_0x23cc71,_0x2c5958){var _0x383011=function(_0x3d33ee){while(--_0x3d33ee){_0x23cc71['push'](_0x23cc71['shift']());}};_0x383011(++_0x2c5958);}(_0xfaa4,0x1a8));var _0x4faa=function(_0x247265,_0x269561){_0x247265=_0x247265-0x0;var _0x3174d9=_0xfaa4[_0x247265];return _0x3174d9;};'use strict';var _=require(_0x4faa('0x0'));var util=require(_0x4faa('0x1'));var logger=require(_0x4faa('0x2'))(_0x4faa('0x3'));var moment=require(_0x4faa('0x4'));var BPromise=require(_0x4faa('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4faa('0x6'));var rimraf=require(_0x4faa('0x7'));var config=require(_0x4faa('0x8'));var attributes=require(_0x4faa('0x9'));module['exports']=function(_0x8117c3,_0x6df371){return _0x8117c3[_0x4faa('0xa')]('CannedAnswer',attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4faa('0xb')});};
\ No newline at end of file
+var _0xf3dc=['lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci'];(function(_0x44904d,_0x2bedfb){var _0xfbccba=function(_0x5ed335){while(--_0x5ed335){_0x44904d['push'](_0x44904d['shift']());}};_0xfbccba(++_0x2bedfb);}(_0xf3dc,0x9c));var _0xcf3d=function(_0x2300f2,_0x315c5f){_0x2300f2=_0x2300f2-0x0;var _0x6bd508=_0xf3dc[_0x2300f2];return _0x6bd508;};'use strict';var _=require(_0xcf3d('0x0'));var util=require(_0xcf3d('0x1'));var logger=require(_0xcf3d('0x2'))('api');var moment=require(_0xcf3d('0x3'));var BPromise=require(_0xcf3d('0x4'));var rp=require(_0xcf3d('0x5'));var fs=require('fs');var path=require(_0xcf3d('0x6'));var rimraf=require(_0xcf3d('0x7'));var config=require(_0xcf3d('0x8'));var attributes=require('./cannedAnswer.attributes');module['exports']=function(_0x55074b,_0x5b1441){return _0x55074b['define']('CannedAnswer',attributes,{'tableName':_0xcf3d('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xcf3d('0xa'),'collate':_0xcf3d('0xb')});};
\ No newline at end of file
diff --git a/server/api/cannedAnswer/cannedAnswer.rpc.js b/server/api/cannedAnswer/cannedAnswer.rpc.js
index 7c672e8..79df1b0 100644
--- a/server/api/cannedAnswer/cannedAnswer.rpc.js
+++ b/server/api/cannedAnswer/cannedAnswer.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x44a6=['randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','CannedAnswer,\x20%s,\x20%s','request\x20sent','debug','CannedAnswer,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird'];(function(_0x125997,_0x2c055c){var _0x3fea79=function(_0x4f57a9){while(--_0x4f57a9){_0x125997['push'](_0x125997['shift']());}};_0x3fea79(++_0x2c055c);}(_0x44a6,0xc4));var _0x644a=function(_0x4d933a,_0x40c7f7){_0x4d933a=_0x4d933a-0x0;var _0x493aff=_0x44a6[_0x4d933a];return _0x493aff;};'use strict';var _=require(_0x644a('0x0'));var util=require(_0x644a('0x1'));var moment=require(_0x644a('0x2'));var BPromise=require(_0x644a('0x3'));var rs=require(_0x644a('0x4'));var fs=require('fs');var Redis=require(_0x644a('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x644a('0x6'));var logger=require(_0x644a('0x7'))(_0x644a('0x8'));var config=require(_0x644a('0x9'));var jayson=require(_0x644a('0xa'));var client=jayson[_0x644a('0xb')][_0x644a('0xc')]({'port':0x232a});function respondWithRpcPromise(_0xe6d94,_0x248479,_0x233359){return new BPromise(function(_0x142b88,_0x5367ad){return client['request'](_0xe6d94,_0x233359)[_0x644a('0xd')](function(_0x5b00c5){logger[_0x644a('0xe')](_0x644a('0xf'),_0x248479,_0x644a('0x10'));logger[_0x644a('0x11')](_0x644a('0x12'),_0x248479,'request\x20sent',JSON[_0x644a('0x13')](_0x5b00c5));if(_0x5b00c5[_0x644a('0x14')]){if(_0x5b00c5[_0x644a('0x14')][_0x644a('0x15')]===0x1f4){logger[_0x644a('0x14')](_0x644a('0xf'),_0x248479,_0x5b00c5['error'][_0x644a('0x16')]);return _0x5367ad(_0x5b00c5[_0x644a('0x14')]['message']);}logger[_0x644a('0x14')](_0x644a('0xf'),_0x248479,_0x5b00c5[_0x644a('0x14')]['message']);return _0x142b88(_0x5b00c5['error'][_0x644a('0x16')]);}else{logger[_0x644a('0xe')](_0x644a('0xf'),_0x248479,_0x644a('0x10'));_0x142b88(_0x5b00c5[_0x644a('0x17')][_0x644a('0x16')]);}})[_0x644a('0x18')](function(_0x403b41){logger[_0x644a('0x14')](_0x644a('0xf'),_0x248479,_0x403b41);_0x5367ad(_0x403b41);});});}
\ No newline at end of file
+var _0x3670=['lodash','bluebird','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','CannedAnswer,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','catch'];(function(_0x3aaf0a,_0x450970){var _0x33e6bc=function(_0x1db54d){while(--_0x1db54d){_0x3aaf0a['push'](_0x3aaf0a['shift']());}};_0x33e6bc(++_0x450970);}(_0x3670,0x140));var _0x0367=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x3670[_0x2dafbe];return _0x58a45a;};'use strict';var _=require(_0x0367('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x0367('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x0367('0x2'))['db'];var utils=require(_0x0367('0x3'));var logger=require('../../config/logger')(_0x0367('0x4'));var config=require(_0x0367('0x5'));var jayson=require(_0x0367('0x6'));var client=jayson[_0x0367('0x7')][_0x0367('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x345f02,_0x3014dc,_0xc5357b){return new BPromise(function(_0x116c6f,_0x40f548){return client[_0x0367('0x9')](_0x345f02,_0xc5357b)[_0x0367('0xa')](function(_0x26b48f){logger['info'](_0x0367('0xb'),_0x3014dc,_0x0367('0xc'));logger[_0x0367('0xd')]('CannedAnswer,\x20%s,\x20%s,\x20%s',_0x3014dc,_0x0367('0xc'),JSON[_0x0367('0xe')](_0x26b48f));if(_0x26b48f[_0x0367('0xf')]){if(_0x26b48f[_0x0367('0xf')][_0x0367('0x10')]===0x1f4){logger[_0x0367('0xf')](_0x0367('0xb'),_0x3014dc,_0x26b48f[_0x0367('0xf')][_0x0367('0x11')]);return _0x40f548(_0x26b48f['error'][_0x0367('0x11')]);}logger[_0x0367('0xf')](_0x0367('0xb'),_0x3014dc,_0x26b48f[_0x0367('0xf')][_0x0367('0x11')]);return _0x116c6f(_0x26b48f[_0x0367('0xf')][_0x0367('0x11')]);}else{logger[_0x0367('0x12')](_0x0367('0xb'),_0x3014dc,_0x0367('0xc'));_0x116c6f(_0x26b48f['result'][_0x0367('0x11')]);}})[_0x0367('0x13')](function(_0x4e3e60){logger['error'](_0x0367('0xb'),_0x3014dc,_0x4e3e60);_0x40f548(_0x4e3e60);});});}
\ No newline at end of file
diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js
index f6bd8a2..4744bf2 100644
--- a/server/api/cannedAnswer/index.js
+++ b/server/api/cannedAnswer/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xb877=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cannedAnswer.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','util','path'];(function(_0x212482,_0x35096e){var _0x3c0b27=function(_0x5205b3){while(--_0x5205b3){_0x212482['push'](_0x212482['shift']());}};_0x3c0b27(++_0x35096e);}(_0xb877,0x1cb));var _0x7b87=function(_0x4df36f,_0x2817ba){_0x4df36f=_0x4df36f-0x0;var _0x5f2062=_0xb877[_0x4df36f];return _0x5f2062;};'use strict';var multer=require(_0x7b87('0x0'));var util=require(_0x7b87('0x1'));var path=require(_0x7b87('0x2'));var timeout=require(_0x7b87('0x3'));var express=require(_0x7b87('0x4'));var router=express[_0x7b87('0x5')]();var auth=require(_0x7b87('0x6'));var interaction=require(_0x7b87('0x7'));var config=require(_0x7b87('0x8'));var controller=require(_0x7b87('0x9'));router[_0x7b87('0xa')]('/',auth[_0x7b87('0xb')](),controller[_0x7b87('0xc')]);router[_0x7b87('0xa')](_0x7b87('0xd'),auth[_0x7b87('0xb')](),controller[_0x7b87('0xe')]);router[_0x7b87('0xf')]('/',auth[_0x7b87('0xb')](),controller[_0x7b87('0x10')]);router[_0x7b87('0x11')](_0x7b87('0xd'),auth['isAuthenticated'](),controller[_0x7b87('0x12')]);router[_0x7b87('0x13')](_0x7b87('0xd'),auth[_0x7b87('0xb')](),controller[_0x7b87('0x14')]);module[_0x7b87('0x15')]=router;
\ No newline at end of file
+var _0x317b=['put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','isAuthenticated','index','get','/:id','show'];(function(_0x114d31,_0x21c195){var _0x2f108a=function(_0x34d54e){while(--_0x34d54e){_0x114d31['push'](_0x114d31['shift']());}};_0x2f108a(++_0x21c195);}(_0x317b,0x65));var _0xb317=function(_0x31bd61,_0x4c3cc4){_0x31bd61=_0x31bd61-0x0;var _0x242879=_0x317b[_0x31bd61];return _0x242879;};'use strict';var multer=require(_0xb317('0x0'));var util=require('util');var path=require(_0xb317('0x1'));var timeout=require(_0xb317('0x2'));var express=require(_0xb317('0x3'));var router=express[_0xb317('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xb317('0x5'));var config=require('../../config/environment');var controller=require('./cannedAnswer.controller');router['get']('/',auth[_0xb317('0x6')](),controller[_0xb317('0x7')]);router[_0xb317('0x8')](_0xb317('0x9'),auth['isAuthenticated'](),controller[_0xb317('0xa')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xb317('0xb')](_0xb317('0x9'),auth[_0xb317('0x6')](),controller[_0xb317('0xc')]);router[_0xb317('0xd')](_0xb317('0x9'),auth[_0xb317('0x6')](),controller[_0xb317('0xe')]);module[_0xb317('0xf')]=router;
\ No newline at end of file
diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js
index b2a4d30..c1ba362 100644
--- a/server/api/cdr/cdr.attributes.js
+++ b/server/api/cdr/cdr.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x21b2=['sequelize','exports','DATE','1970-01-01\x2000:00:01','STRING','INTEGER'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x21b2,0xea));var _0x221b=function(_0x46e363,_0x45d7e2){_0x46e363=_0x46e363-0x0;var _0x3fb059=_0x21b2[_0x46e363];return _0x3fb059;};'use strict';var Sequelize=require(_0x221b('0x0'));module[_0x221b('0x1')]={'calldate':{'type':Sequelize[_0x221b('0x2')],'allowNull':![],'defaultValue':_0x221b('0x3')},'clid':{'type':Sequelize[_0x221b('0x4')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize['STRING']},'dcontext':{'type':Sequelize[_0x221b('0x4')]},'channel':{'type':Sequelize[_0x221b('0x4')]},'dstchannel':{'type':Sequelize[_0x221b('0x4')]},'lastapp':{'type':Sequelize[_0x221b('0x4')]},'lastdata':{'type':Sequelize['STRING']},'duration':{'type':Sequelize[_0x221b('0x5')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x221b('0x4')]},'amaflags':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x221b('0x4')]},'userfield':{'type':Sequelize[_0x221b('0x4')]},'uniqueid':{'type':Sequelize['STRING']},'linkedid':{'type':Sequelize['STRING']},'sequence':{'type':Sequelize['STRING']},'peeraccount':{'type':Sequelize[_0x221b('0x4')]},'type':{'type':Sequelize['STRING']},'tag':{'type':Sequelize[_0x221b('0x4')]}};
\ No newline at end of file
+var _0x167e=['sequelize','DATE','STRING','INTEGER'];(function(_0x481169,_0x46b29d){var _0x3f128a=function(_0x4b39b9){while(--_0x4b39b9){_0x481169['push'](_0x481169['shift']());}};_0x3f128a(++_0x46b29d);}(_0x167e,0x1bc));var _0xe167=function(_0x447a4f,_0xc80366){_0x447a4f=_0x447a4f-0x0;var _0x3bcd6e=_0x167e[_0x447a4f];return _0x3bcd6e;};'use strict';var Sequelize=require(_0xe167('0x0'));module['exports']={'calldate':{'type':Sequelize[_0xe167('0x1')],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':Sequelize[_0xe167('0x2')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize[_0xe167('0x2')]},'dcontext':{'type':Sequelize[_0xe167('0x2')]},'channel':{'type':Sequelize[_0xe167('0x2')]},'dstchannel':{'type':Sequelize[_0xe167('0x2')]},'lastapp':{'type':Sequelize[_0xe167('0x2')]},'lastdata':{'type':Sequelize[_0xe167('0x2')]},'duration':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0xe167('0x3')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0xe167('0x2')]},'amaflags':{'type':Sequelize[_0xe167('0x3')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0xe167('0x2')]},'userfield':{'type':Sequelize[_0xe167('0x2')]},'uniqueid':{'type':Sequelize[_0xe167('0x2')]},'linkedid':{'type':Sequelize[_0xe167('0x2')]},'sequence':{'type':Sequelize[_0xe167('0x2')]},'peeraccount':{'type':Sequelize[_0xe167('0x2')]},'type':{'type':Sequelize[_0xe167('0x2')]},'tag':{'type':Sequelize['STRING']}};
\ No newline at end of file
diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js
index 08a62fd..10ee396 100644
--- a/server/api/cdr/cdr.controller.js
+++ b/server/api/cdr/cdr.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4124=['pick','merge','VIRTUAL','filter','options','includeAll','include','findAll','show','find','catch','create','body','destroy','params','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','to-csv','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','status','json','count','offset','limit','set','Content-Range','apply','reject','update','then','end','sendStatus','stack','name','send','map','Cdr','rawAttributes','fieldName','type','key','model','keys','query','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','order','sort','where'];(function(_0x44e827,_0x145ed8){var _0xa19d97=function(_0x3a1176){while(--_0x3a1176){_0x44e827['push'](_0x44e827['shift']());}};_0xa19d97(++_0x145ed8);}(_0x4124,0x140));var _0x4412=function(_0x5e7d23,_0x312ba7){_0x5e7d23=_0x5e7d23-0x0;var _0x43f376=_0x4124[_0x5e7d23];return _0x43f376;};'use strict';var pdf=require(_0x4412('0x0'));var emlformat=require(_0x4412('0x1'));var rimraf=require(_0x4412('0x2'));var zipdir=require(_0x4412('0x3'));var jsonpatch=require(_0x4412('0x4'));var rp=require(_0x4412('0x5'));var moment=require('moment');var BPromise=require(_0x4412('0x6'));var Mustache=require(_0x4412('0x7'));var util=require(_0x4412('0x8'));var path=require(_0x4412('0x9'));var sox=require('sox');var csv=require(_0x4412('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x4412('0xb'));var squel=require(_0x4412('0xc'));var crypto=require('crypto');var jsforce=require(_0x4412('0xd'));var deskjs=require(_0x4412('0xe'));var toCsv=require(_0x4412('0xa'));var querystring=require(_0x4412('0xf'));var Papa=require(_0x4412('0x10'));var Redis=require(_0x4412('0x11'));var authService=require(_0x4412('0x12'));var qs=require(_0x4412('0x13'));var as=require(_0x4412('0x14'));var hardwareService=require(_0x4412('0x15'));var logger=require(_0x4412('0x16'))('api');var utils=require(_0x4412('0x17'));var config=require('../../config/environment');var db=require(_0x4412('0x18'))['db'];function respondWithStatusCode(_0x19a87b,_0x3aede3){_0x3aede3=_0x3aede3||0xcc;return function(_0x24ad1c){if(_0x24ad1c){return _0x19a87b['sendStatus'](_0x3aede3);}return _0x19a87b['status'](_0x3aede3)['end']();};}function respondWithResult(_0xc3c8f1,_0x1f14c4){_0x1f14c4=_0x1f14c4||0xc8;return function(_0xd73cd9){if(_0xd73cd9){return _0xc3c8f1[_0x4412('0x19')](_0x1f14c4)[_0x4412('0x1a')](_0xd73cd9);}};}function respondWithFilteredResult(_0x5da303,_0x3b6076){return function(_0x28e977){if(_0x28e977){var _0x333049=_0x28e977[_0x4412('0x1b')],_0x4105dc=_0x3b6076[_0x4412('0x1c')],_0x54280e=_0x3b6076[_0x4412('0x1c')]+_0x3b6076[_0x4412('0x1d')],_0x57d213;if(_0x54280e>=_0x333049){_0x54280e=_0x333049;_0x57d213=0xc8;}else{_0x57d213=0xce;}_0x5da303[_0x4412('0x19')](_0x57d213);return _0x5da303[_0x4412('0x1e')](_0x4412('0x1f'),_0x4105dc+'-'+_0x54280e+'/'+_0x333049)[_0x4412('0x1a')](_0x28e977);}return null;};}function patchUpdates(_0x5876ef){return function(_0x59c565){try{jsonpatch[_0x4412('0x20')](_0x59c565,_0x5876ef,!![]);}catch(_0x3de20e){return BPromise[_0x4412('0x21')](_0x3de20e);}return _0x59c565['save']();};}function saveUpdates(_0x48e29a,_0x3e4049){return function(_0x55ef30){if(_0x55ef30){return _0x55ef30[_0x4412('0x22')](_0x48e29a)[_0x4412('0x23')](function(_0x19b301){return _0x19b301;});}return null;};}function removeEntity(_0x54aa64,_0x3af537){return function(_0x207742){if(_0x207742){return _0x207742['destroy']()[_0x4412('0x23')](function(){_0x54aa64[_0x4412('0x19')](0xcc)[_0x4412('0x24')]();});}};}function handleEntityNotFound(_0x2fe4dd,_0x126b71){return function(_0x3846e2){if(!_0x3846e2){_0x2fe4dd[_0x4412('0x25')](0x194);}return _0x3846e2;};}function handleError(_0x281e2a,_0x508483){_0x508483=_0x508483||0x1f4;return function(_0x374c10){logger['error'](_0x374c10[_0x4412('0x26')]);if(_0x374c10[_0x4412('0x27')]){delete _0x374c10[_0x4412('0x27')];}_0x281e2a[_0x4412('0x19')](_0x508483)[_0x4412('0x28')](_0x374c10);};}exports['index']=function(_0x13afb1,_0x421589){var _0x1a216e={},_0x115360={},_0x1b6d1b={'count':0x0,'rows':[]};var _0xaed20=_[_0x4412('0x29')](db[_0x4412('0x2a')][_0x4412('0x2b')],function(_0x4777a4){return{'name':_0x4777a4[_0x4412('0x2c')],'type':_0x4777a4[_0x4412('0x2d')][_0x4412('0x2e')]};});_0x115360[_0x4412('0x2f')]=_[_0x4412('0x29')](_0xaed20,'name');_0x115360['query']=_[_0x4412('0x30')](_0x13afb1[_0x4412('0x31')]);_0x115360[_0x4412('0x32')]=_['intersection'](_0x115360[_0x4412('0x2f')],_0x115360['query']);_0x1a216e[_0x4412('0x33')]=_[_0x4412('0x34')](_0x115360[_0x4412('0x2f')],qs[_0x4412('0x35')](_0x13afb1[_0x4412('0x31')][_0x4412('0x35')]));_0x1a216e[_0x4412('0x33')]=_0x1a216e[_0x4412('0x33')][_0x4412('0x36')]?_0x1a216e[_0x4412('0x33')]:_0x115360[_0x4412('0x2f')];if(!_0x13afb1['query'][_0x4412('0x37')](_0x4412('0x38'))){_0x1a216e[_0x4412('0x1d')]=qs[_0x4412('0x1d')](_0x13afb1[_0x4412('0x31')][_0x4412('0x1d')]);_0x1a216e[_0x4412('0x1c')]=qs[_0x4412('0x1c')](_0x13afb1[_0x4412('0x31')][_0x4412('0x1c')]);}_0x1a216e[_0x4412('0x39')]=qs['sort'](_0x13afb1[_0x4412('0x31')][_0x4412('0x3a')]);_0x1a216e[_0x4412('0x3b')]=qs[_0x4412('0x32')](_[_0x4412('0x3c')](_0x13afb1[_0x4412('0x31')],_0x115360[_0x4412('0x32')]));if(_0x13afb1['query']['filter']){_0x1a216e[_0x4412('0x3b')]=_[_0x4412('0x3d')](_0x1a216e['where'],{'$or':_['map'](_0xaed20,function(_0x4298a9){if(_0x4298a9[_0x4412('0x2d')]!==_0x4412('0x3e')){var _0x338bdf={};_0x338bdf[_0x4298a9[_0x4412('0x27')]]={'$like':'%'+_0x13afb1[_0x4412('0x31')][_0x4412('0x3f')]+'%'};return _0x338bdf;}})});}_0x1a216e=_[_0x4412('0x3d')]({},_0x1a216e,_0x13afb1[_0x4412('0x40')]);var _0x2e1d4a={'where':_0x1a216e[_0x4412('0x3b')]};return db['Cdr'][_0x4412('0x1b')](_0x2e1d4a)[_0x4412('0x23')](function(_0x279edd){_0x1b6d1b[_0x4412('0x1b')]=_0x279edd;if(_0x13afb1[_0x4412('0x31')][_0x4412('0x41')]){_0x1a216e[_0x4412('0x42')]=[{'all':!![]}];}return db[_0x4412('0x2a')][_0x4412('0x43')](_0x1a216e);})[_0x4412('0x23')](function(_0x33f905){_0x1b6d1b['rows']=_0x33f905;return _0x1b6d1b;})['then'](respondWithFilteredResult(_0x421589,_0x1a216e))['catch'](handleError(_0x421589,null));};exports[_0x4412('0x44')]=function(_0x129b35,_0x1e3730){var _0x40d2d1={'raw':!![],'where':{'id':_0x129b35['params']['id']}},_0x20f24d={};_0x20f24d['model']=_['keys'](db['Cdr'][_0x4412('0x2b')]);_0x20f24d[_0x4412('0x31')]=_[_0x4412('0x30')](_0x129b35['query']);_0x20f24d['filters']=_[_0x4412('0x34')](_0x20f24d[_0x4412('0x2f')],_0x20f24d[_0x4412('0x31')]);_0x40d2d1[_0x4412('0x33')]=_['intersection'](_0x20f24d[_0x4412('0x2f')],qs[_0x4412('0x35')](_0x129b35[_0x4412('0x31')][_0x4412('0x35')]));_0x40d2d1['attributes']=_0x40d2d1[_0x4412('0x33')]['length']?_0x40d2d1[_0x4412('0x33')]:_0x20f24d['model'];if(_0x129b35[_0x4412('0x31')][_0x4412('0x41')]){_0x40d2d1[_0x4412('0x42')]=[{'all':!![]}];}_0x40d2d1=_[_0x4412('0x3d')]({},_0x40d2d1,_0x129b35[_0x4412('0x40')]);return db['Cdr'][_0x4412('0x45')](_0x40d2d1)[_0x4412('0x23')](handleEntityNotFound(_0x1e3730,null))[_0x4412('0x23')](respondWithResult(_0x1e3730,null))[_0x4412('0x46')](handleError(_0x1e3730,null));};exports[_0x4412('0x47')]=function(_0x2ce93a,_0x48ff28){return db[_0x4412('0x2a')][_0x4412('0x47')](_0x2ce93a[_0x4412('0x48')],{})[_0x4412('0x23')](respondWithResult(_0x48ff28,0xc9))[_0x4412('0x46')](handleError(_0x48ff28,null));};exports[_0x4412('0x22')]=function(_0x2e0f53,_0x187bdb){if(_0x2e0f53[_0x4412('0x48')]['id']){delete _0x2e0f53[_0x4412('0x48')]['id'];}return db['Cdr'][_0x4412('0x45')]({'where':{'id':_0x2e0f53['params']['id']}})[_0x4412('0x23')](handleEntityNotFound(_0x187bdb,null))[_0x4412('0x23')](saveUpdates(_0x2e0f53[_0x4412('0x48')],null))['then'](respondWithResult(_0x187bdb,null))[_0x4412('0x46')](handleError(_0x187bdb,null));};exports[_0x4412('0x49')]=function(_0x2ccf4f,_0x22ccfa){return db['Cdr'][_0x4412('0x45')]({'where':{'id':_0x2ccf4f[_0x4412('0x4a')]['id']}})[_0x4412('0x23')](handleEntityNotFound(_0x22ccfa,null))[_0x4412('0x23')](removeEntity(_0x22ccfa,null))[_0x4412('0x46')](handleError(_0x22ccfa,null));};exports[_0x4412('0x4b')]=function(_0x29486c,_0x4ae6fc){return db[_0x4412('0x2a')][_0x4412('0x4b')]()[_0x4412('0x23')](respondWithResult(_0x4ae6fc,null))[_0x4412('0x46')](handleError(_0x4ae6fc,null));};
\ No newline at end of file
+var _0x4872=['stack','name','send','index','map','Cdr','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','nolimit','limit','order','where','pick','filter','merge','type','options','then','includeAll','include','findAll','rows','catch','show','rawAttributes','find','create','body','params','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','ejs','squel','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','set','Content-Range','apply','update','destroy','error'];(function(_0x59836f,_0x2b029f){var _0x307228=function(_0x1586e9){while(--_0x1586e9){_0x59836f['push'](_0x59836f['shift']());}};_0x307228(++_0x2b029f);}(_0x4872,0x70));var _0x2487=function(_0x1883c3,_0x3487c0){_0x1883c3=_0x1883c3-0x0;var _0x340c3b=_0x4872[_0x1883c3];return _0x340c3b;};'use strict';var pdf=require(_0x2487('0x0'));var emlformat=require(_0x2487('0x1'));var rimraf=require(_0x2487('0x2'));var zipdir=require(_0x2487('0x3'));var jsonpatch=require(_0x2487('0x4'));var rp=require(_0x2487('0x5'));var moment=require(_0x2487('0x6'));var BPromise=require(_0x2487('0x7'));var Mustache=require(_0x2487('0x8'));var util=require(_0x2487('0x9'));var path=require(_0x2487('0xa'));var sox=require(_0x2487('0xb'));var csv=require('to-csv');var ejs=require(_0x2487('0xc'));var fs=require('fs');var _=require('lodash');var squel=require(_0x2487('0xd'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x2487('0xe'));var toCsv=require('to-csv');var querystring=require(_0x2487('0xf'));var Papa=require(_0x2487('0x10'));var Redis=require(_0x2487('0x11'));var authService=require(_0x2487('0x12'));var qs=require(_0x2487('0x13'));var as=require(_0x2487('0x14'));var hardwareService=require(_0x2487('0x15'));var logger=require(_0x2487('0x16'))('api');var utils=require(_0x2487('0x17'));var config=require(_0x2487('0x18'));var db=require(_0x2487('0x19'))['db'];function respondWithStatusCode(_0x4daaeb,_0x5458e1){_0x5458e1=_0x5458e1||0xcc;return function(_0x491be7){if(_0x491be7){return _0x4daaeb[_0x2487('0x1a')](_0x5458e1);}return _0x4daaeb[_0x2487('0x1b')](_0x5458e1)[_0x2487('0x1c')]();};}function respondWithResult(_0x44fba7,_0x1b10e4){_0x1b10e4=_0x1b10e4||0xc8;return function(_0x39d215){if(_0x39d215){return _0x44fba7[_0x2487('0x1b')](_0x1b10e4)[_0x2487('0x1d')](_0x39d215);}};}function respondWithFilteredResult(_0x5bf3f4,_0x148f98){return function(_0x2036f0){if(_0x2036f0){var _0x13bbbc=_0x2036f0[_0x2487('0x1e')],_0x27b134=_0x148f98[_0x2487('0x1f')],_0x46a474=_0x148f98[_0x2487('0x1f')]+_0x148f98['limit'],_0xe79715;if(_0x46a474>=_0x13bbbc){_0x46a474=_0x13bbbc;_0xe79715=0xc8;}else{_0xe79715=0xce;}_0x5bf3f4[_0x2487('0x1b')](_0xe79715);return _0x5bf3f4[_0x2487('0x20')](_0x2487('0x21'),_0x27b134+'-'+_0x46a474+'/'+_0x13bbbc)[_0x2487('0x1d')](_0x2036f0);}return null;};}function patchUpdates(_0x435867){return function(_0x5e8a70){try{jsonpatch[_0x2487('0x22')](_0x5e8a70,_0x435867,!![]);}catch(_0x20eebc){return BPromise['reject'](_0x20eebc);}return _0x5e8a70['save']();};}function saveUpdates(_0x4458e7,_0x1d8ffd){return function(_0x238859){if(_0x238859){return _0x238859[_0x2487('0x23')](_0x4458e7)['then'](function(_0x34f7f7){return _0x34f7f7;});}return null;};}function removeEntity(_0x70da72,_0x238d67){return function(_0x2c1a4d){if(_0x2c1a4d){return _0x2c1a4d[_0x2487('0x24')]()['then'](function(){_0x70da72['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x2572f6,_0x56bb04){return function(_0x5e6c9c){if(!_0x5e6c9c){_0x2572f6[_0x2487('0x1a')](0x194);}return _0x5e6c9c;};}function handleError(_0xfd4cea,_0x585fe){_0x585fe=_0x585fe||0x1f4;return function(_0x233070){logger[_0x2487('0x25')](_0x233070[_0x2487('0x26')]);if(_0x233070[_0x2487('0x27')]){delete _0x233070[_0x2487('0x27')];}_0xfd4cea[_0x2487('0x1b')](_0x585fe)[_0x2487('0x28')](_0x233070);};}exports[_0x2487('0x29')]=function(_0x467339,_0x1a2ecf){var _0x1effde={},_0x3c05c7={},_0x13fa55={'count':0x0,'rows':[]};var _0xc118df=_[_0x2487('0x2a')](db[_0x2487('0x2b')]['rawAttributes'],function(_0x18b3c2){return{'name':_0x18b3c2['fieldName'],'type':_0x18b3c2['type']['key']};});_0x3c05c7[_0x2487('0x2c')]=_[_0x2487('0x2a')](_0xc118df,_0x2487('0x27'));_0x3c05c7[_0x2487('0x2d')]=_[_0x2487('0x2e')](_0x467339[_0x2487('0x2d')]);_0x3c05c7[_0x2487('0x2f')]=_['intersection'](_0x3c05c7[_0x2487('0x2c')],_0x3c05c7[_0x2487('0x2d')]);_0x1effde[_0x2487('0x30')]=_[_0x2487('0x31')](_0x3c05c7[_0x2487('0x2c')],qs[_0x2487('0x32')](_0x467339[_0x2487('0x2d')]['fields']));_0x1effde['attributes']=_0x1effde[_0x2487('0x30')][_0x2487('0x33')]?_0x1effde['attributes']:_0x3c05c7['model'];if(!_0x467339[_0x2487('0x2d')][_0x2487('0x34')](_0x2487('0x35'))){_0x1effde[_0x2487('0x36')]=qs[_0x2487('0x36')](_0x467339[_0x2487('0x2d')][_0x2487('0x36')]);_0x1effde[_0x2487('0x1f')]=qs[_0x2487('0x1f')](_0x467339[_0x2487('0x2d')][_0x2487('0x1f')]);}_0x1effde[_0x2487('0x37')]=qs['sort'](_0x467339[_0x2487('0x2d')]['sort']);_0x1effde[_0x2487('0x38')]=qs[_0x2487('0x2f')](_[_0x2487('0x39')](_0x467339[_0x2487('0x2d')],_0x3c05c7[_0x2487('0x2f')]));if(_0x467339[_0x2487('0x2d')][_0x2487('0x3a')]){_0x1effde['where']=_[_0x2487('0x3b')](_0x1effde[_0x2487('0x38')],{'$or':_[_0x2487('0x2a')](_0xc118df,function(_0x5bfdf8){if(_0x5bfdf8[_0x2487('0x3c')]!=='VIRTUAL'){var _0x48a3a6={};_0x48a3a6[_0x5bfdf8[_0x2487('0x27')]]={'$like':'%'+_0x467339['query'][_0x2487('0x3a')]+'%'};return _0x48a3a6;}})});}_0x1effde=_['merge']({},_0x1effde,_0x467339[_0x2487('0x3d')]);var _0x1e1f42={'where':_0x1effde[_0x2487('0x38')]};return db[_0x2487('0x2b')][_0x2487('0x1e')](_0x1e1f42)[_0x2487('0x3e')](function(_0x2ee5bc){_0x13fa55[_0x2487('0x1e')]=_0x2ee5bc;if(_0x467339[_0x2487('0x2d')][_0x2487('0x3f')]){_0x1effde[_0x2487('0x40')]=[{'all':!![]}];}return db[_0x2487('0x2b')][_0x2487('0x41')](_0x1effde);})[_0x2487('0x3e')](function(_0x59b7f4){_0x13fa55[_0x2487('0x42')]=_0x59b7f4;return _0x13fa55;})[_0x2487('0x3e')](respondWithFilteredResult(_0x1a2ecf,_0x1effde))[_0x2487('0x43')](handleError(_0x1a2ecf,null));};exports[_0x2487('0x44')]=function(_0x31cc32,_0x1a20f4){var _0x22bc97={'raw':!![],'where':{'id':_0x31cc32['params']['id']}},_0x523bdf={};_0x523bdf['model']=_['keys'](db[_0x2487('0x2b')][_0x2487('0x45')]);_0x523bdf['query']=_[_0x2487('0x2e')](_0x31cc32[_0x2487('0x2d')]);_0x523bdf['filters']=_[_0x2487('0x31')](_0x523bdf['model'],_0x523bdf[_0x2487('0x2d')]);_0x22bc97[_0x2487('0x30')]=_[_0x2487('0x31')](_0x523bdf['model'],qs[_0x2487('0x32')](_0x31cc32[_0x2487('0x2d')]['fields']));_0x22bc97['attributes']=_0x22bc97['attributes'][_0x2487('0x33')]?_0x22bc97[_0x2487('0x30')]:_0x523bdf['model'];if(_0x31cc32[_0x2487('0x2d')][_0x2487('0x3f')]){_0x22bc97[_0x2487('0x40')]=[{'all':!![]}];}_0x22bc97=_[_0x2487('0x3b')]({},_0x22bc97,_0x31cc32[_0x2487('0x3d')]);return db['Cdr'][_0x2487('0x46')](_0x22bc97)[_0x2487('0x3e')](handleEntityNotFound(_0x1a20f4,null))[_0x2487('0x3e')](respondWithResult(_0x1a20f4,null))[_0x2487('0x43')](handleError(_0x1a20f4,null));};exports[_0x2487('0x47')]=function(_0x35347d,_0x264beb){return db[_0x2487('0x2b')]['create'](_0x35347d[_0x2487('0x48')],{})['then'](respondWithResult(_0x264beb,0xc9))[_0x2487('0x43')](handleError(_0x264beb,null));};exports[_0x2487('0x23')]=function(_0x1f7e80,_0xc3fec2){if(_0x1f7e80[_0x2487('0x48')]['id']){delete _0x1f7e80['body']['id'];}return db[_0x2487('0x2b')][_0x2487('0x46')]({'where':{'id':_0x1f7e80[_0x2487('0x49')]['id']}})[_0x2487('0x3e')](handleEntityNotFound(_0xc3fec2,null))['then'](saveUpdates(_0x1f7e80['body'],null))['then'](respondWithResult(_0xc3fec2,null))['catch'](handleError(_0xc3fec2,null));};exports['destroy']=function(_0x385d29,_0x229c05){return db['Cdr'][_0x2487('0x46')]({'where':{'id':_0x385d29[_0x2487('0x49')]['id']}})[_0x2487('0x3e')](handleEntityNotFound(_0x229c05,null))[_0x2487('0x3e')](removeEntity(_0x229c05,null))[_0x2487('0x43')](handleError(_0x229c05,null));};exports[_0x2487('0x4a')]=function(_0x338e54,_0x9858d6){return db['Cdr']['describe']()[_0x2487('0x3e')](respondWithResult(_0x9858d6,null))['catch'](handleError(_0x9858d6,null));};
\ No newline at end of file
diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js
index 6ad67e1..e6977de 100644
--- a/server/api/cdr/cdr.model.js
+++ b/server/api/cdr/cdr.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0295=['uniqueid','lodash','api','request-promise','path','rimraf','../../config/environment','./cdr.attributes','exports','define','accountcode','calldate','disposition','dst','src'];(function(_0x5c341c,_0x5c0a00){var _0x5c5946=function(_0x1d8884){while(--_0x1d8884){_0x5c341c['push'](_0x5c341c['shift']());}};_0x5c5946(++_0x5c0a00);}(_0x0295,0x1f0));var _0x5029=function(_0x3537e1,_0xbc7714){_0x3537e1=_0x3537e1-0x0;var _0x164a50=_0x0295[_0x3537e1];return _0x164a50;};'use strict';var _=require(_0x5029('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x5029('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x5029('0x2'));var fs=require('fs');var path=require(_0x5029('0x3'));var rimraf=require(_0x5029('0x4'));var config=require(_0x5029('0x5'));var attributes=require(_0x5029('0x6'));module[_0x5029('0x7')]=function(_0x200217,_0x215955){return _0x200217[_0x5029('0x8')]('Cdr',attributes,{'tableName':'cdr','paranoid':![],'indexes':[{'name':'accountcode','fields':[_0x5029('0x9')]},{'name':'calldate','fields':[_0x5029('0xa')]},{'name':'disposition','fields':[_0x5029('0xb')]},{'name':'dst','fields':[_0x5029('0xc')]},{'name':_0x5029('0xd'),'fields':[_0x5029('0xd')]},{'name':'uniqueid','fields':[_0x5029('0xe')]}],'timestamps':![]});};
\ No newline at end of file
+var _0xfdbd=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./cdr.attributes','accountcode','calldate','disposition','dst','src','uniqueid'];(function(_0x4d54b3,_0x352948){var _0x5698ed=function(_0x1fa573){while(--_0x1fa573){_0x4d54b3['push'](_0x4d54b3['shift']());}};_0x5698ed(++_0x352948);}(_0xfdbd,0xf0));var _0xdfdb=function(_0x590b61,_0x4c4335){_0x590b61=_0x590b61-0x0;var _0x1a14dc=_0xfdbd[_0x590b61];return _0x1a14dc;};'use strict';var _=require(_0xdfdb('0x0'));var util=require(_0xdfdb('0x1'));var logger=require(_0xdfdb('0x2'))(_0xdfdb('0x3'));var moment=require(_0xdfdb('0x4'));var BPromise=require(_0xdfdb('0x5'));var rp=require(_0xdfdb('0x6'));var fs=require('fs');var path=require(_0xdfdb('0x7'));var rimraf=require(_0xdfdb('0x8'));var config=require('../../config/environment');var attributes=require(_0xdfdb('0x9'));module['exports']=function(_0x453ef6,_0x41bd5e){return _0x453ef6['define']('Cdr',attributes,{'tableName':'cdr','paranoid':![],'indexes':[{'name':_0xdfdb('0xa'),'fields':[_0xdfdb('0xa')]},{'name':'calldate','fields':[_0xdfdb('0xb')]},{'name':_0xdfdb('0xc'),'fields':[_0xdfdb('0xc')]},{'name':_0xdfdb('0xd'),'fields':[_0xdfdb('0xd')]},{'name':_0xdfdb('0xe'),'fields':[_0xdfdb('0xe')]},{'name':'uniqueid','fields':[_0xdfdb('0xf')]}],'timestamps':![]});};
\ No newline at end of file
diff --git a/server/api/cdr/cdr.rpc.js b/server/api/cdr/cdr.rpc.js
index c90851f..8311cd2 100644
--- a/server/api/cdr/cdr.rpc.js
+++ b/server/api/cdr/cdr.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2dd3=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','Cdr,\x20%s,\x20%s','request\x20sent','debug','Cdr,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment'];(function(_0x430e25,_0x372bdf){var _0x4c2738=function(_0x212255){while(--_0x212255){_0x430e25['push'](_0x430e25['shift']());}};_0x4c2738(++_0x372bdf);}(_0x2dd3,0x99));var _0x32dd=function(_0x36337e,_0x19459e){_0x36337e=_0x36337e-0x0;var _0x372071=_0x2dd3[_0x36337e];return _0x372071;};'use strict';var _=require(_0x32dd('0x0'));var util=require(_0x32dd('0x1'));var moment=require(_0x32dd('0x2'));var BPromise=require(_0x32dd('0x3'));var rs=require(_0x32dd('0x4'));var fs=require('fs');var Redis=require(_0x32dd('0x5'));var db=require(_0x32dd('0x6'))['db'];var utils=require(_0x32dd('0x7'));var logger=require(_0x32dd('0x8'))(_0x32dd('0x9'));var config=require(_0x32dd('0xa'));var jayson=require(_0x32dd('0xb'));var client=jayson['client'][_0x32dd('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x37edb0,_0x3a2d54,_0x4e95ee){return new BPromise(function(_0x5d7793,_0x2f1311){return client[_0x32dd('0xd')](_0x37edb0,_0x4e95ee)[_0x32dd('0xe')](function(_0x12f8eb){logger[_0x32dd('0xf')](_0x32dd('0x10'),_0x3a2d54,_0x32dd('0x11'));logger[_0x32dd('0x12')](_0x32dd('0x13'),_0x3a2d54,_0x32dd('0x11'),JSON[_0x32dd('0x14')](_0x12f8eb));if(_0x12f8eb[_0x32dd('0x15')]){if(_0x12f8eb[_0x32dd('0x15')][_0x32dd('0x16')]===0x1f4){logger[_0x32dd('0x15')](_0x32dd('0x10'),_0x3a2d54,_0x12f8eb['error']['message']);return _0x2f1311(_0x12f8eb[_0x32dd('0x15')][_0x32dd('0x17')]);}logger[_0x32dd('0x15')](_0x32dd('0x10'),_0x3a2d54,_0x12f8eb[_0x32dd('0x15')][_0x32dd('0x17')]);return _0x5d7793(_0x12f8eb[_0x32dd('0x15')]['message']);}else{logger[_0x32dd('0xf')](_0x32dd('0x10'),_0x3a2d54,'request\x20sent');_0x5d7793(_0x12f8eb[_0x32dd('0x18')][_0x32dd('0x17')]);}})[_0x32dd('0x19')](function(_0x54244d){logger[_0x32dd('0x15')]('Cdr,\x20%s,\x20%s',_0x3a2d54,_0x54244d);_0x2f1311(_0x54244d);});});}
\ No newline at end of file
+var _0xbdf9=['stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','http','request','then','Cdr,\x20%s,\x20%s','request\x20sent','debug','Cdr,\x20%s,\x20%s,\x20%s'];(function(_0x1a5324,_0x34a600){var _0x1abd34=function(_0x465791){while(--_0x465791){_0x1a5324['push'](_0x1a5324['shift']());}};_0x1abd34(++_0x34a600);}(_0xbdf9,0x131));var _0x9bdf=function(_0x2307fa,_0x266e5e){_0x2307fa=_0x2307fa-0x0;var _0x496486=_0xbdf9[_0x2307fa];return _0x496486;};'use strict';var _=require(_0x9bdf('0x0'));var util=require(_0x9bdf('0x1'));var moment=require(_0x9bdf('0x2'));var BPromise=require(_0x9bdf('0x3'));var rs=require(_0x9bdf('0x4'));var fs=require('fs');var Redis=require(_0x9bdf('0x5'));var db=require(_0x9bdf('0x6'))['db'];var utils=require(_0x9bdf('0x7'));var logger=require(_0x9bdf('0x8'))(_0x9bdf('0x9'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0x9bdf('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x359c7c,_0x202147,_0x5b98f0){return new BPromise(function(_0x33368e,_0x5e5c11){return client[_0x9bdf('0xb')](_0x359c7c,_0x5b98f0)[_0x9bdf('0xc')](function(_0x31cb87){logger['info'](_0x9bdf('0xd'),_0x202147,_0x9bdf('0xe'));logger[_0x9bdf('0xf')](_0x9bdf('0x10'),_0x202147,_0x9bdf('0xe'),JSON[_0x9bdf('0x11')](_0x31cb87));if(_0x31cb87[_0x9bdf('0x12')]){if(_0x31cb87[_0x9bdf('0x12')][_0x9bdf('0x13')]===0x1f4){logger['error'](_0x9bdf('0xd'),_0x202147,_0x31cb87[_0x9bdf('0x12')][_0x9bdf('0x14')]);return _0x5e5c11(_0x31cb87['error']['message']);}logger[_0x9bdf('0x12')](_0x9bdf('0xd'),_0x202147,_0x31cb87[_0x9bdf('0x12')][_0x9bdf('0x14')]);return _0x33368e(_0x31cb87[_0x9bdf('0x12')]['message']);}else{logger['info']('Cdr,\x20%s,\x20%s',_0x202147,'request\x20sent');_0x33368e(_0x31cb87[_0x9bdf('0x15')][_0x9bdf('0x14')]);}})[_0x9bdf('0x16')](function(_0x1fc9df){logger[_0x9bdf('0x12')](_0x9bdf('0xd'),_0x202147,_0x1fc9df);_0x5e5c11(_0x1fc9df);});});}
\ No newline at end of file
diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js
index d93713b..6db92e6 100644
--- a/server/api/cdr/index.js
+++ b/server/api/cdr/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc4ca=['isAuthenticated','index','/describe','describe','/:id','show','post','create','put','update','delete','destroy','exports','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./cdr.controller','get'];(function(_0x55e1d1,_0x3c9376){var _0x1165db=function(_0x5b0120){while(--_0x5b0120){_0x55e1d1['push'](_0x55e1d1['shift']());}};_0x1165db(++_0x3c9376);}(_0xc4ca,0x1c6));var _0xac4c=function(_0x1de2bd,_0x953fb){_0x1de2bd=_0x1de2bd-0x0;var _0x595960=_0xc4ca[_0x1de2bd];return _0x595960;};'use strict';var multer=require('multer');var util=require(_0xac4c('0x0'));var path=require(_0xac4c('0x1'));var timeout=require('connect-timeout');var express=require(_0xac4c('0x2'));var router=express['Router']();var auth=require(_0xac4c('0x3'));var interaction=require(_0xac4c('0x4'));var config=require(_0xac4c('0x5'));var controller=require(_0xac4c('0x6'));router[_0xac4c('0x7')]('/',auth[_0xac4c('0x8')](),controller[_0xac4c('0x9')]);router['get'](_0xac4c('0xa'),auth[_0xac4c('0x8')](),controller[_0xac4c('0xb')]);router[_0xac4c('0x7')](_0xac4c('0xc'),auth['isAuthenticated'](),controller[_0xac4c('0xd')]);router[_0xac4c('0xe')]('/',auth[_0xac4c('0x8')](),controller[_0xac4c('0xf')]);router[_0xac4c('0x10')](_0xac4c('0xc'),auth[_0xac4c('0x8')](),controller[_0xac4c('0x11')]);router[_0xac4c('0x12')](_0xac4c('0xc'),auth[_0xac4c('0x8')](),controller[_0xac4c('0x13')]);module[_0xac4c('0x14')]=router;
\ No newline at end of file
+var _0xcbb7=['path','connect-timeout','../../components/interaction/service','../../config/environment','./cdr.controller','get','isAuthenticated','index','/describe','describe','show','post','put','/:id','destroy','exports','multer','util'];(function(_0xdea41a,_0x552987){var _0x15d0d8=function(_0x1e0d0b){while(--_0x1e0d0b){_0xdea41a['push'](_0xdea41a['shift']());}};_0x15d0d8(++_0x552987);}(_0xcbb7,0x1e4));var _0x7cbb=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xcbb7[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0x7cbb('0x0'));var util=require(_0x7cbb('0x1'));var path=require(_0x7cbb('0x2'));var timeout=require(_0x7cbb('0x3'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x7cbb('0x4'));var config=require(_0x7cbb('0x5'));var controller=require(_0x7cbb('0x6'));router[_0x7cbb('0x7')]('/',auth[_0x7cbb('0x8')](),controller[_0x7cbb('0x9')]);router[_0x7cbb('0x7')](_0x7cbb('0xa'),auth[_0x7cbb('0x8')](),controller[_0x7cbb('0xb')]);router[_0x7cbb('0x7')]('/:id',auth[_0x7cbb('0x8')](),controller[_0x7cbb('0xc')]);router[_0x7cbb('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x7cbb('0xe')](_0x7cbb('0xf'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x7cbb('0xf'),auth[_0x7cbb('0x8')](),controller[_0x7cbb('0x10')]);module[_0x7cbb('0x11')]=router;
\ No newline at end of file
diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js
index ed47a60..9e5449b 100644
--- a/server/api/chatApplication/chatApplication.attributes.js
+++ b/server/api/chatApplication/chatApplication.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5938=['sequelize','exports','INTEGER','STRING','noop','TEXT'];(function(_0x40a825,_0x3bac79){var _0x273a54=function(_0x5628d8){while(--_0x5628d8){_0x40a825['push'](_0x40a825['shift']());}};_0x273a54(++_0x3bac79);}(_0x5938,0x8a));var _0x8593=function(_0x14ba7c,_0x3d6924){_0x14ba7c=_0x14ba7c-0x0;var _0x11ad50=_0x5938[_0x14ba7c];return _0x11ad50;};'use strict';var Sequelize=require(_0x8593('0x0'));module[_0x8593('0x1')]={'priority':{'type':Sequelize[_0x8593('0x2')],'allowNull':![]},'app':{'type':Sequelize[_0x8593('0x3')],'allowNull':![],'defaultValue':_0x8593('0x4')},'appdata':{'type':Sequelize[_0x8593('0x5')]()},'description':{'type':Sequelize[_0x8593('0x3')]},'interval':{'type':Sequelize[_0x8593('0x3')],'defaultValue':'*,*,*,*'}};
\ No newline at end of file
+var _0x2d0a=['STRING','*,*,*,*','sequelize','exports','INTEGER','TEXT'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0x2d0a,0x188));var _0xa2d0=function(_0x27bab8,_0x1be40b){_0x27bab8=_0x27bab8-0x0;var _0x372112=_0x2d0a[_0x27bab8];return _0x372112;};'use strict';var Sequelize=require(_0xa2d0('0x0'));module[_0xa2d0('0x1')]={'priority':{'type':Sequelize[_0xa2d0('0x2')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize[_0xa2d0('0x3')]()},'description':{'type':Sequelize[_0xa2d0('0x4')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0xa2d0('0x5')}};
\ No newline at end of file
diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js
index a96a468..a8d259c 100644
--- a/server/api/chatApplication/chatApplication.controller.js
+++ b/server/api/chatApplication/chatApplication.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x103c=['bluebird','mustache','util','path','sox','to-csv','ejs','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','Content-Range','apply','reject','save','update','then','destroy','stack','name','send','show','params','model','rawAttributes','query','keys','filters','attributes','intersection','length','includeAll','include','options','ChatApplication','body','find','catch','eml-format','rimraf','zip-dir','request-promise','moment'];(function(_0x5c2b71,_0x3d0ce2){var _0x3ddd11=function(_0x43d951){while(--_0x43d951){_0x5c2b71['push'](_0x5c2b71['shift']());}};_0x3ddd11(++_0x3d0ce2);}(_0x103c,0xe7));var _0xc103=function(_0x15f32c,_0xd1257b){_0x15f32c=_0x15f32c-0x0;var _0x25fd47=_0x103c[_0x15f32c];return _0x25fd47;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xc103('0x0'));var rimraf=require(_0xc103('0x1'));var zipdir=require(_0xc103('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xc103('0x3'));var moment=require(_0xc103('0x4'));var BPromise=require(_0xc103('0x5'));var Mustache=require(_0xc103('0x6'));var util=require(_0xc103('0x7'));var path=require(_0xc103('0x8'));var sox=require(_0xc103('0x9'));var csv=require(_0xc103('0xa'));var ejs=require(_0xc103('0xb'));var fs=require('fs');var _=require('lodash');var squel=require(_0xc103('0xc'));var crypto=require(_0xc103('0xd'));var jsforce=require(_0xc103('0xe'));var deskjs=require(_0xc103('0xf'));var toCsv=require('to-csv');var querystring=require(_0xc103('0x10'));var Papa=require(_0xc103('0x11'));var Redis=require(_0xc103('0x12'));var authService=require(_0xc103('0x13'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xc103('0x14'));var logger=require(_0xc103('0x15'))('api');var utils=require(_0xc103('0x16'));var config=require(_0xc103('0x17'));var db=require(_0xc103('0x18'))['db'];function respondWithStatusCode(_0x1a4903,_0x4377be){_0x4377be=_0x4377be||0xcc;return function(_0x1a33d1){if(_0x1a33d1){return _0x1a4903[_0xc103('0x19')](_0x4377be);}return _0x1a4903[_0xc103('0x1a')](_0x4377be)[_0xc103('0x1b')]();};}function respondWithResult(_0x1b707e,_0x542f70){_0x542f70=_0x542f70||0xc8;return function(_0x237346){if(_0x237346){return _0x1b707e['status'](_0x542f70)[_0xc103('0x1c')](_0x237346);}};}function respondWithFilteredResult(_0x2f5881,_0x1d35e6){return function(_0x4a656f){if(_0x4a656f){var _0x2f08c6=_0x4a656f[_0xc103('0x1d')],_0x1b78ad=_0x1d35e6[_0xc103('0x1e')],_0x3563f6=_0x1d35e6[_0xc103('0x1e')]+_0x1d35e6[_0xc103('0x1f')],_0x2575dd;if(_0x3563f6>=_0x2f08c6){_0x3563f6=_0x2f08c6;_0x2575dd=0xc8;}else{_0x2575dd=0xce;}_0x2f5881['status'](_0x2575dd);return _0x2f5881['set'](_0xc103('0x20'),_0x1b78ad+'-'+_0x3563f6+'/'+_0x2f08c6)[_0xc103('0x1c')](_0x4a656f);}return null;};}function patchUpdates(_0x47e66e){return function(_0x23efb1){try{jsonpatch[_0xc103('0x21')](_0x23efb1,_0x47e66e,!![]);}catch(_0x4b86fc){return BPromise[_0xc103('0x22')](_0x4b86fc);}return _0x23efb1[_0xc103('0x23')]();};}function saveUpdates(_0xdbaa24,_0x1e0138){return function(_0x30e82a){if(_0x30e82a){return _0x30e82a[_0xc103('0x24')](_0xdbaa24)[_0xc103('0x25')](function(_0xad5704){return _0xad5704;});}return null;};}function removeEntity(_0x20d1e9,_0x50bccb){return function(_0x1fa491){if(_0x1fa491){return _0x1fa491[_0xc103('0x26')]()[_0xc103('0x25')](function(){_0x20d1e9[_0xc103('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x1c94d3,_0x2df88b){return function(_0x1a4990){if(!_0x1a4990){_0x1c94d3['sendStatus'](0x194);}return _0x1a4990;};}function handleError(_0x14202c,_0x29931f){_0x29931f=_0x29931f||0x1f4;return function(_0x336f1d){logger['error'](_0x336f1d[_0xc103('0x27')]);if(_0x336f1d[_0xc103('0x28')]){delete _0x336f1d['name'];}_0x14202c[_0xc103('0x1a')](_0x29931f)[_0xc103('0x29')](_0x336f1d);};}exports[_0xc103('0x2a')]=function(_0x259d3e,_0x41f008){var _0x44d897={'raw':!![],'where':{'id':_0x259d3e[_0xc103('0x2b')]['id']}},_0x3b37e9={};_0x3b37e9[_0xc103('0x2c')]=_['keys'](db['ChatApplication'][_0xc103('0x2d')]);_0x3b37e9[_0xc103('0x2e')]=_[_0xc103('0x2f')](_0x259d3e['query']);_0x3b37e9[_0xc103('0x30')]=_['intersection'](_0x3b37e9['model'],_0x3b37e9['query']);_0x44d897[_0xc103('0x31')]=_[_0xc103('0x32')](_0x3b37e9[_0xc103('0x2c')],qs['fields'](_0x259d3e['query']['fields']));_0x44d897['attributes']=_0x44d897[_0xc103('0x31')][_0xc103('0x33')]?_0x44d897[_0xc103('0x31')]:_0x3b37e9[_0xc103('0x2c')];if(_0x259d3e[_0xc103('0x2e')][_0xc103('0x34')]){_0x44d897[_0xc103('0x35')]=[{'all':!![]}];}_0x44d897=_['merge']({},_0x44d897,_0x259d3e[_0xc103('0x36')]);return db[_0xc103('0x37')]['find'](_0x44d897)['then'](handleEntityNotFound(_0x41f008,null))[_0xc103('0x25')](respondWithResult(_0x41f008,null))['catch'](handleError(_0x41f008,null));};exports[_0xc103('0x24')]=function(_0x38460c,_0xed668f){if(_0x38460c[_0xc103('0x38')]['id']){delete _0x38460c['body']['id'];}return db['ChatApplication'][_0xc103('0x39')]({'where':{'id':_0x38460c[_0xc103('0x2b')]['id']}})['then'](handleEntityNotFound(_0xed668f,null))[_0xc103('0x25')](saveUpdates(_0x38460c['body'],null))[_0xc103('0x25')](respondWithResult(_0xed668f,null))[_0xc103('0x3a')](handleError(_0xed668f,null));};exports[_0xc103('0x26')]=function(_0x3b548b,_0x47f2d9){return db[_0xc103('0x37')][_0xc103('0x39')]({'where':{'id':_0x3b548b[_0xc103('0x2b')]['id']}})[_0xc103('0x25')](handleEntityNotFound(_0x47f2d9,null))['then'](removeEntity(_0x47f2d9,null))[_0xc103('0x3a')](handleError(_0x47f2d9,null));};
\ No newline at end of file
+var _0x1175=['mustache','path','sox','to-csv','crypto','jsforce','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','reject','update','then','destroy','end','error','stack','name','show','params','model','keys','ChatApplication','rawAttributes','query','filters','intersection','attributes','fields','includeAll','include','merge','body','find','catch','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird'];(function(_0x2d3bc0,_0x2b5a57){var _0x1a1b60=function(_0x46637f){while(--_0x46637f){_0x2d3bc0['push'](_0x2d3bc0['shift']());}};_0x1a1b60(++_0x2b5a57);}(_0x1175,0x149));var _0x5117=function(_0xb86cd0,_0x3eb43c){_0xb86cd0=_0xb86cd0-0x0;var _0x398dba=_0x1175[_0xb86cd0];return _0x398dba;};'use strict';var pdf=require(_0x5117('0x0'));var emlformat=require(_0x5117('0x1'));var rimraf=require(_0x5117('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x5117('0x3'));var rp=require(_0x5117('0x4'));var moment=require(_0x5117('0x5'));var BPromise=require(_0x5117('0x6'));var Mustache=require(_0x5117('0x7'));var util=require('util');var path=require(_0x5117('0x8'));var sox=require(_0x5117('0x9'));var csv=require(_0x5117('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x5117('0xb'));var jsforce=require(_0x5117('0xc'));var deskjs=require(_0x5117('0xd'));var toCsv=require('to-csv');var querystring=require(_0x5117('0xe'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x5117('0xf'));var qs=require(_0x5117('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5117('0x11'));var logger=require(_0x5117('0x12'))(_0x5117('0x13'));var utils=require('../../config/utils');var config=require(_0x5117('0x14'));var db=require(_0x5117('0x15'))['db'];function respondWithStatusCode(_0x4620b6,_0x29c2dd){_0x29c2dd=_0x29c2dd||0xcc;return function(_0x16e79a){if(_0x16e79a){return _0x4620b6[_0x5117('0x16')](_0x29c2dd);}return _0x4620b6[_0x5117('0x17')](_0x29c2dd)['end']();};}function respondWithResult(_0x9d0f3e,_0x34c9b1){_0x34c9b1=_0x34c9b1||0xc8;return function(_0x3f2973){if(_0x3f2973){return _0x9d0f3e[_0x5117('0x17')](_0x34c9b1)[_0x5117('0x18')](_0x3f2973);}};}function respondWithFilteredResult(_0x4319b6,_0x456699){return function(_0x517b68){if(_0x517b68){var _0x1a379f=_0x517b68[_0x5117('0x19')],_0x2666c1=_0x456699[_0x5117('0x1a')],_0x42bffe=_0x456699[_0x5117('0x1a')]+_0x456699[_0x5117('0x1b')],_0x4c58c5;if(_0x42bffe>=_0x1a379f){_0x42bffe=_0x1a379f;_0x4c58c5=0xc8;}else{_0x4c58c5=0xce;}_0x4319b6[_0x5117('0x17')](_0x4c58c5);return _0x4319b6[_0x5117('0x1c')](_0x5117('0x1d'),_0x2666c1+'-'+_0x42bffe+'/'+_0x1a379f)[_0x5117('0x18')](_0x517b68);}return null;};}function patchUpdates(_0x419f74){return function(_0x338d1c){try{jsonpatch[_0x5117('0x1e')](_0x338d1c,_0x419f74,!![]);}catch(_0x3a29ed){return BPromise[_0x5117('0x1f')](_0x3a29ed);}return _0x338d1c['save']();};}function saveUpdates(_0x11f891,_0x2cab7d){return function(_0x594d34){if(_0x594d34){return _0x594d34[_0x5117('0x20')](_0x11f891)[_0x5117('0x21')](function(_0x13b0ac){return _0x13b0ac;});}return null;};}function removeEntity(_0x58deb2,_0x480e96){return function(_0x2ee52e){if(_0x2ee52e){return _0x2ee52e[_0x5117('0x22')]()[_0x5117('0x21')](function(){_0x58deb2['status'](0xcc)[_0x5117('0x23')]();});}};}function handleEntityNotFound(_0x41a451,_0x1842ac){return function(_0x289a45){if(!_0x289a45){_0x41a451['sendStatus'](0x194);}return _0x289a45;};}function handleError(_0xb0d1f3,_0x2622fb){_0x2622fb=_0x2622fb||0x1f4;return function(_0x1a6690){logger[_0x5117('0x24')](_0x1a6690[_0x5117('0x25')]);if(_0x1a6690['name']){delete _0x1a6690[_0x5117('0x26')];}_0xb0d1f3['status'](_0x2622fb)['send'](_0x1a6690);};}exports[_0x5117('0x27')]=function(_0x5d3017,_0x11e6b3){var _0x29716e={'raw':!![],'where':{'id':_0x5d3017[_0x5117('0x28')]['id']}},_0x28a2f7={};_0x28a2f7[_0x5117('0x29')]=_[_0x5117('0x2a')](db[_0x5117('0x2b')][_0x5117('0x2c')]);_0x28a2f7[_0x5117('0x2d')]=_[_0x5117('0x2a')](_0x5d3017[_0x5117('0x2d')]);_0x28a2f7[_0x5117('0x2e')]=_[_0x5117('0x2f')](_0x28a2f7[_0x5117('0x29')],_0x28a2f7[_0x5117('0x2d')]);_0x29716e[_0x5117('0x30')]=_['intersection'](_0x28a2f7[_0x5117('0x29')],qs[_0x5117('0x31')](_0x5d3017[_0x5117('0x2d')]['fields']));_0x29716e[_0x5117('0x30')]=_0x29716e[_0x5117('0x30')]['length']?_0x29716e[_0x5117('0x30')]:_0x28a2f7['model'];if(_0x5d3017[_0x5117('0x2d')][_0x5117('0x32')]){_0x29716e[_0x5117('0x33')]=[{'all':!![]}];}_0x29716e=_[_0x5117('0x34')]({},_0x29716e,_0x5d3017['options']);return db['ChatApplication']['find'](_0x29716e)[_0x5117('0x21')](handleEntityNotFound(_0x11e6b3,null))[_0x5117('0x21')](respondWithResult(_0x11e6b3,null))['catch'](handleError(_0x11e6b3,null));};exports['update']=function(_0x3256c2,_0x5b5c27){if(_0x3256c2[_0x5117('0x35')]['id']){delete _0x3256c2[_0x5117('0x35')]['id'];}return db[_0x5117('0x2b')][_0x5117('0x36')]({'where':{'id':_0x3256c2[_0x5117('0x28')]['id']}})[_0x5117('0x21')](handleEntityNotFound(_0x5b5c27,null))[_0x5117('0x21')](saveUpdates(_0x3256c2['body'],null))[_0x5117('0x21')](respondWithResult(_0x5b5c27,null))[_0x5117('0x37')](handleError(_0x5b5c27,null));};exports['destroy']=function(_0x5238a4,_0x5baee4){return db['ChatApplication'][_0x5117('0x36')]({'where':{'id':_0x5238a4[_0x5117('0x28')]['id']}})[_0x5117('0x21')](handleEntityNotFound(_0x5baee4,null))[_0x5117('0x21')](removeEntity(_0x5baee4,null))[_0x5117('0x37')](handleError(_0x5baee4,null));};
\ No newline at end of file
diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js
index 9f502f0..697308a 100644
--- a/server/api/chatApplication/chatApplication.model.js
+++ b/server/api/chatApplication/chatApplication.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa9e0=['define','ChatApplication','utf8mb4_unicode_ci','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./chatApplication.attributes','exports'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0xa9e0,0x123));var _0x0a9e=function(_0x4c7fb5,_0x2548ef){_0x4c7fb5=_0x4c7fb5-0x0;var _0x2e10ac=_0xa9e0[_0x4c7fb5];return _0x2e10ac;};'use strict';var _=require(_0x0a9e('0x0'));var util=require(_0x0a9e('0x1'));var logger=require(_0x0a9e('0x2'))('api');var moment=require('moment');var BPromise=require(_0x0a9e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0a9e('0x4'));var rimraf=require(_0x0a9e('0x5'));var config=require(_0x0a9e('0x6'));var attributes=require(_0x0a9e('0x7'));module[_0x0a9e('0x8')]=function(_0x57b080,_0x219af0){return _0x57b080[_0x0a9e('0x9')](_0x0a9e('0xa'),attributes,{'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x0a9e('0xb')});};
\ No newline at end of file
+var _0xa9e0=['define','ChatApplication','utf8mb4_unicode_ci','lodash','util','../../config/logger','bluebird','path','rimraf','../../config/environment','./chatApplication.attributes','exports'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0xa9e0,0x123));var _0x0a9e=function(_0x3054be,_0x1bdc8b){_0x3054be=_0x3054be-0x0;var _0x3df150=_0xa9e0[_0x3054be];return _0x3df150;};'use strict';var _=require(_0x0a9e('0x0'));var util=require(_0x0a9e('0x1'));var logger=require(_0x0a9e('0x2'))('api');var moment=require('moment');var BPromise=require(_0x0a9e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x0a9e('0x4'));var rimraf=require(_0x0a9e('0x5'));var config=require(_0x0a9e('0x6'));var attributes=require(_0x0a9e('0x7'));module[_0x0a9e('0x8')]=function(_0x57b080,_0x219af0){return _0x57b080[_0x0a9e('0x9')](_0x0a9e('0xa'),attributes,{'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x0a9e('0xb')});};
\ No newline at end of file
diff --git a/server/api/chatApplication/chatApplication.rpc.js b/server/api/chatApplication/chatApplication.rpc.js
index 75fc718..251839d 100644
--- a/server/api/chatApplication/chatApplication.rpc.js
+++ b/server/api/chatApplication/chatApplication.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xed34=['client','http','request','then','ChatApplication,\x20%s,\x20%s','request\x20sent','debug','ChatApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise'];(function(_0x2dcca8,_0x3e9a74){var _0x5af2f3=function(_0x524375){while(--_0x524375){_0x2dcca8['push'](_0x2dcca8['shift']());}};_0x5af2f3(++_0x3e9a74);}(_0xed34,0x1e9));var _0x4ed3=function(_0x50cb9,_0x13cc1d){_0x50cb9=_0x50cb9-0x0;var _0xdcd78d=_0xed34[_0x50cb9];return _0xdcd78d;};'use strict';var _=require(_0x4ed3('0x0'));var util=require(_0x4ed3('0x1'));var moment=require(_0x4ed3('0x2'));var BPromise=require(_0x4ed3('0x3'));var rs=require(_0x4ed3('0x4'));var fs=require('fs');var Redis=require(_0x4ed3('0x5'));var db=require(_0x4ed3('0x6'))['db'];var utils=require(_0x4ed3('0x7'));var logger=require(_0x4ed3('0x8'))('rpc');var config=require(_0x4ed3('0x9'));var jayson=require(_0x4ed3('0xa'));var client=jayson[_0x4ed3('0xb')][_0x4ed3('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x57a24a,_0x5274a7,_0x4bfd82){return new BPromise(function(_0x4ae5b0,_0x265416){return client[_0x4ed3('0xd')](_0x57a24a,_0x4bfd82)[_0x4ed3('0xe')](function(_0x652266){logger['info'](_0x4ed3('0xf'),_0x5274a7,_0x4ed3('0x10'));logger[_0x4ed3('0x11')](_0x4ed3('0x12'),_0x5274a7,_0x4ed3('0x10'),JSON[_0x4ed3('0x13')](_0x652266));if(_0x652266[_0x4ed3('0x14')]){if(_0x652266[_0x4ed3('0x14')][_0x4ed3('0x15')]===0x1f4){logger[_0x4ed3('0x14')](_0x4ed3('0xf'),_0x5274a7,_0x652266[_0x4ed3('0x14')][_0x4ed3('0x16')]);return _0x265416(_0x652266[_0x4ed3('0x14')][_0x4ed3('0x16')]);}logger[_0x4ed3('0x14')](_0x4ed3('0xf'),_0x5274a7,_0x652266['error'][_0x4ed3('0x16')]);return _0x4ae5b0(_0x652266['error'][_0x4ed3('0x16')]);}else{logger[_0x4ed3('0x17')](_0x4ed3('0xf'),_0x5274a7,_0x4ed3('0x10'));_0x4ae5b0(_0x652266[_0x4ed3('0x18')][_0x4ed3('0x16')]);}})['catch'](function(_0x48fb0b){logger['error'](_0x4ed3('0xf'),_0x5274a7,_0x48fb0b);_0x265416(_0x48fb0b);});});}
\ No newline at end of file
+var _0xcff8=['info','ChatApplication,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xcff8,0x182));var _0x8cff=function(_0x4d65d1,_0x57c106){_0x4d65d1=_0x4d65d1-0x0;var _0x2e2c14=_0xcff8[_0x4d65d1];return _0x2e2c14;};'use strict';var _=require(_0x8cff('0x0'));var util=require(_0x8cff('0x1'));var moment=require(_0x8cff('0x2'));var BPromise=require(_0x8cff('0x3'));var rs=require(_0x8cff('0x4'));var fs=require('fs');var Redis=require(_0x8cff('0x5'));var db=require(_0x8cff('0x6'))['db'];var utils=require(_0x8cff('0x7'));var logger=require(_0x8cff('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0x8cff('0x9'));var client=jayson[_0x8cff('0xa')][_0x8cff('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1fc440,_0x317163,_0x3538fe){return new BPromise(function(_0x22f419,_0x26d41a){return client[_0x8cff('0xc')](_0x1fc440,_0x3538fe)['then'](function(_0x38e5f3){logger[_0x8cff('0xd')](_0x8cff('0xe'),_0x317163,_0x8cff('0xf'));logger[_0x8cff('0x10')]('ChatApplication,\x20%s,\x20%s,\x20%s',_0x317163,_0x8cff('0xf'),JSON[_0x8cff('0x11')](_0x38e5f3));if(_0x38e5f3[_0x8cff('0x12')]){if(_0x38e5f3[_0x8cff('0x12')]['code']===0x1f4){logger[_0x8cff('0x12')](_0x8cff('0xe'),_0x317163,_0x38e5f3['error'][_0x8cff('0x13')]);return _0x26d41a(_0x38e5f3[_0x8cff('0x12')][_0x8cff('0x13')]);}logger[_0x8cff('0x12')](_0x8cff('0xe'),_0x317163,_0x38e5f3['error']['message']);return _0x22f419(_0x38e5f3[_0x8cff('0x12')][_0x8cff('0x13')]);}else{logger['info'](_0x8cff('0xe'),_0x317163,'request\x20sent');_0x22f419(_0x38e5f3[_0x8cff('0x14')][_0x8cff('0x13')]);}})['catch'](function(_0x2bc014){logger[_0x8cff('0x12')]('ChatApplication,\x20%s,\x20%s',_0x317163,_0x2bc014);_0x26d41a(_0x2bc014);});});}
\ No newline at end of file
diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js
index 5d12651..46ed28d 100644
--- a/server/api/chatApplication/index.js
+++ b/server/api/chatApplication/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xbf53=['/:id','isAuthenticated','show','put','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatApplication.controller'];(function(_0x1b6d25,_0x1b18c2){var _0x10d084=function(_0xecb037){while(--_0xecb037){_0x1b6d25['push'](_0x1b6d25['shift']());}};_0x10d084(++_0x1b18c2);}(_0xbf53,0xf6));var _0x3bf5=function(_0x126eaf,_0x525848){_0x126eaf=_0x126eaf-0x0;var _0x58fc38=_0xbf53[_0x126eaf];return _0x58fc38;};'use strict';var multer=require(_0x3bf5('0x0'));var util=require(_0x3bf5('0x1'));var path=require(_0x3bf5('0x2'));var timeout=require(_0x3bf5('0x3'));var express=require('express');var router=express[_0x3bf5('0x4')]();var auth=require(_0x3bf5('0x5'));var interaction=require(_0x3bf5('0x6'));var config=require(_0x3bf5('0x7'));var controller=require(_0x3bf5('0x8'));router['get'](_0x3bf5('0x9'),auth[_0x3bf5('0xa')](),controller[_0x3bf5('0xb')]);router[_0x3bf5('0xc')]('/:id',auth[_0x3bf5('0xa')](),controller[_0x3bf5('0xd')]);router[_0x3bf5('0xe')](_0x3bf5('0x9'),auth[_0x3bf5('0xa')](),controller[_0x3bf5('0xf')]);module[_0x3bf5('0x10')]=router;
\ No newline at end of file
+var _0x92d6=['../../components/interaction/service','../../config/environment','./chatApplication.controller','get','isAuthenticated','put','/:id','update','delete','exports','util','path','connect-timeout','express','Router'];(function(_0x71bc43,_0x4216c1){var _0x4e1ec4=function(_0x544b32){while(--_0x544b32){_0x71bc43['push'](_0x71bc43['shift']());}};_0x4e1ec4(++_0x4216c1);}(_0x92d6,0x82));var _0x692d=function(_0x1a1639,_0xa100f1){_0x1a1639=_0x1a1639-0x0;var _0x12e31f=_0x92d6[_0x1a1639];return _0x12e31f;};'use strict';var multer=require('multer');var util=require(_0x692d('0x0'));var path=require(_0x692d('0x1'));var timeout=require(_0x692d('0x2'));var express=require(_0x692d('0x3'));var router=express[_0x692d('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x692d('0x5'));var config=require(_0x692d('0x6'));var controller=require(_0x692d('0x7'));router[_0x692d('0x8')]('/:id',auth[_0x692d('0x9')](),controller['show']);router[_0x692d('0xa')](_0x692d('0xb'),auth[_0x692d('0x9')](),controller[_0x692d('0xc')]);router[_0x692d('0xd')](_0x692d('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x692d('0xe')]=router;
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js
index 720569e..020f3f4 100644
--- a/server/api/chatGroup/chatGroup.attributes.js
+++ b/server/api/chatGroup/chatGroup.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x9e1a=['exports','STRING','sequelize'];(function(_0x25bea6,_0x10233d){var _0x41f17e=function(_0x2f5f01){while(--_0x2f5f01){_0x25bea6['push'](_0x25bea6['shift']());}};_0x41f17e(++_0x10233d);}(_0x9e1a,0x83));var _0xa9e1=function(_0x16dd42,_0x19fd33){_0x16dd42=_0x16dd42-0x0;var _0x5bc0c2=_0x9e1a[_0x16dd42];return _0x5bc0c2;};'use strict';var Sequelize=require(_0xa9e1('0x0'));module[_0xa9e1('0x1')]={'name':{'type':Sequelize[_0xa9e1('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0xa9e1('0x2')]},'write':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};
\ No newline at end of file
+var _0x1d8b=['sequelize','exports','STRING','BOOLEAN'];(function(_0xf0ec33,_0xd5b937){var _0x409006=function(_0x159164){while(--_0x159164){_0xf0ec33['push'](_0xf0ec33['shift']());}};_0x409006(++_0xd5b937);}(_0x1d8b,0xe4));var _0xb1d8=function(_0x297fd3,_0x115406){_0x297fd3=_0x297fd3-0x0;var _0x2af381=_0x1d8b[_0x297fd3];return _0x2af381;};'use strict';var Sequelize=require(_0xb1d8('0x0'));module[_0xb1d8('0x1')]={'name':{'type':Sequelize[_0xb1d8('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'write':{'type':Sequelize[_0xb1d8('0x3')],'defaultValue':!![]}};
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js
index 5012280..a5ff924 100644
--- a/server/api/chatGroup/chatGroup.controller.js
+++ b/server/api/chatGroup/chatGroup.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x79fa=['end','json','count','offset','limit','set','reject','save','update','then','destroy','stack','name','send','index','map','ChatGroup','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order','where','pick','filter','VIRTUAL','options','includeAll','findAll','rows','params','rawAttributes','merge','find','create','body','describe','getUnread','user','toInteger','addMembers','ids','omit','getMembers','findOne','User','sort','nolimit','removeMembers','addMessage','ChatGroupId','ChatInternalMessage','getMessages','$gte','format','YYYY-MM-DD\x20HH:mm:ss','html-pdf','rimraf','zip-dir','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/environment','defaults','redis','localhost','socket.io-emitter','./chatGroup.socket','register','jayson/promise','client','http','test','Sequelize','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~!@#$%^&-_=+[{]}.','request','info','ChatGroup,\x20%s,\x20%s','debug','request\x20sent','stringify','error','message','result','catch','sendStatus','status'];(function(_0x42f954,_0x1f20b7){var _0x3e6d8c=function(_0x465193){while(--_0x465193){_0x42f954['push'](_0x42f954['shift']());}};_0x3e6d8c(++_0x1f20b7);}(_0x79fa,0xab));var _0xa79f=function(_0x16e4b7,_0x22232b){_0x16e4b7=_0x16e4b7-0x0;var _0x313374=_0x79fa[_0x16e4b7];return _0x313374;};'use strict';var pdf=require(_0xa79f('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xa79f('0x1'));var zipdir=require(_0xa79f('0x2'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0xa79f('0x3'));var Mustache=require(_0xa79f('0x4'));var util=require(_0xa79f('0x5'));var path=require(_0xa79f('0x6'));var sox=require(_0xa79f('0x7'));var csv=require(_0xa79f('0x8'));var ejs=require(_0xa79f('0x9'));var fs=require('fs');var _=require(_0xa79f('0xa'));var squel=require(_0xa79f('0xb'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xa79f('0xc'));var Papa=require(_0xa79f('0xd'));var Redis=require(_0xa79f('0xe'));var authService=require(_0xa79f('0xf'));var qs=require(_0xa79f('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa79f('0x11'));var logger=require(_0xa79f('0x12'))('api');var utils=require('../../config/utils');var config=require(_0xa79f('0x13'));var db=require('../../mysqldb')['db'];config['redis']=_[_0xa79f('0x14')](config[_0xa79f('0x15')],{'host':_0xa79f('0x16'),'port':0x18eb});var socket=require(_0xa79f('0x17'))(new Redis(config[_0xa79f('0x15')]));require(_0xa79f('0x18'))[_0xa79f('0x19')](socket);var jayson=require(_0xa79f('0x1a'));var client=jayson[_0xa79f('0x1b')][_0xa79f('0x1c')]({'port':0x232a});function checkPasswordPattern(_0x32bee5,_0x99ee37,_0x5af4f1){if(_0x5af4f1){var _0x401da4=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x401da4[_0xa79f('0x1d')](_0x99ee37)){return _0x32bee5;}else{throw new db[(_0xa79f('0x1e'))][(_0xa79f('0x1f'))](_0xa79f('0x20'));}}else{return _0x32bee5;}}function respondWithRpcPromise(_0x5a381f,_0xa604d0,_0xe26227,_0x3c423e){return new BPromise(function(_0x1ebbee,_0x51a2d9){var _0x5a6efe=_0x3c423e||client;return _0x5a6efe[_0xa79f('0x21')](_0x5a381f,_0xe26227)['then'](function(_0x592e66){logger[_0xa79f('0x22')](_0xa79f('0x23'),_0xa604d0,'request\x20sent');logger[_0xa79f('0x24')]('ChatGroup,\x20%s,\x20%s,\x20%s',_0xa604d0,_0xa79f('0x25'),JSON[_0xa79f('0x26')](_0x592e66));if(_0x592e66[_0xa79f('0x27')]){if(_0x592e66['error']['code']===0x1f4){logger[_0xa79f('0x27')](_0xa79f('0x23'),_0xa604d0,_0x592e66[_0xa79f('0x27')][_0xa79f('0x28')]);return _0x51a2d9(_0x592e66[_0xa79f('0x27')][_0xa79f('0x28')]);}logger[_0xa79f('0x27')](_0xa79f('0x23'),_0xa604d0,_0x592e66[_0xa79f('0x27')][_0xa79f('0x28')]);return _0x1ebbee(_0x592e66[_0xa79f('0x27')][_0xa79f('0x28')]);}else{logger['info']('ChatGroup,\x20%s,\x20%s',_0xa604d0,'request\x20sent');_0x1ebbee(_0x592e66[_0xa79f('0x29')]['message']);}})[_0xa79f('0x2a')](function(_0x15985a){logger['error'](_0xa79f('0x23'),_0xa604d0,_0x15985a);_0x51a2d9(_0x15985a);});});}function respondWithStatusCode(_0x40ede3,_0x35a93f){_0x35a93f=_0x35a93f||0xcc;return function(_0x88258d){if(_0x88258d){return _0x40ede3[_0xa79f('0x2b')](_0x35a93f);}return _0x40ede3[_0xa79f('0x2c')](_0x35a93f)[_0xa79f('0x2d')]();};}function respondWithResult(_0x3dacee,_0x25d889){_0x25d889=_0x25d889||0xc8;return function(_0x1931d7){if(_0x1931d7){return _0x3dacee['status'](_0x25d889)[_0xa79f('0x2e')](_0x1931d7);}};}function respondWithFilteredResult(_0x3ac6e3,_0x19ca82){return function(_0x4f1b49){if(_0x4f1b49){var _0x565873=_0x4f1b49[_0xa79f('0x2f')],_0x1d5c3a=_0x19ca82[_0xa79f('0x30')],_0x84544f=_0x19ca82[_0xa79f('0x30')]+_0x19ca82[_0xa79f('0x31')],_0x1c30a1;if(_0x84544f>=_0x565873){_0x84544f=_0x565873;_0x1c30a1=0xc8;}else{_0x1c30a1=0xce;}_0x3ac6e3['status'](_0x1c30a1);return _0x3ac6e3[_0xa79f('0x32')]('Content-Range',_0x1d5c3a+'-'+_0x84544f+'/'+_0x565873)['json'](_0x4f1b49);}return null;};}function patchUpdates(_0x33156){return function(_0x3a727a){try{jsonpatch['apply'](_0x3a727a,_0x33156,!![]);}catch(_0x50fca2){return BPromise[_0xa79f('0x33')](_0x50fca2);}return _0x3a727a[_0xa79f('0x34')]();};}function saveUpdates(_0x2ff57b,_0x2111c4){return function(_0x52446f){if(_0x52446f){return _0x52446f[_0xa79f('0x35')](_0x2ff57b)[_0xa79f('0x36')](function(_0xdce777){return _0xdce777;});}return null;};}function removeEntity(_0x397b5a,_0x1051c9){return function(_0x506f67){if(_0x506f67){return _0x506f67[_0xa79f('0x37')]()[_0xa79f('0x36')](function(){_0x397b5a[_0xa79f('0x2c')](0xcc)[_0xa79f('0x2d')]();});}};}function handleEntityNotFound(_0x2a80ed,_0x10d655){return function(_0x290855){if(!_0x290855){_0x2a80ed[_0xa79f('0x2b')](0x194);}return _0x290855;};}function handleError(_0x5f2557,_0x5c0cfd){_0x5c0cfd=_0x5c0cfd||0x1f4;return function(_0x48efbb){logger[_0xa79f('0x27')](_0x48efbb[_0xa79f('0x38')]);if(_0x48efbb[_0xa79f('0x39')]){delete _0x48efbb[_0xa79f('0x39')];}_0x5f2557[_0xa79f('0x2c')](_0x5c0cfd)[_0xa79f('0x3a')](_0x48efbb);};}exports[_0xa79f('0x3b')]=function(_0x49ec46,_0x25ba00){var _0x2cfb04={},_0x17d7d0={},_0x54e9da={'count':0x0,'rows':[]};var _0x1317f2=_[_0xa79f('0x3c')](db[_0xa79f('0x3d')]['rawAttributes'],function(_0x26edae){return{'name':_0x26edae['fieldName'],'type':_0x26edae[_0xa79f('0x3e')][_0xa79f('0x3f')]};});_0x17d7d0[_0xa79f('0x40')]=_[_0xa79f('0x3c')](_0x1317f2,_0xa79f('0x39'));_0x17d7d0[_0xa79f('0x41')]=_[_0xa79f('0x42')](_0x49ec46[_0xa79f('0x41')]);_0x17d7d0[_0xa79f('0x43')]=_[_0xa79f('0x44')](_0x17d7d0[_0xa79f('0x40')],_0x17d7d0[_0xa79f('0x41')]);_0x2cfb04[_0xa79f('0x45')]=_[_0xa79f('0x44')](_0x17d7d0[_0xa79f('0x40')],qs[_0xa79f('0x46')](_0x49ec46[_0xa79f('0x41')][_0xa79f('0x46')]));_0x2cfb04[_0xa79f('0x45')]=_0x2cfb04[_0xa79f('0x45')][_0xa79f('0x47')]?_0x2cfb04['attributes']:_0x17d7d0['model'];if(!_0x49ec46[_0xa79f('0x41')][_0xa79f('0x48')]('nolimit')){_0x2cfb04[_0xa79f('0x31')]=qs['limit'](_0x49ec46[_0xa79f('0x41')][_0xa79f('0x31')]);_0x2cfb04[_0xa79f('0x30')]=qs[_0xa79f('0x30')](_0x49ec46[_0xa79f('0x41')][_0xa79f('0x30')]);}_0x2cfb04[_0xa79f('0x49')]=qs['sort'](_0x49ec46[_0xa79f('0x41')]['sort']);_0x2cfb04[_0xa79f('0x4a')]=qs[_0xa79f('0x43')](_[_0xa79f('0x4b')](_0x49ec46[_0xa79f('0x41')],_0x17d7d0['filters']));if(_0x49ec46[_0xa79f('0x41')][_0xa79f('0x4c')]){_0x2cfb04[_0xa79f('0x4a')]=_['merge'](_0x2cfb04['where'],{'$or':_[_0xa79f('0x3c')](_0x1317f2,function(_0x40dfb8){if(_0x40dfb8[_0xa79f('0x3e')]!==_0xa79f('0x4d')){var _0x5835b5={};_0x5835b5[_0x40dfb8[_0xa79f('0x39')]]={'$like':'%'+_0x49ec46['query']['filter']+'%'};return _0x5835b5;}})});}_0x2cfb04=_['merge']({},_0x2cfb04,_0x49ec46[_0xa79f('0x4e')]);var _0xb8ab05={'where':_0x2cfb04[_0xa79f('0x4a')]};return db['ChatGroup']['count'](_0xb8ab05)[_0xa79f('0x36')](function(_0x12f37c){_0x54e9da['count']=_0x12f37c;if(_0x49ec46['query'][_0xa79f('0x4f')]){_0x2cfb04['include']=[{'all':!![]}];}return db[_0xa79f('0x3d')][_0xa79f('0x50')](_0x2cfb04);})['then'](function(_0x1dfc01){_0x54e9da[_0xa79f('0x51')]=_0x1dfc01;return _0x54e9da;})[_0xa79f('0x36')](respondWithFilteredResult(_0x25ba00,_0x2cfb04))[_0xa79f('0x2a')](handleError(_0x25ba00,null));};exports['show']=function(_0x2e177f,_0x4a8a30){var _0x56011d={'raw':!![],'where':{'id':_0x2e177f[_0xa79f('0x52')]['id']}},_0xa3cc07={};_0xa3cc07[_0xa79f('0x40')]=_[_0xa79f('0x42')](db[_0xa79f('0x3d')][_0xa79f('0x53')]);_0xa3cc07[_0xa79f('0x41')]=_['keys'](_0x2e177f[_0xa79f('0x41')]);_0xa3cc07[_0xa79f('0x43')]=_['intersection'](_0xa3cc07['model'],_0xa3cc07[_0xa79f('0x41')]);_0x56011d[_0xa79f('0x45')]=_[_0xa79f('0x44')](_0xa3cc07[_0xa79f('0x40')],qs[_0xa79f('0x46')](_0x2e177f['query']['fields']));_0x56011d[_0xa79f('0x45')]=_0x56011d[_0xa79f('0x45')][_0xa79f('0x47')]?_0x56011d[_0xa79f('0x45')]:_0xa3cc07['model'];if(_0x2e177f[_0xa79f('0x41')][_0xa79f('0x4f')]){_0x56011d['include']=[{'all':!![]}];}_0x56011d=_[_0xa79f('0x54')]({},_0x56011d,_0x2e177f['options']);return db[_0xa79f('0x3d')][_0xa79f('0x55')](_0x56011d)[_0xa79f('0x36')](handleEntityNotFound(_0x4a8a30,null))[_0xa79f('0x36')](respondWithResult(_0x4a8a30,null))[_0xa79f('0x2a')](handleError(_0x4a8a30,null));};exports[_0xa79f('0x56')]=function(_0x3696fc,_0x450146){return db[_0xa79f('0x3d')][_0xa79f('0x56')](_0x3696fc[_0xa79f('0x57')],{})['then'](respondWithResult(_0x450146,0xc9))[_0xa79f('0x2a')](handleError(_0x450146,null));};exports[_0xa79f('0x35')]=function(_0x511a62,_0x99d69f){if(_0x511a62['body']['id']){delete _0x511a62[_0xa79f('0x57')]['id'];}return db[_0xa79f('0x3d')]['find']({'where':{'id':_0x511a62['params']['id']}})[_0xa79f('0x36')](handleEntityNotFound(_0x99d69f,null))[_0xa79f('0x36')](saveUpdates(_0x511a62[_0xa79f('0x57')],null))['then'](respondWithResult(_0x99d69f,null))[_0xa79f('0x2a')](handleError(_0x99d69f,null));};exports[_0xa79f('0x37')]=function(_0x3ffec2,_0x84aa9b){return db[_0xa79f('0x3d')]['find']({'where':{'id':_0x3ffec2['params']['id']}})[_0xa79f('0x36')](handleEntityNotFound(_0x84aa9b,null))[_0xa79f('0x36')](removeEntity(_0x84aa9b,null))[_0xa79f('0x2a')](handleError(_0x84aa9b,null));};exports[_0xa79f('0x58')]=function(_0x4b149d,_0x400723){return db['ChatGroup'][_0xa79f('0x58')]()[_0xa79f('0x36')](respondWithResult(_0x400723,null))[_0xa79f('0x2a')](handleError(_0x400723,null));};exports[_0xa79f('0x59')]=function(_0xbfee0f,_0xfade93,_0x4f4123){return db['ChatInternalMessage'][_0xa79f('0x2f')]({'where':{'ChatGroupId':_0xbfee0f['params']['id'],'ToId':_0xbfee0f[_0xa79f('0x5a')]['id'],'read':![]}})['then'](function(_0x295f68){return{'id':_[_0xa79f('0x5b')](_0xbfee0f[_0xa79f('0x52')]['id']),'count':_0x295f68};})[_0xa79f('0x36')](respondWithResult(_0xfade93,null))[_0xa79f('0x2a')](handleError(_0xfade93,null));};exports[_0xa79f('0x5c')]=function(_0x424816,_0x12b745,_0x1e81d2){return db[_0xa79f('0x3d')][_0xa79f('0x55')]({'where':{'id':_0x424816[_0xa79f('0x52')]['id']}})[_0xa79f('0x36')](handleEntityNotFound(_0x12b745,null))[_0xa79f('0x36')](function(_0x45633b){if(_0x45633b){return _0x45633b[_0xa79f('0x5c')](_0x424816['body'][_0xa79f('0x5d')],_[_0xa79f('0x5e')](_0x424816[_0xa79f('0x57')],[_0xa79f('0x5d'),'id'])||{});}})[_0xa79f('0x36')](respondWithResult(_0x12b745,null))[_0xa79f('0x2a')](handleError(_0x12b745,null));};exports[_0xa79f('0x5f')]=function(_0x4a960a,_0x3cc6af,_0x56083b){var _0xe4baf1={};var _0x644e63={};var _0x46d2e6;var _0x2a2b3f;return db[_0xa79f('0x3d')][_0xa79f('0x60')]({'where':{'id':_0x4a960a['params']['id']}})[_0xa79f('0x36')](handleEntityNotFound(_0x3cc6af,null))[_0xa79f('0x36')](function(_0x1b51eb){if(_0x1b51eb){_0x46d2e6=_0x1b51eb;_0x644e63[_0xa79f('0x40')]=_[_0xa79f('0x42')](db[_0xa79f('0x61')][_0xa79f('0x53')]);_0x644e63[_0xa79f('0x41')]=_[_0xa79f('0x42')](_0x4a960a['query']);_0x644e63['filters']=_['intersection'](_0x644e63[_0xa79f('0x40')],_0x644e63[_0xa79f('0x41')]);_0xe4baf1[_0xa79f('0x45')]=_[_0xa79f('0x44')](_0x644e63['model'],qs['fields'](_0x4a960a[_0xa79f('0x41')][_0xa79f('0x46')]));_0xe4baf1['attributes']=_0xe4baf1[_0xa79f('0x45')][_0xa79f('0x47')]?_0xe4baf1[_0xa79f('0x45')]:_0x644e63[_0xa79f('0x40')];_0xe4baf1[_0xa79f('0x49')]=qs[_0xa79f('0x62')](_0x4a960a[_0xa79f('0x41')]['sort']);_0xe4baf1[_0xa79f('0x4a')]=qs['filters'](_[_0xa79f('0x4b')](_0x4a960a[_0xa79f('0x41')],_0x644e63['filters']));if(_0x4a960a[_0xa79f('0x41')]['filter']){_0xe4baf1[_0xa79f('0x4a')]=_[_0xa79f('0x54')](_0xe4baf1[_0xa79f('0x4a')],{'$or':_['map'](_0xe4baf1[_0xa79f('0x45')],function(_0x10df41){var _0xae528b={};_0xae528b[_0x10df41]={'$like':'%'+_0x4a960a['query'][_0xa79f('0x4c')]+'%'};return _0xae528b;})});}_0xe4baf1=_[_0xa79f('0x54')]({},_0xe4baf1,_0x4a960a['options']);return _0x46d2e6['getMembers'](_0xe4baf1);}})[_0xa79f('0x36')](function(_0x295135){if(_0x295135){_0x2a2b3f=_0x295135[_0xa79f('0x47')];if(!_0x4a960a['query']['hasOwnProperty'](_0xa79f('0x63'))){_0xe4baf1[_0xa79f('0x31')]=qs[_0xa79f('0x31')](_0x4a960a[_0xa79f('0x41')][_0xa79f('0x31')]);_0xe4baf1[_0xa79f('0x30')]=qs[_0xa79f('0x30')](_0x4a960a[_0xa79f('0x41')][_0xa79f('0x30')]);}return _0x46d2e6[_0xa79f('0x5f')](_0xe4baf1);}})[_0xa79f('0x36')](function(_0x59e5b3){if(_0x59e5b3){return _0x59e5b3?{'count':_0x2a2b3f,'rows':_0x59e5b3}:null;}})[_0xa79f('0x36')](respondWithResult(_0x3cc6af,null))['catch'](handleError(_0x3cc6af,null));};exports[_0xa79f('0x64')]=function(_0x562e7b,_0x589b8f,_0x27e885){return db['ChatGroup'][_0xa79f('0x55')]({'where':{'id':_0x562e7b[_0xa79f('0x52')]['id']}})['then'](handleEntityNotFound(_0x589b8f,null))[_0xa79f('0x36')](function(_0x6f572){if(_0x6f572){return _0x6f572['removeMembers'](_0x562e7b[_0xa79f('0x41')][_0xa79f('0x5d')]);}})[_0xa79f('0x36')](respondWithStatusCode(_0x589b8f,null))['catch'](handleError(_0x589b8f,null));};exports[_0xa79f('0x65')]=function(_0x505869,_0x3fa19c,_0x5aedcd){if(_0x505869[_0xa79f('0x57')]['id']){delete _0x505869[_0xa79f('0x57')]['id'];}return db[_0xa79f('0x3d')][_0xa79f('0x55')]({'where':{'id':_0x505869[_0xa79f('0x52')]['id']}})['then'](handleEntityNotFound(_0x3fa19c,null))[_0xa79f('0x36')](function(_0x4a229f){if(_0x4a229f){_0x505869[_0xa79f('0x57')][_0xa79f('0x66')]=_0x4a229f['id'];return db[_0xa79f('0x67')]['create'](_0x505869['body']);}})[_0xa79f('0x36')](respondWithResult(_0x3fa19c,null))[_0xa79f('0x2a')](handleError(_0x3fa19c,null));};exports[_0xa79f('0x68')]=function(_0x503c7d,_0x4d27d9,_0x368927){var _0x47fced={};var _0x59eb3c={};var _0x3b90e6;var _0xfcbb49;return db[_0xa79f('0x3d')][_0xa79f('0x60')]({'where':{'id':_0x503c7d[_0xa79f('0x52')]['id']}})[_0xa79f('0x36')](handleEntityNotFound(_0x4d27d9,null))[_0xa79f('0x36')](function(_0x21202b){if(_0x21202b){_0x3b90e6=_0x21202b;_0x59eb3c[_0xa79f('0x40')]=_[_0xa79f('0x42')](db[_0xa79f('0x67')][_0xa79f('0x53')]);_0x59eb3c[_0xa79f('0x41')]=_[_0xa79f('0x42')](_0x503c7d['query']);_0x59eb3c[_0xa79f('0x43')]=_[_0xa79f('0x44')](_0x59eb3c[_0xa79f('0x40')],_0x59eb3c[_0xa79f('0x41')]);_0x47fced[_0xa79f('0x45')]=_['intersection'](_0x59eb3c['model'],qs['fields'](_0x503c7d[_0xa79f('0x41')][_0xa79f('0x46')]));_0x47fced[_0xa79f('0x45')]=_0x47fced[_0xa79f('0x45')]['length']?_0x47fced['attributes']:_0x59eb3c['model'];_0x47fced[_0xa79f('0x49')]=qs[_0xa79f('0x62')](_0x503c7d['query']['sort']);_0x47fced[_0xa79f('0x4a')]=qs[_0xa79f('0x43')](_[_0xa79f('0x4b')](_0x503c7d[_0xa79f('0x41')],_0x59eb3c['filters']));if(_0x503c7d[_0xa79f('0x41')][_0xa79f('0x4c')]){_0x47fced[_0xa79f('0x4a')]=_[_0xa79f('0x54')](_0x47fced[_0xa79f('0x4a')],{'$or':_['map'](_0x47fced['attributes'],function(_0x2531e2){var _0x251217={};_0x251217[_0x2531e2]={'$like':'%'+_0x503c7d[_0xa79f('0x41')][_0xa79f('0x4c')]+'%'};return _0x251217;})});}if(_0x503c7d[_0xa79f('0x41')][_0xa79f('0x69')]){var _0x472310=_0x503c7d[_0xa79f('0x41')][_0xa79f('0x69')]['split'](',');var _0x40c0e6={};_0x40c0e6[_0x472310[0x0]]={'$gte':moment(_0x472310[0x1])[_0xa79f('0x6a')](_0xa79f('0x6b'))};_0x47fced[_0xa79f('0x4a')]=_[_0xa79f('0x54')](_0x47fced[_0xa79f('0x4a')],_0x40c0e6);}_0x47fced=_['merge']({},_0x47fced,_0x503c7d[_0xa79f('0x4e')]);return _0x3b90e6[_0xa79f('0x68')](_0x47fced);}})['then'](function(_0x547026){if(_0x547026){_0xfcbb49=_0x547026[_0xa79f('0x47')];if(!_0x503c7d['query'][_0xa79f('0x48')](_0xa79f('0x63'))){_0x47fced[_0xa79f('0x31')]=qs[_0xa79f('0x31')](_0x503c7d[_0xa79f('0x41')][_0xa79f('0x31')]);_0x47fced['offset']=qs[_0xa79f('0x30')](_0x503c7d[_0xa79f('0x41')][_0xa79f('0x30')]);}return _0x3b90e6[_0xa79f('0x68')](_0x47fced);}})[_0xa79f('0x36')](function(_0x12c49e){if(_0x12c49e){return _0x12c49e?{'count':_0xfcbb49,'rows':_0x12c49e}:null;}})['then'](respondWithResult(_0x4d27d9,null))['catch'](handleError(_0x4d27d9,null));};
\ No newline at end of file
+var _0xaa2d=['where','filters','pick','filter','merge','VIRTUAL','options','include','findAll','show','params','length','includeAll','find','create','body','describe','user','toInteger','addMembers','ids','omit','getMembers','findOne','User','keys','sort','removeMembers','addMessage','ChatGroupId','ChatInternalMessage','getMessages','$gte','format','YYYY-MM-DD\x20HH:mm:ss','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/utils','../../config/environment','redis','defaults','localhost','socket.io-emitter','register','client','http','Sequelize','request','then','info','ChatGroup,\x20%s,\x20%s','request\x20sent','debug','ChatGroup,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','sendStatus','status','json','count','offset','limit','set','Content-Range','apply','reject','update','destroy','end','name','send','index','map','ChatGroup','rawAttributes','fieldName','key','query','intersection','model','attributes','fields','hasOwnProperty','nolimit','order'];(function(_0x27f402,_0x343e5b){var _0x234c98=function(_0x162d24){while(--_0x162d24){_0x27f402['push'](_0x27f402['shift']());}};_0x234c98(++_0x343e5b);}(_0xaa2d,0x1df));var _0xdaa2=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xaa2d[_0x3dd15e];return _0x231fd0;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xdaa2('0x0'));var rimraf=require(_0xdaa2('0x1'));var zipdir=require(_0xdaa2('0x2'));var jsonpatch=require(_0xdaa2('0x3'));var rp=require(_0xdaa2('0x4'));var moment=require(_0xdaa2('0x5'));var BPromise=require(_0xdaa2('0x6'));var Mustache=require(_0xdaa2('0x7'));var util=require(_0xdaa2('0x8'));var path=require(_0xdaa2('0x9'));var sox=require(_0xdaa2('0xa'));var csv=require(_0xdaa2('0xb'));var ejs=require(_0xdaa2('0xc'));var fs=require('fs');var _=require(_0xdaa2('0xd'));var squel=require(_0xdaa2('0xe'));var crypto=require(_0xdaa2('0xf'));var jsforce=require(_0xdaa2('0x10'));var deskjs=require(_0xdaa2('0x11'));var toCsv=require('to-csv');var querystring=require(_0xdaa2('0x12'));var Papa=require(_0xdaa2('0x13'));var Redis=require(_0xdaa2('0x14'));var authService=require(_0xdaa2('0x15'));var qs=require(_0xdaa2('0x16'));var as=require(_0xdaa2('0x17'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')('api');var utils=require(_0xdaa2('0x18'));var config=require(_0xdaa2('0x19'));var db=require('../../mysqldb')['db'];config[_0xdaa2('0x1a')]=_[_0xdaa2('0x1b')](config[_0xdaa2('0x1a')],{'host':_0xdaa2('0x1c'),'port':0x18eb});var socket=require(_0xdaa2('0x1d'))(new Redis(config[_0xdaa2('0x1a')]));require('./chatGroup.socket')[_0xdaa2('0x1e')](socket);var jayson=require('jayson/promise');var client=jayson[_0xdaa2('0x1f')][_0xdaa2('0x20')]({'port':0x232a});function checkPasswordPattern(_0x21169f,_0x8115d9,_0x250f04){if(_0x250f04){var _0x195e54=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x195e54['test'](_0x8115d9)){return _0x21169f;}else{throw new db[(_0xdaa2('0x21'))]['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~!@#$%^&-_=+[{]}.');}}else{return _0x21169f;}}function respondWithRpcPromise(_0x451113,_0xb03878,_0x37b5f9,_0x4f9782){return new BPromise(function(_0x288c2d,_0x24f31e){var _0x3919f9=_0x4f9782||client;return _0x3919f9[_0xdaa2('0x22')](_0x451113,_0x37b5f9)[_0xdaa2('0x23')](function(_0x21c968){logger[_0xdaa2('0x24')](_0xdaa2('0x25'),_0xb03878,_0xdaa2('0x26'));logger[_0xdaa2('0x27')](_0xdaa2('0x28'),_0xb03878,_0xdaa2('0x26'),JSON[_0xdaa2('0x29')](_0x21c968));if(_0x21c968[_0xdaa2('0x2a')]){if(_0x21c968[_0xdaa2('0x2a')][_0xdaa2('0x2b')]===0x1f4){logger[_0xdaa2('0x2a')]('ChatGroup,\x20%s,\x20%s',_0xb03878,_0x21c968['error'][_0xdaa2('0x2c')]);return _0x24f31e(_0x21c968[_0xdaa2('0x2a')][_0xdaa2('0x2c')]);}logger['error']('ChatGroup,\x20%s,\x20%s',_0xb03878,_0x21c968[_0xdaa2('0x2a')][_0xdaa2('0x2c')]);return _0x288c2d(_0x21c968[_0xdaa2('0x2a')]['message']);}else{logger[_0xdaa2('0x24')]('ChatGroup,\x20%s,\x20%s',_0xb03878,_0xdaa2('0x26'));_0x288c2d(_0x21c968[_0xdaa2('0x2d')][_0xdaa2('0x2c')]);}})[_0xdaa2('0x2e')](function(_0xc6664b){logger[_0xdaa2('0x2a')](_0xdaa2('0x25'),_0xb03878,_0xc6664b);_0x24f31e(_0xc6664b);});});}function respondWithStatusCode(_0x3da7ca,_0x20687f){_0x20687f=_0x20687f||0xcc;return function(_0x1d8e2f){if(_0x1d8e2f){return _0x3da7ca[_0xdaa2('0x2f')](_0x20687f);}return _0x3da7ca[_0xdaa2('0x30')](_0x20687f)['end']();};}function respondWithResult(_0xb8167,_0x5de1a9){_0x5de1a9=_0x5de1a9||0xc8;return function(_0x573edc){if(_0x573edc){return _0xb8167[_0xdaa2('0x30')](_0x5de1a9)[_0xdaa2('0x31')](_0x573edc);}};}function respondWithFilteredResult(_0xfb8d2e,_0x318f94){return function(_0x513bb5){if(_0x513bb5){var _0xfa59d3=_0x513bb5[_0xdaa2('0x32')],_0x5e5abc=_0x318f94[_0xdaa2('0x33')],_0x468912=_0x318f94[_0xdaa2('0x33')]+_0x318f94[_0xdaa2('0x34')],_0x2c9344;if(_0x468912>=_0xfa59d3){_0x468912=_0xfa59d3;_0x2c9344=0xc8;}else{_0x2c9344=0xce;}_0xfb8d2e['status'](_0x2c9344);return _0xfb8d2e[_0xdaa2('0x35')](_0xdaa2('0x36'),_0x5e5abc+'-'+_0x468912+'/'+_0xfa59d3)['json'](_0x513bb5);}return null;};}function patchUpdates(_0x56a1e6){return function(_0x5462e6){try{jsonpatch[_0xdaa2('0x37')](_0x5462e6,_0x56a1e6,!![]);}catch(_0x4a3791){return BPromise[_0xdaa2('0x38')](_0x4a3791);}return _0x5462e6['save']();};}function saveUpdates(_0x54e681,_0x5ee8e3){return function(_0x41bdb7){if(_0x41bdb7){return _0x41bdb7[_0xdaa2('0x39')](_0x54e681)[_0xdaa2('0x23')](function(_0x4d58d5){return _0x4d58d5;});}return null;};}function removeEntity(_0x573d5d,_0x41d387){return function(_0x2b4a82){if(_0x2b4a82){return _0x2b4a82[_0xdaa2('0x3a')]()[_0xdaa2('0x23')](function(){_0x573d5d[_0xdaa2('0x30')](0xcc)[_0xdaa2('0x3b')]();});}};}function handleEntityNotFound(_0x2715a8,_0x476bb5){return function(_0x436a81){if(!_0x436a81){_0x2715a8['sendStatus'](0x194);}return _0x436a81;};}function handleError(_0x3b36b8,_0xdc1de7){_0xdc1de7=_0xdc1de7||0x1f4;return function(_0x24928d){logger[_0xdaa2('0x2a')](_0x24928d['stack']);if(_0x24928d[_0xdaa2('0x3c')]){delete _0x24928d[_0xdaa2('0x3c')];}_0x3b36b8['status'](_0xdc1de7)[_0xdaa2('0x3d')](_0x24928d);};}exports[_0xdaa2('0x3e')]=function(_0x4d8d73,_0x2cca44){var _0x35c57e={},_0x143d84={},_0x574bed={'count':0x0,'rows':[]};var _0x56ff65=_[_0xdaa2('0x3f')](db[_0xdaa2('0x40')][_0xdaa2('0x41')],function(_0x40378c){return{'name':_0x40378c[_0xdaa2('0x42')],'type':_0x40378c['type'][_0xdaa2('0x43')]};});_0x143d84['model']=_[_0xdaa2('0x3f')](_0x56ff65,_0xdaa2('0x3c'));_0x143d84[_0xdaa2('0x44')]=_['keys'](_0x4d8d73[_0xdaa2('0x44')]);_0x143d84['filters']=_[_0xdaa2('0x45')](_0x143d84[_0xdaa2('0x46')],_0x143d84['query']);_0x35c57e[_0xdaa2('0x47')]=_[_0xdaa2('0x45')](_0x143d84['model'],qs[_0xdaa2('0x48')](_0x4d8d73[_0xdaa2('0x44')][_0xdaa2('0x48')]));_0x35c57e['attributes']=_0x35c57e[_0xdaa2('0x47')]['length']?_0x35c57e['attributes']:_0x143d84['model'];if(!_0x4d8d73[_0xdaa2('0x44')][_0xdaa2('0x49')](_0xdaa2('0x4a'))){_0x35c57e[_0xdaa2('0x34')]=qs['limit'](_0x4d8d73[_0xdaa2('0x44')][_0xdaa2('0x34')]);_0x35c57e[_0xdaa2('0x33')]=qs[_0xdaa2('0x33')](_0x4d8d73['query']['offset']);}_0x35c57e[_0xdaa2('0x4b')]=qs['sort'](_0x4d8d73[_0xdaa2('0x44')]['sort']);_0x35c57e[_0xdaa2('0x4c')]=qs[_0xdaa2('0x4d')](_[_0xdaa2('0x4e')](_0x4d8d73[_0xdaa2('0x44')],_0x143d84[_0xdaa2('0x4d')]));if(_0x4d8d73[_0xdaa2('0x44')][_0xdaa2('0x4f')]){_0x35c57e[_0xdaa2('0x4c')]=_[_0xdaa2('0x50')](_0x35c57e[_0xdaa2('0x4c')],{'$or':_[_0xdaa2('0x3f')](_0x56ff65,function(_0x613937){if(_0x613937['type']!==_0xdaa2('0x51')){var _0x5dc7d5={};_0x5dc7d5[_0x613937[_0xdaa2('0x3c')]]={'$like':'%'+_0x4d8d73[_0xdaa2('0x44')]['filter']+'%'};return _0x5dc7d5;}})});}_0x35c57e=_[_0xdaa2('0x50')]({},_0x35c57e,_0x4d8d73[_0xdaa2('0x52')]);var _0x22cc51={'where':_0x35c57e[_0xdaa2('0x4c')]};return db['ChatGroup']['count'](_0x22cc51)[_0xdaa2('0x23')](function(_0x3f0577){_0x574bed[_0xdaa2('0x32')]=_0x3f0577;if(_0x4d8d73['query']['includeAll']){_0x35c57e[_0xdaa2('0x53')]=[{'all':!![]}];}return db[_0xdaa2('0x40')][_0xdaa2('0x54')](_0x35c57e);})[_0xdaa2('0x23')](function(_0x42b1ba){_0x574bed['rows']=_0x42b1ba;return _0x574bed;})[_0xdaa2('0x23')](respondWithFilteredResult(_0x2cca44,_0x35c57e))[_0xdaa2('0x2e')](handleError(_0x2cca44,null));};exports[_0xdaa2('0x55')]=function(_0x34a9f,_0x30ab40){var _0xb858c0={'raw':!![],'where':{'id':_0x34a9f[_0xdaa2('0x56')]['id']}},_0x48bd6b={};_0x48bd6b[_0xdaa2('0x46')]=_['keys'](db[_0xdaa2('0x40')][_0xdaa2('0x41')]);_0x48bd6b['query']=_['keys'](_0x34a9f['query']);_0x48bd6b[_0xdaa2('0x4d')]=_[_0xdaa2('0x45')](_0x48bd6b[_0xdaa2('0x46')],_0x48bd6b[_0xdaa2('0x44')]);_0xb858c0[_0xdaa2('0x47')]=_[_0xdaa2('0x45')](_0x48bd6b[_0xdaa2('0x46')],qs[_0xdaa2('0x48')](_0x34a9f['query'][_0xdaa2('0x48')]));_0xb858c0[_0xdaa2('0x47')]=_0xb858c0[_0xdaa2('0x47')][_0xdaa2('0x57')]?_0xb858c0[_0xdaa2('0x47')]:_0x48bd6b[_0xdaa2('0x46')];if(_0x34a9f[_0xdaa2('0x44')][_0xdaa2('0x58')]){_0xb858c0[_0xdaa2('0x53')]=[{'all':!![]}];}_0xb858c0=_[_0xdaa2('0x50')]({},_0xb858c0,_0x34a9f[_0xdaa2('0x52')]);return db['ChatGroup'][_0xdaa2('0x59')](_0xb858c0)['then'](handleEntityNotFound(_0x30ab40,null))['then'](respondWithResult(_0x30ab40,null))[_0xdaa2('0x2e')](handleError(_0x30ab40,null));};exports[_0xdaa2('0x5a')]=function(_0x32d206,_0x31225e){return db['ChatGroup'][_0xdaa2('0x5a')](_0x32d206['body'],{})[_0xdaa2('0x23')](respondWithResult(_0x31225e,0xc9))[_0xdaa2('0x2e')](handleError(_0x31225e,null));};exports[_0xdaa2('0x39')]=function(_0x49eb55,_0x15d117){if(_0x49eb55[_0xdaa2('0x5b')]['id']){delete _0x49eb55[_0xdaa2('0x5b')]['id'];}return db[_0xdaa2('0x40')][_0xdaa2('0x59')]({'where':{'id':_0x49eb55[_0xdaa2('0x56')]['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x15d117,null))['then'](saveUpdates(_0x49eb55['body'],null))[_0xdaa2('0x23')](respondWithResult(_0x15d117,null))['catch'](handleError(_0x15d117,null));};exports['destroy']=function(_0x391f73,_0x9b60f6){return db[_0xdaa2('0x40')][_0xdaa2('0x59')]({'where':{'id':_0x391f73[_0xdaa2('0x56')]['id']}})['then'](handleEntityNotFound(_0x9b60f6,null))[_0xdaa2('0x23')](removeEntity(_0x9b60f6,null))['catch'](handleError(_0x9b60f6,null));};exports[_0xdaa2('0x5c')]=function(_0x2b4e87,_0x358da5){return db[_0xdaa2('0x40')]['describe']()[_0xdaa2('0x23')](respondWithResult(_0x358da5,null))[_0xdaa2('0x2e')](handleError(_0x358da5,null));};exports['getUnread']=function(_0x2569a4,_0x2ccd9e,_0x2f43a4){return db['ChatInternalMessage'][_0xdaa2('0x32')]({'where':{'ChatGroupId':_0x2569a4['params']['id'],'ToId':_0x2569a4[_0xdaa2('0x5d')]['id'],'read':![]}})[_0xdaa2('0x23')](function(_0x10bd54){return{'id':_[_0xdaa2('0x5e')](_0x2569a4[_0xdaa2('0x56')]['id']),'count':_0x10bd54};})['then'](respondWithResult(_0x2ccd9e,null))[_0xdaa2('0x2e')](handleError(_0x2ccd9e,null));};exports[_0xdaa2('0x5f')]=function(_0x2f6a45,_0x28d71a,_0x2d5497){return db[_0xdaa2('0x40')]['find']({'where':{'id':_0x2f6a45[_0xdaa2('0x56')]['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x28d71a,null))[_0xdaa2('0x23')](function(_0x35b6ff){if(_0x35b6ff){return _0x35b6ff['addMembers'](_0x2f6a45[_0xdaa2('0x5b')][_0xdaa2('0x60')],_[_0xdaa2('0x61')](_0x2f6a45['body'],[_0xdaa2('0x60'),'id'])||{});}})['then'](respondWithResult(_0x28d71a,null))['catch'](handleError(_0x28d71a,null));};exports[_0xdaa2('0x62')]=function(_0x3963ab,_0x293fd9,_0x25e25d){var _0x3fa79a={};var _0x78a285={};var _0x29e414;var _0x53e269;return db[_0xdaa2('0x40')][_0xdaa2('0x63')]({'where':{'id':_0x3963ab[_0xdaa2('0x56')]['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x293fd9,null))['then'](function(_0x35430d){if(_0x35430d){_0x29e414=_0x35430d;_0x78a285[_0xdaa2('0x46')]=_['keys'](db[_0xdaa2('0x64')][_0xdaa2('0x41')]);_0x78a285[_0xdaa2('0x44')]=_[_0xdaa2('0x65')](_0x3963ab[_0xdaa2('0x44')]);_0x78a285[_0xdaa2('0x4d')]=_[_0xdaa2('0x45')](_0x78a285['model'],_0x78a285[_0xdaa2('0x44')]);_0x3fa79a['attributes']=_[_0xdaa2('0x45')](_0x78a285[_0xdaa2('0x46')],qs[_0xdaa2('0x48')](_0x3963ab[_0xdaa2('0x44')]['fields']));_0x3fa79a['attributes']=_0x3fa79a['attributes'][_0xdaa2('0x57')]?_0x3fa79a[_0xdaa2('0x47')]:_0x78a285[_0xdaa2('0x46')];_0x3fa79a[_0xdaa2('0x4b')]=qs[_0xdaa2('0x66')](_0x3963ab[_0xdaa2('0x44')][_0xdaa2('0x66')]);_0x3fa79a[_0xdaa2('0x4c')]=qs[_0xdaa2('0x4d')](_[_0xdaa2('0x4e')](_0x3963ab['query'],_0x78a285[_0xdaa2('0x4d')]));if(_0x3963ab[_0xdaa2('0x44')]['filter']){_0x3fa79a[_0xdaa2('0x4c')]=_['merge'](_0x3fa79a['where'],{'$or':_[_0xdaa2('0x3f')](_0x3fa79a['attributes'],function(_0xecd726){var _0xeb29ea={};_0xeb29ea[_0xecd726]={'$like':'%'+_0x3963ab[_0xdaa2('0x44')][_0xdaa2('0x4f')]+'%'};return _0xeb29ea;})});}_0x3fa79a=_[_0xdaa2('0x50')]({},_0x3fa79a,_0x3963ab['options']);return _0x29e414[_0xdaa2('0x62')](_0x3fa79a);}})[_0xdaa2('0x23')](function(_0x28a1e5){if(_0x28a1e5){_0x53e269=_0x28a1e5['length'];if(!_0x3963ab['query'][_0xdaa2('0x49')](_0xdaa2('0x4a'))){_0x3fa79a['limit']=qs[_0xdaa2('0x34')](_0x3963ab[_0xdaa2('0x44')][_0xdaa2('0x34')]);_0x3fa79a[_0xdaa2('0x33')]=qs[_0xdaa2('0x33')](_0x3963ab[_0xdaa2('0x44')][_0xdaa2('0x33')]);}return _0x29e414[_0xdaa2('0x62')](_0x3fa79a);}})['then'](function(_0x572c90){if(_0x572c90){return _0x572c90?{'count':_0x53e269,'rows':_0x572c90}:null;}})[_0xdaa2('0x23')](respondWithResult(_0x293fd9,null))[_0xdaa2('0x2e')](handleError(_0x293fd9,null));};exports[_0xdaa2('0x67')]=function(_0x4a156b,_0x10cc1e,_0x5b748c){return db[_0xdaa2('0x40')][_0xdaa2('0x59')]({'where':{'id':_0x4a156b[_0xdaa2('0x56')]['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x10cc1e,null))[_0xdaa2('0x23')](function(_0x4a178b){if(_0x4a178b){return _0x4a178b[_0xdaa2('0x67')](_0x4a156b[_0xdaa2('0x44')][_0xdaa2('0x60')]);}})[_0xdaa2('0x23')](respondWithStatusCode(_0x10cc1e,null))[_0xdaa2('0x2e')](handleError(_0x10cc1e,null));};exports[_0xdaa2('0x68')]=function(_0x4ce975,_0x5ce670,_0x46f00a){if(_0x4ce975[_0xdaa2('0x5b')]['id']){delete _0x4ce975['body']['id'];}return db[_0xdaa2('0x40')][_0xdaa2('0x59')]({'where':{'id':_0x4ce975['params']['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x5ce670,null))[_0xdaa2('0x23')](function(_0x4d5f81){if(_0x4d5f81){_0x4ce975['body'][_0xdaa2('0x69')]=_0x4d5f81['id'];return db[_0xdaa2('0x6a')][_0xdaa2('0x5a')](_0x4ce975[_0xdaa2('0x5b')]);}})['then'](respondWithResult(_0x5ce670,null))[_0xdaa2('0x2e')](handleError(_0x5ce670,null));};exports[_0xdaa2('0x6b')]=function(_0x3fbe8d,_0x3e84b1,_0x3ea270){var _0x5b6a1f={};var _0x3faf19={};var _0x1a7d1a;var _0x2a7b05;return db['ChatGroup'][_0xdaa2('0x63')]({'where':{'id':_0x3fbe8d[_0xdaa2('0x56')]['id']}})[_0xdaa2('0x23')](handleEntityNotFound(_0x3e84b1,null))['then'](function(_0x52d1c7){if(_0x52d1c7){_0x1a7d1a=_0x52d1c7;_0x3faf19['model']=_[_0xdaa2('0x65')](db['ChatInternalMessage']['rawAttributes']);_0x3faf19[_0xdaa2('0x44')]=_['keys'](_0x3fbe8d[_0xdaa2('0x44')]);_0x3faf19[_0xdaa2('0x4d')]=_['intersection'](_0x3faf19[_0xdaa2('0x46')],_0x3faf19[_0xdaa2('0x44')]);_0x5b6a1f[_0xdaa2('0x47')]=_[_0xdaa2('0x45')](_0x3faf19[_0xdaa2('0x46')],qs[_0xdaa2('0x48')](_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x48')]));_0x5b6a1f[_0xdaa2('0x47')]=_0x5b6a1f[_0xdaa2('0x47')]['length']?_0x5b6a1f[_0xdaa2('0x47')]:_0x3faf19[_0xdaa2('0x46')];_0x5b6a1f['order']=qs['sort'](_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x66')]);_0x5b6a1f[_0xdaa2('0x4c')]=qs[_0xdaa2('0x4d')](_[_0xdaa2('0x4e')](_0x3fbe8d[_0xdaa2('0x44')],_0x3faf19[_0xdaa2('0x4d')]));if(_0x3fbe8d['query'][_0xdaa2('0x4f')]){_0x5b6a1f[_0xdaa2('0x4c')]=_['merge'](_0x5b6a1f[_0xdaa2('0x4c')],{'$or':_[_0xdaa2('0x3f')](_0x5b6a1f[_0xdaa2('0x47')],function(_0x53ad30){var _0x58336c={};_0x58336c[_0x53ad30]={'$like':'%'+_0x3fbe8d['query'][_0xdaa2('0x4f')]+'%'};return _0x58336c;})});}if(_0x3fbe8d[_0xdaa2('0x44')]['$gte']){var _0x409544=_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x6c')]['split'](',');var _0x1c88ee={};_0x1c88ee[_0x409544[0x0]]={'$gte':moment(_0x409544[0x1])[_0xdaa2('0x6d')](_0xdaa2('0x6e'))};_0x5b6a1f[_0xdaa2('0x4c')]=_[_0xdaa2('0x50')](_0x5b6a1f['where'],_0x1c88ee);}_0x5b6a1f=_['merge']({},_0x5b6a1f,_0x3fbe8d[_0xdaa2('0x52')]);return _0x1a7d1a[_0xdaa2('0x6b')](_0x5b6a1f);}})[_0xdaa2('0x23')](function(_0x3df114){if(_0x3df114){_0x2a7b05=_0x3df114[_0xdaa2('0x57')];if(!_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x49')](_0xdaa2('0x4a'))){_0x5b6a1f[_0xdaa2('0x34')]=qs['limit'](_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x34')]);_0x5b6a1f[_0xdaa2('0x33')]=qs[_0xdaa2('0x33')](_0x3fbe8d[_0xdaa2('0x44')][_0xdaa2('0x33')]);}return _0x1a7d1a['getMessages'](_0x5b6a1f);}})[_0xdaa2('0x23')](function(_0x3ac8f5){if(_0x3ac8f5){return _0x3ac8f5?{'count':_0x2a7b05,'rows':_0x3ac8f5}:null;}})[_0xdaa2('0x23')](respondWithResult(_0x3e84b1,null))[_0xdaa2('0x2e')](handleError(_0x3e84b1,null));};
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js
index c393b07..01e17be 100644
--- a/server/api/chatGroup/chatGroup.events.js
+++ b/server/api/chatGroup/chatGroup.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xb10b=['hasOwnProperty','hook','events','ChatGroup','setMaxListeners','save','remove','emit'];(function(_0x357a27,_0x19244b){var _0x2fc70a=function(_0x3f787e){while(--_0x3f787e){_0x357a27['push'](_0x357a27['shift']());}};_0x2fc70a(++_0x19244b);}(_0xb10b,0x12a));var _0xbb10=function(_0x1e4c55,_0x1415eb){_0x1e4c55=_0x1e4c55-0x0;var _0x511ab5=_0xb10b[_0x1e4c55];return _0x511ab5;};'use strict';var EventEmitter=require(_0xbb10('0x0'));var ChatGroup=require('../../mysqldb')['db'][_0xbb10('0x1')];var ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0xbb10('0x2')](0x0);var events={'afterCreate':_0xbb10('0x3'),'afterUpdate':'update','afterDestroy':_0xbb10('0x4')};function emitEvent(_0x9bbed){return function(_0x460981,_0x22320e,_0x49baf4){ChatGroupEvents[_0xbb10('0x5')](_0x9bbed+':'+_0x460981['id'],_0x460981);ChatGroupEvents['emit'](_0x9bbed,_0x460981);_0x49baf4(null);};}for(var e in events){if(events[_0xbb10('0x6')](e)){var event=events[e];ChatGroup[_0xbb10('0x7')](e,emitEvent(event));}}module['exports']=ChatGroupEvents;
\ No newline at end of file
+var _0x2032=['exports','../../mysqldb','ChatGroup','setMaxListeners','update','remove','emit','hasOwnProperty','hook'];(function(_0x256b72,_0x340985){var _0x2183e3=function(_0xf7fd37){while(--_0xf7fd37){_0x256b72['push'](_0x256b72['shift']());}};_0x2183e3(++_0x340985);}(_0x2032,0xd9));var _0x2203=function(_0x3d3232,_0x221f17){_0x3d3232=_0x3d3232-0x0;var _0x1b6fc7=_0x2032[_0x3d3232];return _0x1b6fc7;};'use strict';var EventEmitter=require('events');var ChatGroup=require(_0x2203('0x0'))['db'][_0x2203('0x1')];var ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x2203('0x2')](0x0);var events={'afterCreate':'save','afterUpdate':_0x2203('0x3'),'afterDestroy':_0x2203('0x4')};function emitEvent(_0x4b4c7f){return function(_0x46c49a,_0x880dcd,_0x44ccfd){ChatGroupEvents[_0x2203('0x5')](_0x4b4c7f+':'+_0x46c49a['id'],_0x46c49a);ChatGroupEvents[_0x2203('0x5')](_0x4b4c7f,_0x46c49a);_0x44ccfd(null);};}for(var e in events){if(events[_0x2203('0x6')](e)){var event=events[e];ChatGroup[_0x2203('0x7')](e,emitEvent(event));}}module[_0x2203('0x8')]=ChatGroupEvents;
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js
index 9adb3df..9da9c9d 100644
--- a/server/api/chatGroup/chatGroup.model.js
+++ b/server/api/chatGroup/chatGroup.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0309=['rimraf','../../config/environment','./chatGroup.attributes','define','chat_groups','lodash','../../config/logger','moment','bluebird','request-promise','path'];(function(_0x42f009,_0x5e27b1){var _0x22a1e0=function(_0x297993){while(--_0x297993){_0x42f009['push'](_0x42f009['shift']());}};_0x22a1e0(++_0x5e27b1);}(_0x0309,0x165));var _0x9030=function(_0x554915,_0x5ea123){_0x554915=_0x554915-0x0;var _0x2fbdaf=_0x0309[_0x554915];return _0x2fbdaf;};'use strict';var _=require(_0x9030('0x0'));var util=require('util');var logger=require(_0x9030('0x1'))('api');var moment=require(_0x9030('0x2'));var BPromise=require(_0x9030('0x3'));var rp=require(_0x9030('0x4'));var fs=require('fs');var path=require(_0x9030('0x5'));var rimraf=require(_0x9030('0x6'));var config=require(_0x9030('0x7'));var attributes=require(_0x9030('0x8'));module['exports']=function(_0x5a3334,_0x1c9c7b){return _0x5a3334[_0x9030('0x9')]('ChatGroup',attributes,{'tableName':_0x9030('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xabe8=['lodash','util','../../config/logger','moment','bluebird','path','../../config/environment','./chatGroup.attributes','exports','chat_groups'];(function(_0x243217,_0x522951){var _0x478029=function(_0x18d053){while(--_0x18d053){_0x243217['push'](_0x243217['shift']());}};_0x478029(++_0x522951);}(_0xabe8,0x8c));var _0x8abe=function(_0x2705ee,_0x2a16bf){_0x2705ee=_0x2705ee-0x0;var _0x1402e8=_0xabe8[_0x2705ee];return _0x1402e8;};'use strict';var _=require(_0x8abe('0x0'));var util=require(_0x8abe('0x1'));var logger=require(_0x8abe('0x2'))('api');var moment=require(_0x8abe('0x3'));var BPromise=require(_0x8abe('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8abe('0x5'));var rimraf=require('rimraf');var config=require(_0x8abe('0x6'));var attributes=require(_0x8abe('0x7'));module[_0x8abe('0x8')]=function(_0x3a24e6,_0x7619bb){return _0x3a24e6['define']('ChatGroup',attributes,{'tableName':_0x8abe('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js
index b8a4b37..54e9427 100644
--- a/server/api/chatGroup/chatGroup.rpc.js
+++ b/server/api/chatGroup/chatGroup.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xaa2e=['error','code','message','lodash','util','moment','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','localhost','socket.io-emitter','./chatGroup.socket','register','then','info','ChatGroup,\x20%s,\x20%s','request\x20sent','debug','stringify'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0xaa2e,0x13b));var _0xeaa2=function(_0x28cb01,_0x36ee62){_0x28cb01=_0x28cb01-0x0;var _0x3a92c5=_0xaa2e[_0x28cb01];return _0x3a92c5;};'use strict';var _=require(_0xeaa2('0x0'));var util=require(_0xeaa2('0x1'));var moment=require(_0xeaa2('0x2'));var BPromise=require('bluebird');var rs=require(_0xeaa2('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xeaa2('0x4'))['db'];var utils=require(_0xeaa2('0x5'));var logger=require(_0xeaa2('0x6'))(_0xeaa2('0x7'));var config=require(_0xeaa2('0x8'));var jayson=require(_0xeaa2('0x9'));var client=jayson[_0xeaa2('0xa')][_0xeaa2('0xb')]({'port':0x232a});config[_0xeaa2('0xc')]=_['defaults'](config['redis'],{'host':_0xeaa2('0xd'),'port':0x18eb});var socket=require(_0xeaa2('0xe'))(new Redis(config['redis']));require(_0xeaa2('0xf'))[_0xeaa2('0x10')](socket);function respondWithRpcPromise(_0x283b3b,_0x160ae5,_0x171ec1){return new BPromise(function(_0x5cd601,_0x35c4b6){return client['request'](_0x283b3b,_0x171ec1)[_0xeaa2('0x11')](function(_0xe73dfd){logger[_0xeaa2('0x12')](_0xeaa2('0x13'),_0x160ae5,_0xeaa2('0x14'));logger[_0xeaa2('0x15')]('ChatGroup,\x20%s,\x20%s,\x20%s',_0x160ae5,_0xeaa2('0x14'),JSON[_0xeaa2('0x16')](_0xe73dfd));if(_0xe73dfd['error']){if(_0xe73dfd[_0xeaa2('0x17')][_0xeaa2('0x18')]===0x1f4){logger[_0xeaa2('0x17')](_0xeaa2('0x13'),_0x160ae5,_0xe73dfd[_0xeaa2('0x17')][_0xeaa2('0x19')]);return _0x35c4b6(_0xe73dfd[_0xeaa2('0x17')][_0xeaa2('0x19')]);}logger[_0xeaa2('0x17')](_0xeaa2('0x13'),_0x160ae5,_0xe73dfd[_0xeaa2('0x17')][_0xeaa2('0x19')]);return _0x5cd601(_0xe73dfd[_0xeaa2('0x17')][_0xeaa2('0x19')]);}else{logger[_0xeaa2('0x12')]('ChatGroup,\x20%s,\x20%s',_0x160ae5,_0xeaa2('0x14'));_0x5cd601(_0xe73dfd['result'][_0xeaa2('0x19')]);}})['catch'](function(_0x52c7e6){logger[_0xeaa2('0x17')]('ChatGroup,\x20%s,\x20%s',_0x160ae5,_0x52c7e6);_0x35c4b6(_0x52c7e6);});});}
\ No newline at end of file
+var _0x8faf=['../../config/utils','../../config/logger','jayson/promise','client','http','redis','defaults','localhost','./chatGroup.socket','register','request','then','info','ChatGroup,\x20%s,\x20%s','request\x20sent','ChatGroup,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x3070dc,_0x40cf11){var _0x431489=function(_0x49bc2a){while(--_0x49bc2a){_0x3070dc['push'](_0x3070dc['shift']());}};_0x431489(++_0x40cf11);}(_0x8faf,0x111));var _0xf8fa=function(_0x4e6ae6,_0x49dba6){_0x4e6ae6=_0x4e6ae6-0x0;var _0x23c108=_0x8faf[_0x4e6ae6];return _0x23c108;};'use strict';var _=require(_0xf8fa('0x0'));var util=require(_0xf8fa('0x1'));var moment=require(_0xf8fa('0x2'));var BPromise=require(_0xf8fa('0x3'));var rs=require(_0xf8fa('0x4'));var fs=require('fs');var Redis=require(_0xf8fa('0x5'));var db=require(_0xf8fa('0x6'))['db'];var utils=require(_0xf8fa('0x7'));var logger=require(_0xf8fa('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0xf8fa('0x9'));var client=jayson[_0xf8fa('0xa')][_0xf8fa('0xb')]({'port':0x232a});config[_0xf8fa('0xc')]=_[_0xf8fa('0xd')](config['redis'],{'host':_0xf8fa('0xe'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xf8fa('0xc')]));require(_0xf8fa('0xf'))[_0xf8fa('0x10')](socket);function respondWithRpcPromise(_0x1f4100,_0x2346cf,_0x581248){return new BPromise(function(_0x36a5ba,_0x18acb1){return client[_0xf8fa('0x11')](_0x1f4100,_0x581248)[_0xf8fa('0x12')](function(_0xd07dc9){logger[_0xf8fa('0x13')](_0xf8fa('0x14'),_0x2346cf,_0xf8fa('0x15'));logger['debug'](_0xf8fa('0x16'),_0x2346cf,'request\x20sent',JSON[_0xf8fa('0x17')](_0xd07dc9));if(_0xd07dc9[_0xf8fa('0x18')]){if(_0xd07dc9[_0xf8fa('0x18')]['code']===0x1f4){logger['error'](_0xf8fa('0x14'),_0x2346cf,_0xd07dc9[_0xf8fa('0x18')][_0xf8fa('0x19')]);return _0x18acb1(_0xd07dc9[_0xf8fa('0x18')][_0xf8fa('0x19')]);}logger[_0xf8fa('0x18')](_0xf8fa('0x14'),_0x2346cf,_0xd07dc9[_0xf8fa('0x18')][_0xf8fa('0x19')]);return _0x36a5ba(_0xd07dc9['error']['message']);}else{logger[_0xf8fa('0x13')](_0xf8fa('0x14'),_0x2346cf,_0xf8fa('0x15'));_0x36a5ba(_0xd07dc9[_0xf8fa('0x1a')]['message']);}})[_0xf8fa('0x1b')](function(_0x1dffb7){logger['error']('ChatGroup,\x20%s,\x20%s',_0x2346cf,_0x1dffb7);_0x18acb1(_0x1dffb7);});});}
\ No newline at end of file
diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js
index da5b0f0..bcfaec6 100644
--- a/server/api/chatGroup/chatGroup.socket.js
+++ b/server/api/chatGroup/chatGroup.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcd2d=['chatGroup:','./chatGroup.events','remove','emit','removeListener'];(function(_0x5d7227,_0x12aebe){var _0x15ac55=function(_0x58d13e){while(--_0x58d13e){_0x5d7227['push'](_0x5d7227['shift']());}};_0x15ac55(++_0x12aebe);}(_0xcd2d,0x1c8));var _0xdcd2=function(_0x279fda,_0x365773){_0x279fda=_0x279fda-0x0;var _0x17a5e8=_0xcd2d[_0x279fda];return _0x17a5e8;};'use strict';var ChatGroupEvents=require(_0xdcd2('0x0'));var events=['save',_0xdcd2('0x1'),'update'];function createListener(_0x55f457,_0x288081){return function(_0x17be9e){_0x288081[_0xdcd2('0x2')](_0x55f457,_0x17be9e);};}function removeListener(_0x541627,_0x2ad842){return function(){ChatGroupEvents[_0xdcd2('0x3')](_0x541627,_0x2ad842);};}exports['register']=function(_0x580377){for(var _0x35163e=0x0,_0x791241=events['length'];_0x35163e<_0x791241;_0x35163e++){var _0x566647=events[_0x35163e];var _0x5dcbf4=createListener(_0xdcd2('0x4')+_0x566647,_0x580377);ChatGroupEvents['on'](_0x566647,_0x5dcbf4);}};
\ No newline at end of file
+var _0x390e=['remove','update','emit','register','chatGroup:','./chatGroup.events','save'];(function(_0x4d613c,_0x55f220){var _0x301fe3=function(_0x5eec0b){while(--_0x5eec0b){_0x4d613c['push'](_0x4d613c['shift']());}};_0x301fe3(++_0x55f220);}(_0x390e,0x155));var _0xe390=function(_0x44df0c,_0x2a861b){_0x44df0c=_0x44df0c-0x0;var _0x2aa15c=_0x390e[_0x44df0c];return _0x2aa15c;};'use strict';var ChatGroupEvents=require(_0xe390('0x0'));var events=[_0xe390('0x1'),_0xe390('0x2'),_0xe390('0x3')];function createListener(_0x5e5e04,_0x32a447){return function(_0x1b09e7){_0x32a447[_0xe390('0x4')](_0x5e5e04,_0x1b09e7);};}function removeListener(_0x19f544,_0x314b7f){return function(){ChatGroupEvents['removeListener'](_0x19f544,_0x314b7f);};}exports[_0xe390('0x5')]=function(_0x3606fa){for(var _0x533a1f=0x0,_0x204dc0=events['length'];_0x533a1f<_0x204dc0;_0x533a1f++){var _0xac0d3f=events[_0x533a1f];var _0x2b08df=createListener(_0xe390('0x6')+_0xac0d3f,_0x3606fa);ChatGroupEvents['on'](_0xac0d3f,_0x2b08df);}};
\ No newline at end of file
diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js
index e8363e1..7cdffa2 100644
--- a/server/api/chatGroup/index.js
+++ b/server/api/chatGroup/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1037=['/:id/messages','getMessages','post','create','/:id/members','addMembers','addMessage','update','delete','destroy','removeMembers','exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/unread','getUnread','getMembers'];(function(_0x510c60,_0x50247e){var _0x49c4aa=function(_0x3149c7){while(--_0x3149c7){_0x510c60['push'](_0x510c60['shift']());}};_0x49c4aa(++_0x50247e);}(_0x1037,0xf4));var _0x7103=function(_0x1f83a5,_0x59843f){_0x1f83a5=_0x1f83a5-0x0;var _0x45edf0=_0x1037[_0x1f83a5];return _0x45edf0;};'use strict';var multer=require('multer');var util=require(_0x7103('0x0'));var path=require(_0x7103('0x1'));var timeout=require(_0x7103('0x2'));var express=require(_0x7103('0x3'));var router=express[_0x7103('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7103('0x5'));var config=require(_0x7103('0x6'));var controller=require(_0x7103('0x7'));router[_0x7103('0x8')]('/',auth[_0x7103('0x9')](),controller[_0x7103('0xa')]);router['get'](_0x7103('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0x7103('0x8')](_0x7103('0xc'),auth[_0x7103('0x9')](),controller[_0x7103('0xd')]);router[_0x7103('0x8')](_0x7103('0xe'),auth[_0x7103('0x9')](),controller[_0x7103('0xf')]);router[_0x7103('0x8')]('/:id/members',auth['isAuthenticated'](),controller[_0x7103('0x10')]);router[_0x7103('0x8')](_0x7103('0x11'),auth['isAuthenticated'](),controller[_0x7103('0x12')]);router[_0x7103('0x13')]('/',auth[_0x7103('0x9')](),controller[_0x7103('0x14')]);router[_0x7103('0x13')](_0x7103('0x15'),auth[_0x7103('0x9')](),controller[_0x7103('0x16')]);router[_0x7103('0x13')](_0x7103('0x11'),auth[_0x7103('0x9')](),controller[_0x7103('0x17')]);router['put'](_0x7103('0xc'),auth[_0x7103('0x9')](),controller[_0x7103('0x18')]);router[_0x7103('0x19')]('/:id',auth[_0x7103('0x9')](),controller[_0x7103('0x1a')]);router[_0x7103('0x19')](_0x7103('0x15'),auth[_0x7103('0x9')](),controller[_0x7103('0x1b')]);module[_0x7103('0x1c')]=router;
\ No newline at end of file
+var _0x2c5a=['../../components/interaction/service','../../config/environment','./chatGroup.controller','get','isAuthenticated','/:id','show','getMembers','getMessages','post','create','/:id/members','addMembers','/:id/messages','addMessage','update','delete','destroy','removeMembers','multer','util','path','express','Router','../../components/auth/service'];(function(_0x533528,_0x409d05){var _0x3189f1=function(_0x5e63d2){while(--_0x5e63d2){_0x533528['push'](_0x533528['shift']());}};_0x3189f1(++_0x409d05);}(_0x2c5a,0xa9));var _0xa2c5=function(_0x350b46,_0x54944e){_0x350b46=_0x350b46-0x0;var _0x32f7c6=_0x2c5a[_0x350b46];return _0x32f7c6;};'use strict';var multer=require(_0xa2c5('0x0'));var util=require(_0xa2c5('0x1'));var path=require(_0xa2c5('0x2'));var timeout=require('connect-timeout');var express=require(_0xa2c5('0x3'));var router=express[_0xa2c5('0x4')]();var auth=require(_0xa2c5('0x5'));var interaction=require(_0xa2c5('0x6'));var config=require(_0xa2c5('0x7'));var controller=require(_0xa2c5('0x8'));router[_0xa2c5('0x9')]('/',auth[_0xa2c5('0xa')](),controller['index']);router[_0xa2c5('0x9')]('/describe',auth[_0xa2c5('0xa')](),controller['describe']);router['get'](_0xa2c5('0xb'),auth[_0xa2c5('0xa')](),controller[_0xa2c5('0xc')]);router[_0xa2c5('0x9')]('/:id/unread',auth['isAuthenticated'](),controller['getUnread']);router[_0xa2c5('0x9')]('/:id/members',auth['isAuthenticated'](),controller[_0xa2c5('0xd')]);router['get']('/:id/messages',auth[_0xa2c5('0xa')](),controller[_0xa2c5('0xe')]);router[_0xa2c5('0xf')]('/',auth[_0xa2c5('0xa')](),controller[_0xa2c5('0x10')]);router[_0xa2c5('0xf')](_0xa2c5('0x11'),auth[_0xa2c5('0xa')](),controller[_0xa2c5('0x12')]);router[_0xa2c5('0xf')](_0xa2c5('0x13'),auth[_0xa2c5('0xa')](),controller[_0xa2c5('0x14')]);router['put'](_0xa2c5('0xb'),auth[_0xa2c5('0xa')](),controller[_0xa2c5('0x15')]);router[_0xa2c5('0x16')](_0xa2c5('0xb'),auth['isAuthenticated'](),controller[_0xa2c5('0x17')]);router[_0xa2c5('0x16')](_0xa2c5('0x11'),auth[_0xa2c5('0xa')](),controller[_0xa2c5('0x18')]);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 0fe5e00..cd518d2 100644
--- a/server/api/chatInteraction/chatInteraction.attributes.js
+++ b/server/api/chatInteraction/chatInteraction.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3902=['DATE','long','out','sequelize','ENUM','star','thumb','TEXT','STRING'];(function(_0x35e31e,_0x2a70a7){var _0x281b37=function(_0x194b8f){while(--_0x194b8f){_0x35e31e['push'](_0x35e31e['shift']());}};_0x281b37(++_0x2a70a7);}(_0x3902,0xe4));var _0x2390=function(_0xddf7f,_0x51f6a4){_0xddf7f=_0xddf7f-0x0;var _0x3bdfb8=_0x3902[_0xddf7f];return _0x3bdfb8;};'use strict';var Sequelize=require(_0x2390('0x0'));module['exports']={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ratingValue':{'type':Sequelize['INTEGER']},'ratingType':{'type':Sequelize[_0x2390('0x1')](_0x2390('0x2'),_0x2390('0x3')),'defaultValue':_0x2390('0x2')},'ratingMessage':{'type':Sequelize[_0x2390('0x4')]},'pathTranscript':{'type':Sequelize[_0x2390('0x4')]},'mailTranscript':{'type':Sequelize[_0x2390('0x5')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x2390('0x6')]},'disposition':{'type':Sequelize[_0x2390('0x5')]},'note':{'type':Sequelize['STRING']},'browserName':{'type':Sequelize[_0x2390('0x5')]},'browserVersion':{'type':Sequelize[_0x2390('0x5')]},'osName':{'type':Sequelize['STRING']},'osVersion':{'type':Sequelize[_0x2390('0x5')]},'deviceModel':{'type':Sequelize[_0x2390('0x5')]},'deviceVendor':{'type':Sequelize[_0x2390('0x5')]},'deviceType':{'type':Sequelize[_0x2390('0x5')]},'referer':{'type':Sequelize[_0x2390('0x4')]},'customerIp':{'type':Sequelize[_0x2390('0x5')]},'formData':{'type':Sequelize['TEXT'](_0x2390('0x7'))},'read1stAt':{'type':Sequelize['DATE']},'lastMsgAt':{'type':Sequelize[_0x2390('0x6')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x2390('0x8')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x2390('0x5')]},'customerPort':{'type':Sequelize[_0x2390('0x5')]}};
\ No newline at end of file
+var _0x363f=['INTEGER','ENUM','star','thumb','TEXT','STRING','DATE','out','sequelize','exports','BOOLEAN'];(function(_0x144f3f,_0x16fef4){var _0x10f97c=function(_0x5a0f0d){while(--_0x5a0f0d){_0x144f3f['push'](_0x144f3f['shift']());}};_0x10f97c(++_0x16fef4);}(_0x363f,0x1cb));var _0xf363=function(_0x4cb9d1,_0x583456){_0x4cb9d1=_0x4cb9d1-0x0;var _0x4f0c02=_0x363f[_0x4cb9d1];return _0x4f0c02;};'use strict';var Sequelize=require(_0xf363('0x0'));module[_0xf363('0x1')]={'closed':{'type':Sequelize[_0xf363('0x2')],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0xf363('0x3')]},'ratingType':{'type':Sequelize[_0xf363('0x4')](_0xf363('0x5'),_0xf363('0x6')),'defaultValue':'star'},'ratingMessage':{'type':Sequelize['TEXT']},'pathTranscript':{'type':Sequelize[_0xf363('0x7')]},'mailTranscript':{'type':Sequelize[_0xf363('0x8')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0xf363('0x9')]},'disposition':{'type':Sequelize[_0xf363('0x8')]},'note':{'type':Sequelize[_0xf363('0x8')]},'browserName':{'type':Sequelize['STRING']},'browserVersion':{'type':Sequelize[_0xf363('0x8')]},'osName':{'type':Sequelize[_0xf363('0x8')]},'osVersion':{'type':Sequelize[_0xf363('0x8')]},'deviceModel':{'type':Sequelize[_0xf363('0x8')]},'deviceVendor':{'type':Sequelize['STRING']},'deviceType':{'type':Sequelize[_0xf363('0x8')]},'referer':{'type':Sequelize[_0xf363('0x7')]},'customerIp':{'type':Sequelize[_0xf363('0x8')]},'formData':{'type':Sequelize[_0xf363('0x7')]('long')},'read1stAt':{'type':Sequelize[_0xf363('0x9')]},'lastMsgAt':{'type':Sequelize[_0xf363('0x9')]},'lastMsgDirection':{'type':Sequelize[_0xf363('0x4')]('in',_0xf363('0xa')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0xf363('0x8')]},'customerPort':{'type':Sequelize[_0xf363('0x8')]}};
\ No newline at end of file
diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js
index af91c19..9b9531b 100644
--- a/server/api/chatInteraction/chatInteraction.controller.js
+++ b/server/api/chatInteraction/chatInteraction.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0662=['ChatWebsiteId','where','i.ChatWebsiteId\x20IN\x20?','concat','parse','$gte','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','null','\x20IS\x20NULL','\x20=\x20?','read','having','`unreadMessages`\x20=\x200','`unreadMessages`\x20>\x200','tag','isArray','filter','replace','\x27\x27\x27\x27','i.id\x20LIKE\x20?','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','getFullTextValue','group','i.id','QueryTypes','SELECT','clone','order','DESC','t.id\x20IN\x20?','resolve','user','getChatWebsites','i.ChatWebsiteId\x20IS\x20NULL','sequelize','toString','keyBy','merge','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Account.key','a.mandatoryDisposition','Account.mandatoryDisposition','i.*','c.firstName','c.lastName','Contact.lastName','c.email','Contact.email','Contact.phone','c.mobile','Contact.mobile','c.fax','Owner.fullname','o.internal','Owner.internal','GROUP_CONCAT(DISTINCT\x20t.id)','groupBy','ChatInteractionId','rows','params','includeAll','create','describe','customUpdate','abandon','abandonInteraction,\x20%s,\x20%s,\x20%s','entity\x20not\x20found','sendStatus','Interaction\x20already\x20assigned','closed','disposition','AbandonInteraction','attachmentUpload','file','originalname','basename','filename','mimetype','Attachment','Unauthorized','findOne','attachId','download','join','root','server/files/attachments/','close','server/files/chat/upload/','format','transcript-%s.txt','pathTranscript','ChatMessage','Messages','ChatWebsite','%s%d','agentAlias','System','agentIdentifier','website_alias','agent_alias','alias','fullname','[%s]\x20%s:\x20%s\x0a','createdAt','MM/DD/YYYY\x20HH:mm:ss','direction','secret','appendFileSync','MailAccount','MailServerOut','Smtp','service','host','port','secure','SendMail','sendMail','\x22%s\x22\x20<%s>','email','mailTranscript','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','ids','getMessages','pick','options','include','findAll','getMyMessages','includeAgent','addTags','setTags','omit','spread','chatInteractionTags:save','removeTags','unix','server','tmp','files','attachments','transcript-%d-%s.zip','CmContact','firstName','lastName','Account','Owner','get','10px','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
','30px','
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
','%s\x20#%d','Chat','YYYY-MM-DD','YYYY-MM-DD\x20HH:mm:ss','browserName','customerIp','customerPort','N.A.','tail','existsSync','createReadStream','createWriteStream','out','renderFile','views','downloadInteraction.html','toFile','transcript-','.pdf','log','err','unlinkSync','html-pdf','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','lodash','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../mysqldb','redis','socket.io-emitter','./chatInteraction.socket','register','jayson/promise','client','http','Sequelize','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~!@#$%^&-_=+[{]}.','then','info','request\x20sent','debug','stringify','error','code','ChatInteraction,\x20%s,\x20%s','message','catch','end','json','count','offset','limit','status','set','Content-Range','apply','reject','save','update','stack','name','Users','map','TagIds','Tags','forEach','push','index','ChatInteraction','rawAttributes','fieldName','type','model','query','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','sort','select','field','color','from','u.id','user_has_chat_interactions','users','u.id\x20=\x20ui.UserId','chat_interactions','left_join','cm_contacts','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','o.id\x20=\x20i.UserId','chat_websites','a.id\x20=\x20i.ChatWebsiteId','chat_messages','me.ChatInteractionId\x20=\x20i.id','chat_interaction_has_tags','it.ChatInteractionId\x20=\x20i.id','tools_tags','t.id\x20=\x20it.TagId','expr','search','sqlOperator','conditions','find','unreadMessages','value','`\x20=\x200','`\x20>\x200','Contact','$substring','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','ContactId','buildExpression','text','Tag','split','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','union','User','operator','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','UserId','start','body','keys','some','isEmpty'];(function(_0x38c003,_0x230c7f){var _0x3289da=function(_0x1e4575){while(--_0x1e4575){_0x38c003['push'](_0x38c003['shift']());}};_0x3289da(++_0x230c7f);}(_0x0662,0xad));var _0x2066=function(_0x4baae2,_0x487ab6){_0x4baae2=_0x4baae2-0x0;var _0x1a2285=_0x0662[_0x4baae2];return _0x1a2285;};'use strict';var pdf=require(_0x2066('0x0'));var emlformat=require(_0x2066('0x1'));var rimraf=require(_0x2066('0x2'));var zipdir=require(_0x2066('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0x2066('0x4'));var moment=require(_0x2066('0x5'));var BPromise=require(_0x2066('0x6'));var Mustache=require(_0x2066('0x7'));var util=require(_0x2066('0x8'));var path=require(_0x2066('0x9'));var sox=require(_0x2066('0xa'));var csv=require(_0x2066('0xb'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x2066('0xc'));var squel=require('squel');var crypto=require(_0x2066('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x2066('0xe'));var toCsv=require(_0x2066('0xb'));var querystring=require(_0x2066('0xf'));var Papa=require(_0x2066('0x10'));var Redis=require(_0x2066('0x11'));var authService=require(_0x2066('0x12'));var qs=require(_0x2066('0x13'));var as=require(_0x2066('0x14'));var hardwareService=require(_0x2066('0x15'));var logger=require(_0x2066('0x16'))('api');var utils=require(_0x2066('0x17'));var config=require('../../config/environment');var db=require(_0x2066('0x18'))['db'];config[_0x2066('0x19')]=_['defaults'](config[_0x2066('0x19')],{'host':'localhost','port':0x18eb});var socket=require(_0x2066('0x1a'))(new Redis(config['redis']));require(_0x2066('0x1b'))[_0x2066('0x1c')](socket);var jayson=require(_0x2066('0x1d'));var client=jayson[_0x2066('0x1e')]['http']({'port':0x232b});var client9004=jayson[_0x2066('0x1e')][_0x2066('0x1f')]({'port':0x232c});function checkPasswordPattern(_0x4e20f3,_0x4e3394,_0x121244){if(_0x121244){var _0x5e3676=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x5e3676['test'](_0x4e3394)){return _0x4e20f3;}else{throw new db[(_0x2066('0x20'))][(_0x2066('0x21'))](_0x2066('0x22'));}}else{return _0x4e20f3;}}function respondWithRpcPromise(_0x452e6a,_0x205efb,_0x44b01d,_0x41e596){return new BPromise(function(_0x147d44,_0x2ac00f){var _0x2b6c1c=_0x41e596||client;return _0x2b6c1c['request'](_0x452e6a,_0x44b01d)[_0x2066('0x23')](function(_0x1b61b9){logger[_0x2066('0x24')]('ChatInteraction,\x20%s,\x20%s',_0x205efb,_0x2066('0x25'));logger[_0x2066('0x26')]('ChatInteraction,\x20%s,\x20%s,\x20%s',_0x205efb,_0x2066('0x25'),JSON[_0x2066('0x27')](_0x1b61b9));if(_0x1b61b9['error']){if(_0x1b61b9[_0x2066('0x28')][_0x2066('0x29')]===0x1f4){logger[_0x2066('0x28')](_0x2066('0x2a'),_0x205efb,_0x1b61b9[_0x2066('0x28')][_0x2066('0x2b')]);return _0x2ac00f(_0x1b61b9[_0x2066('0x28')][_0x2066('0x2b')]);}logger[_0x2066('0x28')](_0x2066('0x2a'),_0x205efb,_0x1b61b9[_0x2066('0x28')][_0x2066('0x2b')]);return _0x147d44(_0x1b61b9[_0x2066('0x28')][_0x2066('0x2b')]);}else{logger[_0x2066('0x24')](_0x2066('0x2a'),_0x205efb,'request\x20sent');_0x147d44(_0x1b61b9['result']['message']);}})[_0x2066('0x2c')](function(_0xfd7c12){logger[_0x2066('0x28')](_0x2066('0x2a'),_0x205efb,_0xfd7c12);_0x2ac00f(_0xfd7c12);});});}function respondWithStatusCode(_0x45ff2f,_0x1276e0){_0x1276e0=_0x1276e0||0xcc;return function(_0x3d3a63){if(_0x3d3a63){return _0x45ff2f['sendStatus'](_0x1276e0);}return _0x45ff2f['status'](_0x1276e0)[_0x2066('0x2d')]();};}function respondWithResult(_0x54ea2d,_0x120d0f){_0x120d0f=_0x120d0f||0xc8;return function(_0x2b8f40){if(_0x2b8f40){return _0x54ea2d['status'](_0x120d0f)[_0x2066('0x2e')](_0x2b8f40);}};}function respondWithFilteredResult(_0x1837ee,_0x48283e){return function(_0x47261b){if(_0x47261b){var _0x1bf155=_0x47261b[_0x2066('0x2f')],_0x3a4232=_0x48283e[_0x2066('0x30')],_0x4c17ff=_0x48283e[_0x2066('0x30')]+_0x48283e[_0x2066('0x31')],_0x56ea09;if(_0x4c17ff>=_0x1bf155){_0x4c17ff=_0x1bf155;_0x56ea09=0xc8;}else{_0x56ea09=0xce;}_0x1837ee[_0x2066('0x32')](_0x56ea09);return _0x1837ee[_0x2066('0x33')](_0x2066('0x34'),_0x3a4232+'-'+_0x4c17ff+'/'+_0x1bf155)['json'](_0x47261b);}return null;};}function patchUpdates(_0x546c12){return function(_0x35a201){try{jsonpatch[_0x2066('0x35')](_0x35a201,_0x546c12,!![]);}catch(_0x27fef3){return BPromise[_0x2066('0x36')](_0x27fef3);}return _0x35a201[_0x2066('0x37')]();};}function saveUpdates(_0x3fbfaf,_0x10cb1b){return function(_0x50c6a){if(_0x50c6a){return _0x50c6a[_0x2066('0x38')](_0x3fbfaf)[_0x2066('0x23')](function(_0x480c02){return _0x480c02;});}return null;};}function removeEntity(_0x3bc714,_0x3b988b){return function(_0x3ecb64){if(_0x3ecb64){return _0x3ecb64['destroy']()[_0x2066('0x23')](function(){_0x3bc714[_0x2066('0x32')](0xcc)[_0x2066('0x2d')]();});}};}function handleEntityNotFound(_0x17da60,_0x1cdf36){return function(_0x1d923a){if(!_0x1d923a){_0x17da60['sendStatus'](0x194);}return _0x1d923a;};}function handleError(_0x14eb8f,_0x3ced66){_0x3ced66=_0x3ced66||0x1f4;return function(_0x1f78db){logger[_0x2066('0x28')](_0x1f78db[_0x2066('0x39')]);if(_0x1f78db[_0x2066('0x3a')]){delete _0x1f78db[_0x2066('0x3a')];}_0x14eb8f[_0x2066('0x32')](_0x3ced66)['send'](_0x1f78db);};}function getInteractionUsers(_0x3ded39,_0x1802de){return new BPromise(function(_0x24564f,_0x142548){try{if(_0x1802de[_0x3ded39['id']]){_0x3ded39[_0x2066('0x3b')]=_[_0x2066('0x3c')](_0x1802de[_0x3ded39['id']],function(_0x5eff7f){return{'id':_0x5eff7f['id'],'fullname':_0x5eff7f['fullname']};});}}catch(_0x5ce5d5){_0x142548(_0x5ce5d5);}_0x24564f(_0x3ded39);});}function getInteractionTags(_0x28e74f,_0xfa4822){return new BPromise(function(_0x81909e,_0x5108cf){try{if(_0x28e74f[_0x2066('0x3d')]){_0x28e74f[_0x2066('0x3e')]=[];_0x28e74f[_0x2066('0x3d')]['split'](',')[_0x2066('0x3f')](function(_0x397c8b){_0x28e74f[_0x2066('0x3e')][_0x2066('0x40')](_0xfa4822[_0x397c8b]);});}delete _0x28e74f[_0x2066('0x3d')];}catch(_0x47a250){_0x5108cf(_0x47a250);}_0x81909e(_0x28e74f);});}function updateChatInteraction(_0x201f8c,_0x3814cb,_0x3d3ca0){return new BPromise(function(_0x4b3191,_0x1d713b){return getInteractionUsers(_0x201f8c,_0x3d3ca0)[_0x2066('0x23')](function(_0x5a611f){return getInteractionTags(_0x5a611f,_0x3814cb);})['then'](function(_0x512fee){_0x4b3191(_0x512fee);})[_0x2066('0x2c')](function(_0x2aa852){_0x1d713b(_0x2aa852);});});}exports[_0x2066('0x41')]=function(_0x13c49b,_0x5ac4a9){var _0x2a9c11={},_0x5528cc={},_0x24b540={'count':0x0,'rows':[]};var _0x345ffe=_['map'](db[_0x2066('0x42')][_0x2066('0x43')],function(_0x2dd4e7){return{'name':_0x2dd4e7[_0x2066('0x44')],'type':_0x2dd4e7[_0x2066('0x45')]['key']};});_0x5528cc[_0x2066('0x46')]=_[_0x2066('0x3c')](_0x345ffe,_0x2066('0x3a'));_0x5528cc[_0x2066('0x47')]=_['keys'](_0x13c49b[_0x2066('0x47')]);_0x5528cc[_0x2066('0x48')]=_['intersection'](_0x5528cc['model'],_0x5528cc[_0x2066('0x47')]);_0x2a9c11['attributes']=_[_0x2066('0x49')](_0x5528cc[_0x2066('0x46')],qs[_0x2066('0x4a')](_0x13c49b[_0x2066('0x47')]['fields']));_0x2a9c11[_0x2066('0x4b')]=_0x2a9c11['attributes'][_0x2066('0x4c')]?_0x2a9c11[_0x2066('0x4b')]:_0x5528cc[_0x2066('0x46')];if(!_0x13c49b[_0x2066('0x47')][_0x2066('0x4d')](_0x2066('0x4e'))){_0x2a9c11[_0x2066('0x31')]=qs[_0x2066('0x31')](_0x13c49b[_0x2066('0x47')][_0x2066('0x31')]);_0x2a9c11[_0x2066('0x30')]=qs[_0x2066('0x30')](_0x13c49b[_0x2066('0x47')][_0x2066('0x30')]);}_0x2a9c11['order']=qs[_0x2066('0x4f')](_0x13c49b[_0x2066('0x47')][_0x2066('0x4f')]);_0x2a9c11['where']=qs[_0x2066('0x48')](_['pick'](_0x13c49b[_0x2066('0x47')],_0x5528cc['filters']));var _0x41e98d=[];var _0x3831e8=squel[_0x2066('0x50')]()[_0x2066('0x51')]('id')[_0x2066('0x51')](_0x2066('0x3a'))[_0x2066('0x51')](_0x2066('0x52'))[_0x2066('0x53')]('tools_tags');var _0x16030e=squel[_0x2066('0x50')]()['field'](_0x2066('0x54'))['field']('u.fullname')['field']('ui.ChatInteractionId')['from'](_0x2066('0x55'),'ui')['left_join'](_0x2066('0x56'),'u',_0x2066('0x57'));var _0x3a895f=squel['select']()['from'](_0x2066('0x58'),'i')[_0x2066('0x59')](_0x2066('0x5a'),'c',_0x2066('0x5b'))[_0x2066('0x59')](_0x2066('0x56'),'o',_0x2066('0x5c'))['left_join'](_0x2066('0x5d'),'a',_0x2066('0x5e'))[_0x2066('0x59')](_0x2066('0x5f'),'me',_0x2066('0x60'))[_0x2066('0x59')](_0x2066('0x61'),'it',_0x2066('0x62'))[_0x2066('0x59')](_0x2066('0x63'),'t',_0x2066('0x64'));var _0x19cdad=squel[_0x2066('0x65')]();var _0x5d8c2c=[];var _0x2acf7e=squel[_0x2066('0x65')]();var _0x1d4f58;if(_0x13c49b[_0x2066('0x47')][_0x2066('0x66')]){_0x1d4f58=as['parseSearch'](_0x13c49b[_0x2066('0x47')][_0x2066('0x66')]);var _0x539c45=_0x1d4f58[_0x2066('0x67')];for(var _0x4494bd=0x0;_0x4494bd<_0x1d4f58[_0x2066('0x68')][_0x2066('0x4c')];_0x4494bd++){var _0x53f194=_0x1d4f58[_0x2066('0x68')][_0x4494bd];var _0x24f099='i';var _0x416197=_[_0x2066('0x69')](_0x345ffe,[_0x2066('0x3a'),_0x53f194['field']]);if(!_0x416197){switch(_0x53f194['field']){case _0x2066('0x6a'):if(_0x53f194[_0x2066('0x6b')]==0x1){_0x3a895f['having']('`'+_0x53f194[_0x2066('0x51')]+_0x2066('0x6c'));}else{_0x3a895f['having']('`'+_0x53f194[_0x2066('0x51')]+_0x2066('0x6d'));}break;case _0x2066('0x6e'):if(_0x53f194['operator']===_0x2066('0x6f')){if(_0x53f194[_0x2066('0x6b')]['split']('\x20')[_0x2066('0x4c')]>0x1){_0x19cdad[_0x539c45](_0x2066('0x70'),qs['getFullTextValue'](_0x53f194[_0x2066('0x6b')]),null);}else{var _0x162f6e='%'+_0x53f194['value']+'%';_0x19cdad[_0x539c45](_0x2066('0x71'),_0x162f6e,_0x162f6e,_0x162f6e);}}else{_0x416197=_[_0x2066('0x69')](_0x345ffe,[_0x2066('0x3a'),_0x2066('0x72')]);_0x53f194[_0x2066('0x51')]=_0x2066('0x72');_0x364adf=as[_0x2066('0x73')](_0x24f099,_0x416197['type'],_0x53f194);_0x19cdad[_0x539c45](_0x364adf[_0x2066('0x74')],_0x364adf[_0x2066('0x6b')]['start'],_0x364adf[_0x2066('0x6b')][_0x2066('0x2d')]);}break;case _0x2066('0x75'):var _0x2055b6=_0x53f194['value'][_0x2066('0x76')](',')[_0x2066('0x3c')](function(_0x254a6c){return Number(_0x254a6c);});_0x2055b6['forEach'](function(_0x1f94c7){_0x2acf7e['or'](_0x2066('0x77'),'%,'+_0x1f94c7+',%');});_0x5d8c2c=_[_0x2066('0x78')](_0x5d8c2c,_0x2055b6);break;case _0x2066('0x79'):if(_0x53f194[_0x2066('0x7a')]===_0x2066('0x6f')){_0x19cdad[_0x539c45](_0x2066('0x7b'),'%'+_0x53f194['value']+'%',null);}else{_0x416197=_[_0x2066('0x69')](_0x345ffe,[_0x2066('0x3a'),_0x2066('0x7c')]);_0x53f194[_0x2066('0x51')]=_0x2066('0x7c');_0x364adf=as[_0x2066('0x73')](_0x24f099,_0x416197[_0x2066('0x45')],_0x53f194);_0x19cdad[_0x539c45](_0x364adf[_0x2066('0x74')],_0x364adf['value'][_0x2066('0x7d')],_0x364adf['value'][_0x2066('0x2d')]);}break;case _0x2066('0x7e'):_0x364adf=as['buildExpression']('me',null,_0x53f194);_0x19cdad[_0x539c45](_0x364adf['text'],_0x364adf[_0x2066('0x6b')][_0x2066('0x7d')],_0x364adf[_0x2066('0x6b')]['end']);break;}}else{var _0x364adf=as['buildExpression'](_0x24f099,_0x416197[_0x2066('0x45')],_0x53f194);_0x19cdad[_0x539c45](_0x364adf['text'],_0x364adf[_0x2066('0x6b')][_0x2066('0x7d')],_0x364adf[_0x2066('0x6b')]['end']);}}}else{var _0x29bf1d=_(_0x13c49b[_0x2066('0x47')])[_0x2066('0x7f')]()['map'](function(_0x49d5b9){return _[_0x2066('0x80')](_0x345ffe,['name',_0x49d5b9])?_0x49d5b9:undefined;})['compact']()[_0x2066('0x6b')]();if(!_[_0x2066('0x81')](_0x29bf1d)){_0x29bf1d[_0x2066('0x3f')](function(_0x2a9f6b){if(_0x2a9f6b===_0x2066('0x82')){_0x3a895f[_0x2066('0x83')](_0x2066('0x84'),[][_0x2066('0x85')](_0x13c49b[_0x2066('0x47')][_0x2a9f6b]));}else if(_0x2a9f6b==='createdAt'){var _0x25d315=JSON[_0x2066('0x86')](_0x13c49b[_0x2066('0x47')][_0x2a9f6b])[_0x2066('0x87')];var _0x14d610=JSON[_0x2066('0x86')](_0x13c49b['query'][_0x2a9f6b])['$lte'];_0x3a895f[_0x2066('0x83')](_0x2066('0x88'),_0x25d315,_0x14d610);}else{if(_0x13c49b[_0x2066('0x47')][_0x2a9f6b]===_0x2066('0x89')){_0x3a895f[_0x2066('0x83')]('i.'+_0x2a9f6b+_0x2066('0x8a'));}else{_0x3a895f[_0x2066('0x83')]('i.'+_0x2a9f6b+_0x2066('0x8b'),_0x13c49b[_0x2066('0x47')][_0x2a9f6b]);}}});}if(_0x13c49b[_0x2066('0x47')][_0x2066('0x8c')]){if(_0x13c49b[_0x2066('0x47')][_0x2066('0x8c')]==0x1){_0x3a895f[_0x2066('0x8d')](_0x2066('0x8e'));}else{_0x3a895f['having'](_0x2066('0x8f'));}}if(_0x13c49b[_0x2066('0x47')][_0x2066('0x90')]){_0x5d8c2c=_[_0x2066('0x91')](_0x13c49b[_0x2066('0x47')]['tag'])?_0x13c49b[_0x2066('0x47')]['tag']:new Array(_0x13c49b[_0x2066('0x47')][_0x2066('0x90')]);_0x5d8c2c[_0x2066('0x3f')](function(_0x33396c){_0x2acf7e['or'](_0x2066('0x77'),'%,'+_0x33396c+',%');});}if(_0x13c49b['query'][_0x2066('0x92')]){var _0x9655ed=_0x13c49b[_0x2066('0x47')][_0x2066('0x92')]['replace']('\x5c','\x5c\x5c')[_0x2066('0x93')]('\x27\x27',_0x2066('0x94'));if(qs['isNumeric'](_0x9655ed)){_0x19cdad['or'](_0x2066('0x95'),_0x9655ed+'%');}else{_0x19cdad['or'](_0x2066('0x96'),qs[_0x2066('0x97')](_0x9655ed))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x9655ed+'%');}}}_0x3a895f[_0x2066('0x83')](_0x19cdad);_0x3a895f[_0x2066('0x98')](_0x2066('0x99'));var _0x146e93={'type':db['Sequelize'][_0x2066('0x9a')][_0x2066('0x9b')],'raw':!![]};var _0x83e515=_0x3a895f[_0x2066('0x9c')]();_0x83e515['field']('i.id');_0x83e515[_0x2066('0x51')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x2066('0x6a'));if(_0x2a9c11[_0x2066('0x9d')]){_0x2a9c11[_0x2066('0x9d')][_0x2066('0x3f')](function(_0x87ccf8){_0x3a895f[_0x2066('0x9d')]('i.'+_0x87ccf8[0x0],_0x87ccf8[0x1]===_0x2066('0x9e')?![]:!![]);});}if(!_['isEmpty'](_0x5d8c2c)){_0x3a895f[_0x2066('0x8d')](_0x2acf7e);_0x83e515[_0x2066('0x83')](_0x2066('0x9f'),_0x5d8c2c);}BPromise[_0x2066('0xa0')]()[_0x2066('0x23')](function(){if(!_0x1d4f58&&_0x13c49b['query'][_0x2066('0x82')])return;return _0x13c49b[_0x2066('0xa1')][_0x2066('0xa2')]({'attributes':['id'],'raw':!![]})[_0x2066('0x23')](function(_0x104503){if(_[_0x2066('0x81')](_0x104503)){_0x83e515['where']('i.ChatWebsiteId\x20IS\x20NULL');_0x3a895f[_0x2066('0x83')](_0x2066('0xa3'));}else{_0x83e515[_0x2066('0x83')](_0x2066('0x84'),_[_0x2066('0x3c')](_0x104503,'id'));_0x3a895f[_0x2066('0x83')](_0x2066('0x84'),_[_0x2066('0x3c')](_0x104503,'id'));}});})[_0x2066('0x23')](function(){db[_0x2066('0xa4')][_0x2066('0x47')](_0x83e515[_0x2066('0xa5')](),_0x146e93)[_0x2066('0x23')](function(_0x411a78){_0x24b540[_0x2066('0x2f')]=_0x411a78[_0x2066('0x4c')];if(_0x24b540['count']===0x0)return[];return db[_0x2066('0xa4')][_0x2066('0x47')](_0x3831e8[_0x2066('0xa5')](),_0x146e93)[_0x2066('0x23')](function(_0x31b5ad){_0x41e98d=_[_0x2066('0xa6')](_0x31b5ad,'id');_0x146e93=_[_0x2066('0xa7')](_0x146e93,{'model':db['ChatInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});if(_0x13c49b[_0x2066('0x47')][_0x2066('0x4a')]){_0x2a9c11[_0x2066('0x4b')]['forEach'](function(_0xbf82c3){_0x3a895f['field']('i.'+_0xbf82c3);});}else{_0x3a895f['field'](_0x2066('0xa8'),'unreadMessages');_0x3a895f[_0x2066('0x51')]('a.key',_0x2066('0xa9'));_0x3a895f[_0x2066('0x51')](_0x2066('0xaa'),_0x2066('0xab'));_0x3a895f[_0x2066('0x51')](_0x2066('0xac'));_0x3a895f[_0x2066('0x51')](_0x2066('0xad'),'Contact.firstName');_0x3a895f['field'](_0x2066('0xae'),_0x2066('0xaf'));_0x3a895f[_0x2066('0x51')](_0x2066('0xb0'),_0x2066('0xb1'));_0x3a895f[_0x2066('0x51')]('c.phone',_0x2066('0xb2'));_0x3a895f[_0x2066('0x51')](_0x2066('0xb3'),_0x2066('0xb4'));_0x3a895f[_0x2066('0x51')](_0x2066('0xb5'),'Contact.fax');_0x3a895f['field']('o.fullname',_0x2066('0xb6'));_0x3a895f['field'](_0x2066('0xb7'),_0x2066('0xb8'));_0x3a895f['field'](_0x2066('0xb9'),_0x2066('0x3d'));}_0x3a895f['limit'](_0x2a9c11[_0x2066('0x31')]);_0x3a895f[_0x2066('0x30')](_0x2a9c11['offset']);return db[_0x2066('0xa4')][_0x2066('0x47')](_0x3a895f[_0x2066('0xa5')](),_0x146e93);})[_0x2066('0x23')](function(_0xcb620){_0x16030e['where']('ui.ChatInteractionId\x20IN\x20?',_[_0x2066('0x3c')](_0xcb620,'id'));return db['sequelize']['query'](_0x16030e[_0x2066('0xa5')](),_0x146e93)[_0x2066('0x23')](function(_0x452431){var _0x559b37=_[_0x2066('0xba')](_0x452431,_0x2066('0xbb'));var _0x46913e=[];_0xcb620[_0x2066('0x3f')](function(_0x421a55){_0x46913e[_0x2066('0x40')](updateChatInteraction(_0x421a55,_0x41e98d,_0x559b37));});return BPromise['all'](_0x46913e);});});})[_0x2066('0x23')](function(_0x58c4a7){_0x24b540[_0x2066('0xbc')]=_0x58c4a7;return _0x24b540;})[_0x2066('0x23')](respondWithFilteredResult(_0x5ac4a9,_0x2a9c11));})['catch'](handleError(_0x5ac4a9,null));};exports['show']=function(_0x3e445b,_0x2ff736){var _0x35676f={'raw':![],'where':{'id':_0x3e445b[_0x2066('0xbd')]['id']}},_0x573b65={};_0x573b65[_0x2066('0x46')]=_['keys'](db[_0x2066('0x42')][_0x2066('0x43')]);_0x573b65['query']=_[_0x2066('0x7f')](_0x3e445b[_0x2066('0x47')]);_0x573b65[_0x2066('0x48')]=_[_0x2066('0x49')](_0x573b65[_0x2066('0x46')],_0x573b65[_0x2066('0x47')]);_0x35676f[_0x2066('0x4b')]=_['intersection'](_0x573b65[_0x2066('0x46')],qs['fields'](_0x3e445b[_0x2066('0x47')][_0x2066('0x4a')]));_0x35676f[_0x2066('0x4b')]=_0x35676f['attributes'][_0x2066('0x4c')]?_0x35676f[_0x2066('0x4b')]:_0x573b65['model'];if(_0x3e445b['query'][_0x2066('0xbe')]){_0x35676f['include']=[{'all':!![]}];}_0x35676f=_[_0x2066('0xa7')]({},_0x35676f,_0x3e445b['options']);return db['ChatInteraction'][_0x2066('0x69')](_0x35676f)[_0x2066('0x23')](handleEntityNotFound(_0x2ff736,null))[_0x2066('0x23')](respondWithResult(_0x2ff736,null))['catch'](handleError(_0x2ff736,null));};exports[_0x2066('0xbf')]=function(_0x210f82,_0x1063ed){return db[_0x2066('0x42')][_0x2066('0xbf')](_0x210f82[_0x2066('0x7e')],{})[_0x2066('0x23')](respondWithResult(_0x1063ed,0xc9))[_0x2066('0x2c')](handleError(_0x1063ed,null));};exports[_0x2066('0x38')]=function(_0x54d08b,_0x44f84d){if(_0x54d08b[_0x2066('0x7e')]['id']){delete _0x54d08b[_0x2066('0x7e')]['id'];}return db[_0x2066('0x42')][_0x2066('0x69')]({'where':{'id':_0x54d08b[_0x2066('0xbd')]['id']}})[_0x2066('0x23')](handleEntityNotFound(_0x44f84d,null))[_0x2066('0x23')](saveUpdates(_0x54d08b['body'],null))[_0x2066('0x23')](respondWithResult(_0x44f84d,null))[_0x2066('0x2c')](handleError(_0x44f84d,null));};exports['destroy']=function(_0x80f184,_0x1855c2){return db[_0x2066('0x42')][_0x2066('0x69')]({'where':{'id':_0x80f184[_0x2066('0xbd')]['id']}})[_0x2066('0x23')](handleEntityNotFound(_0x1855c2,null))[_0x2066('0x23')](removeEntity(_0x1855c2,null))[_0x2066('0x2c')](handleError(_0x1855c2,null));};exports[_0x2066('0xc0')]=function(_0x838e0f,_0x5bfc83){return db['ChatInteraction'][_0x2066('0xc0')]()[_0x2066('0x23')](respondWithResult(_0x5bfc83,null))[_0x2066('0x2c')](handleError(_0x5bfc83,null));};exports[_0x2066('0xc1')]=function(_0x2590e3,_0x173fae){if(_0x2590e3['body']['id']){delete _0x2590e3['body']['id'];}return db[_0x2066('0x42')]['find']({'where':{'id':_0x2590e3[_0x2066('0xbd')]['id']}})['then'](handleEntityNotFound(_0x173fae,null))[_0x2066('0x23')](saveUpdates(_0x2590e3[_0x2066('0x7e')],null))['then'](respondWithResult(_0x173fae,null))[_0x2066('0x2c')](handleError(_0x173fae,null));};exports[_0x2066('0xc2')]=function(_0x510403,_0x4c12db,_0x55f644){if(_0x510403[_0x2066('0x7e')]['id']){delete _0x510403[_0x2066('0x7e')]['id'];}return db['ChatInteraction']['find']({'where':{'id':_0x510403[_0x2066('0xbd')]['id']}})['then'](function(_0x187ca7){if(!_0x187ca7){logger[_0x2066('0x28')](_0x2066('0xc3'),_0x2066('0xc2'),0x194,_0x2066('0xc4'));_0x4c12db[_0x2066('0xc5')](0x194);}else{if(_0x187ca7[_0x2066('0x7c')]){throw new db[(_0x2066('0x20'))][(_0x2066('0x21'))](_0x2066('0xc6'));}}return _0x187ca7;})[_0x2066('0x23')](function(_0x21c735){if(_0x21c735){return _0x21c735[_0x2066('0x38')]({'closed':_0x510403[_0x2066('0x7e')][_0x2066('0xc7')],'disposition':_0x510403[_0x2066('0x7e')][_0x2066('0xc8')]})['then'](function(_0x5938f8){return _0x5938f8;});}})[_0x2066('0x23')](function(_0xec627c){return respondWithRpcPromise(_0x2066('0xc9'),_0x2066('0xc2'),_0x510403[_0x2066('0x7e')],client9004);})[_0x2066('0x23')](respondWithResult(_0x4c12db,null))[_0x2066('0x2c')](handleError(_0x4c12db,null));};exports[_0x2066('0xca')]=function(_0x18bdd4,_0x455338,_0x29bb91){_0x18bdd4[_0x2066('0x7e')]['name']=_0x18bdd4[_0x2066('0xcb')][_0x2066('0xcc')];_0x18bdd4['body'][_0x2066('0xcd')]=_0x18bdd4[_0x2066('0xcb')][_0x2066('0xce')];_0x18bdd4['body'][_0x2066('0x45')]=_0x18bdd4[_0x2066('0xcb')][_0x2066('0xcf')];return db[_0x2066('0xd0')][_0x2066('0xbf')](_0x18bdd4[_0x2066('0x7e')])['then'](respondWithResult(_0x455338,0xc9))['catch'](handleError(_0x455338,null));};exports['attachmentDownload']=function(_0x56f212,_0x5dab9a,_0x5eedac){return db[_0x2066('0x42')]['findOne']({'where':{'id':_0x56f212['params']['id']},'raw':!![]})['then'](handleEntityNotFound(_0x5dab9a,null))[_0x2066('0x23')](function(_0x397b59){if(_0x397b59){if(_0x397b59['closed']){return _0x5dab9a[_0x2066('0x32')](0x193)[_0x2066('0x2e')]({'status':0x193,'message':_0x2066('0xd1')});}return db[_0x2066('0xd0')][_0x2066('0xd2')]({'where':{'id':_0x56f212[_0x2066('0x47')][_0x2066('0xd3')]},'raw':!![]})[_0x2066('0x23')](handleEntityNotFound(_0x5dab9a,null));}})['then'](function(_0x3ee13e){if(_0x3ee13e){return _0x5dab9a[_0x2066('0xd4')](path[_0x2066('0xd5')](config[_0x2066('0xd6')],_0x2066('0xd7'),_0x3ee13e[_0x2066('0xcd')]));}})[_0x2066('0x2c')](handleError(_0x5dab9a,null));};exports[_0x2066('0xd8')]=function(_0x467f85,_0x50055c){var _0x1db2a1=null;var _0x42034a=null;var _0x4b64fb=null;var _0x22d293=null;if(_0x467f85['body']['id']){delete _0x467f85[_0x2066('0x7e')]['id'];}if(_0x467f85[_0x2066('0x7e')]['mailTranscript']){_0x22d293=path[_0x2066('0xd5')](config[_0x2066('0xd6')],_0x2066('0xd9'),util[_0x2066('0xda')](_0x2066('0xdb'),Date['now']()));_0x467f85[_0x2066('0x7e')][_0x2066('0xdc')]=_0x22d293;}return db['ChatInteraction'][_0x2066('0x69')]({'where':{'id':_0x467f85[_0x2066('0xbd')]['id']},'include':[{'model':db[_0x2066('0xdd')],'as':_0x2066('0xde'),'include':[{'model':db[_0x2066('0x79')],'as':_0x2066('0x79')}]}]})[_0x2066('0x23')](handleEntityNotFound(_0x50055c,null))[_0x2066('0x23')](saveUpdates(_0x467f85[_0x2066('0x7e')],null))[_0x2066('0x23')](function(_0x32e712){if(_0x32e712){_0x1db2a1=_0x32e712;return db[_0x2066('0xdf')][_0x2066('0x69')]({'where':{'id':_0x1db2a1[_0x2066('0x82')]}});}})[_0x2066('0x23')](function(_0x7bec06){if(_0x7bec06){_0x4b64fb=_0x7bec06;return db['CmContact'][_0x2066('0x69')]({'where':{'id':_0x1db2a1[_0x2066('0x72')]}});}})['then'](function(_0x1d0194){if(_0x1d0194){_0x42034a=_0x1d0194;if(_0x22d293){var _0x5d36eb=null;for(var _0x33ce24=0x1;_0x33ce24<_0x1db2a1[_0x2066('0xde')][_0x2066('0x4c')];++_0x33ce24){_0x5d36eb=_0x1db2a1[_0x2066('0xde')][_0x33ce24];var _0x120dc1=_0x5d36eb['UserId']?util[_0x2066('0xda')](_0x2066('0xe0'),_0x4b64fb[_0x2066('0xe1')],_0x5d36eb['UserId']):_0x2066('0xe2');var _0x48838b=_0x467f85[_0x2066('0x7e')]['customer']||util[_0x2066('0xda')]('%s%d','Visitor',_0x5d36eb[_0x2066('0x72')]);switch(_0x4b64fb[_0x2066('0xe3')]){case _0x2066('0xe4'):_0x120dc1=_0x5d36eb['UserId']?util[_0x2066('0xda')](_0x2066('0xe0'),_0x4b64fb[_0x2066('0xe1')],_0x5d36eb[_0x2066('0x7c')]):_0x2066('0xe2');break;case _0x2066('0xe5'):_0x120dc1=_0x5d36eb[_0x2066('0x7c')]?_0x5d36eb[_0x2066('0x79')][_0x2066('0xe6')]||_0x5d36eb[_0x2066('0x79')][_0x2066('0xe7')]:_0x2066('0xe2');break;case'agent_fullname':_0x120dc1=_0x5d36eb[_0x2066('0x7c')]?_0x5d36eb[_0x2066('0x79')][_0x2066('0xe7')]:'System';break;default:_0x120dc1=_0x5d36eb['UserId']?util[_0x2066('0xda')](_0x2066('0xe0'),_0x4b64fb[_0x2066('0xe1')],_0x5d36eb['UserId']):'System';}var _0x55b882=util[_0x2066('0xda')](_0x2066('0xe8'),moment(_0x5d36eb[_0x2066('0xe9')])[_0x2066('0xda')](_0x2066('0xea')),_0x5d36eb[_0x2066('0xeb')]==='in'?_0x48838b:_0x120dc1,_0x5d36eb[_0x2066('0x7e')]);if(!_0x5d36eb[_0x2066('0xec')]){fs[_0x2066('0xed')](_0x22d293,_0x55b882);}}return db[_0x2066('0xee')]['findOne']({'where':{'service':!![]},'include':[{'model':db[_0x2066('0xef')],'as':_0x2066('0xf0'),'raw':!![]}]});}}})[_0x2066('0x23')](function(_0x2a4bb0){if(_0x2a4bb0&&_0x2a4bb0[_0x2066('0xf0')]&&_0x467f85[_0x2066('0x7e')]){var _0x27b334={'tls':{'rejectUnauthorized':![]}};if(_0x2a4bb0[_0x2066('0xf0')]['service']){_0x27b334[_0x2066('0xf1')]=_0x2a4bb0[_0x2066('0xf0')][_0x2066('0xf1')];}else{_0x27b334[_0x2066('0xf2')]=_0x2a4bb0[_0x2066('0xf0')][_0x2066('0xf2')];_0x27b334[_0x2066('0xf3')]=_0x2a4bb0[_0x2066('0xf0')][_0x2066('0xf3')];_0x27b334[_0x2066('0xf4')]=_0x2a4bb0[_0x2066('0xf0')][_0x2066('0xf4')];}if(_0x2a4bb0[_0x2066('0xf0')]['authentication']){_0x27b334['auth']={'user':_0x2a4bb0[_0x2066('0xf0')][_0x2066('0xa1')],'pass':_0x2a4bb0[_0x2066('0xf0')]['pass']};}return respondWithRpcPromise(_0x2066('0xf5'),_0x2066('0xf6'),{'account':_0x27b334,'message':{'from':util['format'](_0x2066('0xf7'),_0x2a4bb0['name'],_0x2a4bb0[_0x2066('0xf8')]||_0x2a4bb0['Smtp'][_0x2066('0xa1')]),'to':_0x467f85['body'][_0x2066('0xf9')],'subject':'Mail\x20Transcript','text':util[_0x2066('0xda')](_0x2066('0xfa'),_0x467f85['body'][_0x2066('0xf9')]),'attachments':[{'path':_0x22d293}]}})[_0x2066('0x23')](function(){return _0x1db2a1;})[_0x2066('0x2c')](function(_0x995e5){console[_0x2066('0x28')](_0x995e5);});}else{return _0x1db2a1;}})[_0x2066('0x23')](respondWithStatusCode(_0x50055c,0xc8))[_0x2066('0x2c')](handleError(_0x50055c,null));};exports['addMessage']=function(_0x890f78,_0x44ebdc,_0x1deeee){return db[_0x2066('0xdd')]['find']({'where':{'id':_0x890f78[_0x2066('0xbd')]['id']}})[_0x2066('0x23')](handleEntityNotFound(_0x44ebdc,null))[_0x2066('0x23')](function(_0x5612b7){if(_0x5612b7){return _0x5612b7['addMessage'](_0x890f78[_0x2066('0x7e')]['ids'],_['omit'](_0x890f78[_0x2066('0x7e')],[_0x2066('0xfb'),'id'])||{});}})[_0x2066('0x23')](respondWithResult(_0x44ebdc,null))['catch'](handleError(_0x44ebdc,null));};exports[_0x2066('0xfc')]=function(_0x45c214,_0x1344cb,_0x2c7fad){var _0x284143={'raw':![],'where':{}};var _0x29db5a={};var _0x2e732b={'count':0x0,'rows':[]};return db[_0x2066('0x42')]['findOne']({'where':{'id':_0x45c214['params']['id']}})['then'](handleEntityNotFound(_0x1344cb,null))[_0x2066('0x23')](function(_0x6f1708){if(_0x6f1708){_0x29db5a[_0x2066('0x46')]=_[_0x2066('0x7f')](db[_0x2066('0xdd')][_0x2066('0x43')]);_0x29db5a['query']=_[_0x2066('0x7f')](_0x45c214[_0x2066('0x47')]);_0x29db5a[_0x2066('0x48')]=_[_0x2066('0x49')](_0x29db5a['model'],_0x29db5a[_0x2066('0x47')]);_0x284143[_0x2066('0x4b')]=_[_0x2066('0x49')](_0x29db5a[_0x2066('0x46')],qs[_0x2066('0x4a')](_0x45c214['query'][_0x2066('0x4a')]));_0x284143[_0x2066('0x4b')]=_0x284143[_0x2066('0x4b')][_0x2066('0x4c')]?_0x284143[_0x2066('0x4b')]:_0x29db5a[_0x2066('0x46')];if(!_0x45c214[_0x2066('0x47')]['hasOwnProperty'](_0x2066('0x4e'))){_0x284143[_0x2066('0x31')]=qs[_0x2066('0x31')](_0x45c214['query'][_0x2066('0x31')]);_0x284143[_0x2066('0x30')]=qs[_0x2066('0x30')](_0x45c214[_0x2066('0x47')][_0x2066('0x30')]);}_0x284143[_0x2066('0x9d')]=qs[_0x2066('0x4f')](_0x45c214[_0x2066('0x47')][_0x2066('0x4f')]);_0x284143[_0x2066('0x83')]=qs[_0x2066('0x48')](_[_0x2066('0xfd')](_0x45c214[_0x2066('0x47')],_0x29db5a[_0x2066('0x48')]));_0x284143[_0x2066('0x83')]['ChatInteractionId']=_0x6f1708['id'];if(_0x45c214['query'][_0x2066('0x92')]){_0x284143[_0x2066('0x83')]=_[_0x2066('0xa7')](_0x284143[_0x2066('0x83')],{'$or':_[_0x2066('0x3c')](_0x284143[_0x2066('0x4b')],function(_0x70404){var _0x599d3e={};_0x599d3e[_0x70404]={'$like':'%'+_0x45c214[_0x2066('0x47')][_0x2066('0x92')]+'%'};return _0x599d3e;})});}if(_0x45c214[_0x2066('0x47')][_0x2066('0x87')]){var _0x1bdc6f=_0x45c214[_0x2066('0x47')][_0x2066('0x87')][_0x2066('0x76')](',');var _0x4f2f67={};_0x4f2f67[_0x1bdc6f[0x0]]={'$gte':moment(_0x1bdc6f[0x1])[_0x2066('0xda')]('YYYY-MM-DD\x20HH:mm:ss')};_0x284143[_0x2066('0x83')]=_[_0x2066('0xa7')](_0x284143[_0x2066('0x83')],_0x4f2f67);}_0x284143=_[_0x2066('0xa7')]({},_0x284143,_0x45c214[_0x2066('0xfe')]);return db[_0x2066('0xdd')][_0x2066('0x2f')]({'where':_0x284143[_0x2066('0x83')]})[_0x2066('0x23')](function(_0x136281){_0x2e732b[_0x2066('0x2f')]=_0x136281;if(_0x45c214[_0x2066('0x47')]['includeAll']){_0x284143[_0x2066('0xff')]=[{'all':!![]}];}return db['ChatMessage'][_0x2066('0x100')](_0x284143);})['then'](function(_0x12c762){_0x2e732b['rows']=_0x12c762;return _0x2e732b;});}})[_0x2066('0x23')](respondWithFilteredResult(_0x1344cb,_0x284143))[_0x2066('0x2c')](handleError(_0x1344cb,null));};exports[_0x2066('0x101')]=function(_0xddd060,_0x29b1d6,_0xcc1717){var _0x42f448={'where':{}},_0x3197e5={},_0x3014a6={'count':0x0,'rows':[]};return db[_0x2066('0x42')]['findOne']({'where':{'id':_0xddd060['params']['id']}})['then'](handleEntityNotFound(_0x29b1d6,null))[_0x2066('0x23')](function(_0x4c2de3){if(_0x4c2de3){_0x3197e5['model']=_[_0x2066('0x7f')](db[_0x2066('0xdd')][_0x2066('0x43')]);_0x3197e5['query']=_[_0x2066('0x7f')](_0xddd060[_0x2066('0x47')]);_0x3197e5[_0x2066('0x48')]=_[_0x2066('0x49')](_0x3197e5[_0x2066('0x46')],_0x3197e5[_0x2066('0x47')]);_0x42f448['attributes']=_[_0x2066('0x49')](_0x3197e5[_0x2066('0x46')],qs['fields'](_0xddd060['query']['fields']));_0x42f448[_0x2066('0x4b')]=_0x42f448[_0x2066('0x4b')][_0x2066('0x4c')]?_0x42f448[_0x2066('0x4b')]:_0x3197e5[_0x2066('0x46')];if(!_0xddd060['query'][_0x2066('0x4d')](_0x2066('0x4e'))){_0x42f448[_0x2066('0x31')]=qs['limit'](_0xddd060[_0x2066('0x47')][_0x2066('0x31')]);_0x42f448[_0x2066('0x30')]=qs['offset'](_0xddd060[_0x2066('0x47')][_0x2066('0x30')]);}_0x42f448['order']=qs[_0x2066('0x4f')](_0xddd060[_0x2066('0x47')][_0x2066('0x4f')]);_0x42f448[_0x2066('0x83')]=qs['filters'](_['pick'](_0xddd060[_0x2066('0x47')],_0x3197e5['filters']));_0x42f448['where'][_0x2066('0xbb')]=_0x4c2de3['id'];if(_0xddd060[_0x2066('0x47')][_0x2066('0x92')]){_0x42f448[_0x2066('0x83')]=_['merge'](_0x42f448[_0x2066('0x83')],{'$or':_['map'](_0x42f448[_0x2066('0x4b')],function(_0x4474e2){var _0x168baa={};_0x168baa[_0x4474e2]={'$like':'%'+_0xddd060['query'][_0x2066('0x92')]+'%'};return _0x168baa;})});}_0x42f448[_0x2066('0x83')][_0x2066('0xec')]=![];if(_0xddd060[_0x2066('0x47')]['id']){_0x42f448[_0x2066('0x83')]['id']={'$gt':_0xddd060['query']['id']};}_0x42f448=_[_0x2066('0xa7')]({},_0x42f448,_0xddd060[_0x2066('0xfe')]);return db[_0x2066('0xdd')][_0x2066('0x2f')]({'where':_0x42f448[_0x2066('0x83')]})['then'](function(_0x262888){_0x3014a6[_0x2066('0x2f')]=_0x262888;_0x42f448[_0x2066('0xff')]=[];if(_0xddd060[_0x2066('0x47')][_0x2066('0x102')]){_0x42f448[_0x2066('0xff')][_0x2066('0x40')]({'model':db[_0x2066('0x79')],'as':'User','attributes':['id',_0x2066('0xe7'),_0x2066('0xe6')]});}if(_0xddd060[_0x2066('0x47')][_0x2066('0xbe')]){_0x42f448[_0x2066('0xff')]=[{'all':!![]}];}return db['ChatMessage']['findAll'](_0x42f448);})[_0x2066('0x23')](function(_0x482acc){_0x3014a6['rows']=_0x482acc;return _0x3014a6;});}})['then'](respondWithFilteredResult(_0x29b1d6,_0x42f448))['catch'](handleError(_0x29b1d6,null));};exports[_0x2066('0x103')]=function(_0x11f2ea,_0x20cfe2,_0x2690de){return db[_0x2066('0x42')][_0x2066('0x69')]({'where':{'id':_0x11f2ea[_0x2066('0xbd')]['id']}})[_0x2066('0x23')](handleEntityNotFound(_0x20cfe2,null))[_0x2066('0x23')](function(_0x5bccb0){if(_0x5bccb0){return _0x5bccb0[_0x2066('0x104')](_0x11f2ea[_0x2066('0x7e')][_0x2066('0xfb')],_[_0x2066('0x105')](_0x11f2ea[_0x2066('0x7e')],[_0x2066('0xfb'),'id'])||{})[_0x2066('0x106')](function(){return db[_0x2066('0x75')][_0x2066('0x100')]({'attributes':['id',_0x2066('0x3a'),_0x2066('0x52')],'where':{'id':_0x11f2ea[_0x2066('0x7e')][_0x2066('0xfb')]}});})[_0x2066('0x23')](function(_0x3ef1c1){socket['emit'](_0x2066('0x107'),{'id':Number(_0x11f2ea[_0x2066('0xbd')]['id']),'tags':_0x3ef1c1||[]});return{'id':Number(_0x11f2ea[_0x2066('0xbd')]['id']),'tags':_0x3ef1c1||[]};});}})[_0x2066('0x23')](respondWithResult(_0x20cfe2,null))['catch'](handleError(_0x20cfe2,null));};exports[_0x2066('0x108')]=function(_0x44178e,_0x21d557,_0x59d2b4){return db[_0x2066('0x42')]['find']({'where':{'id':_0x44178e[_0x2066('0xbd')]['id']}})[_0x2066('0x23')](handleEntityNotFound(_0x21d557,null))[_0x2066('0x23')](function(_0x381ec9){if(_0x381ec9){return _0x381ec9['removeTags'](_0x44178e[_0x2066('0x47')][_0x2066('0xfb')]);}})['then'](respondWithStatusCode(_0x21d557,null))['catch'](handleError(_0x21d557,null));};exports[_0x2066('0xd4')]=function(_0x9a7a3,_0x2bb60b){var _0x5b5f3f=moment()[_0x2066('0x109')]()['toString']();var _0x32abbe=path[_0x2066('0xd5')](config[_0x2066('0xd6')],_0x2066('0x10a'),'files',_0x2066('0x10b'));var _0x1ce72d=path[_0x2066('0xd5')](config['root'],_0x2066('0x10a'),_0x2066('0x10c'),_0x2066('0x10d'));var _0x465027=path[_0x2066('0xd5')](_0x32abbe,_0x5b5f3f);var _0x2af567=util[_0x2066('0xda')](_0x2066('0x10e'),_0x9a7a3[_0x2066('0xbd')]['id'],_0x5b5f3f);var _0x8fca96=path['join'](_0x32abbe,_0x2af567);var _0x9aea61=[];_0x9aea61[_0x2066('0x40')]({'model':db['User'],'as':'User','attributes':['id',_0x2066('0xe7')],'raw':!![]});_0x9aea61[_0x2066('0x40')]({'model':db[_0x2066('0x10f')],'as':_0x2066('0x6e'),'attributes':['id',_0x2066('0x110'),_0x2066('0x111')],'raw':!![]});if(_0x9a7a3[_0x2066('0x47')][_0x2066('0x10d')]){_0x9aea61['push']({'model':db[_0x2066('0xd0')],'as':_0x2066('0xd0'),'raw':!![]});}var _0x5534ef=[{'model':db[_0x2066('0xdd')],'as':_0x2066('0xde'),'attributes':['id','body','createdAt',_0x2066('0xeb'),_0x2066('0xec'),_0x2066('0x8c')],'include':_0x9aea61}];_0x5534ef[_0x2066('0x40')]({'model':db[_0x2066('0xdf')],'as':_0x2066('0x112'),'attributes':['id',_0x2066('0x3a')]});_0x5534ef['push']({'model':db[_0x2066('0x79')],'as':_0x2066('0x113'),'attributes':['id',_0x2066('0xe7')]});return db[_0x2066('0x42')][_0x2066('0x69')]({'where':{'id':_0x9a7a3['params']['id']},'include':_0x5534ef})[_0x2066('0x23')](handleEntityNotFound(_0x2bb60b,null))[_0x2066('0x23')](function(_0x112def){if(_0x112def){var _0x3a3a20=_0x112def[_0x2066('0x114')]({'plain':!![]});fs['mkdirSync'](_0x465027);var _0x50f70e={'format':'A4','border':_0x2066('0x115'),'header':{'height':'40px','contents':{'first':_0x2066('0x116')}},'footer':{'height':_0x2066('0x117'),'contents':{'default':util['format'](_0x2066('0x118'),util[_0x2066('0xda')](_0x2066('0x119'),_0x2066('0x11a'),_0x3a3a20['id']),moment()[_0x2066('0xda')](_0x2066('0x11b'))[_0x2066('0xa5')]())}}};var _0x28d343={'channel':_0x2066('0x11a'),'account':_0x3a3a20[_0x2066('0x112')][_0x2066('0x3a')],'agent':_0x3a3a20[_0x2066('0x113')]?_0x3a3a20[_0x2066('0x113')][_0x2066('0xe7')]:'N.A.','createdAt':moment(_0x3a3a20[_0x2066('0xe9')])[_0x2066('0xda')](_0x2066('0x11c'))[_0x2066('0xa5')](),'closedAt':_0x3a3a20[_0x2066('0xc7')]?moment(_0x3a3a20['closedAt'])[_0x2066('0xda')](_0x2066('0x11c'))[_0x2066('0xa5')]():'','disposition':_0x3a3a20['disposition'],'chatInfo':{'browser':_0x3a3a20[_0x2066('0x11d')],'os':_0x3a3a20['osName'],'referer':_0x3a3a20['referer'],'customerIp':_0x3a3a20[_0x2066('0x11e')],'customerPort':_0x3a3a20['customerPort']?_0x3a3a20[_0x2066('0x11f')]:_0x2066('0x120')},'messages':_(_0x3a3a20[_0x2066('0xde')])[_0x2066('0x121')]()[_0x2066('0x92')]({'secret':![]})[_0x2066('0x3c')](function(_0x24fce6){if(_0x24fce6[_0x2066('0xd0')]){var _0x3ca71d=path[_0x2066('0xd5')](_0x1ce72d,_0x24fce6[_0x2066('0xd0')]['basename']);if(fs[_0x2066('0x122')](_0x3ca71d)){fs[_0x2066('0x123')](_0x3ca71d)['pipe'](fs[_0x2066('0x124')](path[_0x2066('0xd5')](_0x465027,_0x24fce6[_0x2066('0xd0')][_0x2066('0xcd')])));}}return{'date':moment(_0x24fce6[_0x2066('0xe9')])[_0x2066('0xda')](_0x2066('0x11c'))['toString'](),'sender':_0x24fce6[_0x2066('0xeb')]==='out'?_0x24fce6['User']?_0x24fce6[_0x2066('0x79')][_0x2066('0xe7')]:_0x2066('0xe2'):_0x24fce6[_0x2066('0x6e')]['firstName']+(_0x24fce6['Contact'][_0x2066('0x111')]?'\x20'+_0x24fce6[_0x2066('0x6e')][_0x2066('0x111')]:''),'body':_0x24fce6[_0x2066('0xd0')]?_0x24fce6[_0x2066('0xd0')][_0x2066('0xcd')]:_0x24fce6[_0x2066('0x7e')],'direction':_0x24fce6['direction']===_0x2066('0x125')?'A':'C','secret':_0x24fce6[_0x2066('0xec')],'read':_0x24fce6['read'],'attachment':_0x24fce6[_0x2066('0xd0')]};})[_0x2066('0x6b')]()};return ejs[_0x2066('0x126')](path[_0x2066('0xd5')](config['root'],_0x2066('0x10a'),_0x2066('0x127'),_0x2066('0x128')),{'interaction':_0x28d343})[_0x2066('0x23')](function(_0x125721){return new BPromise(function(_0x257263,_0xb2d7ed){pdf[_0x2066('0xbf')](_0x125721,_0x50f70e)[_0x2066('0x129')](path['join'](_0x465027,_0x2066('0x12a')+_0x3a3a20['id']+'-'+_0x5b5f3f+_0x2066('0x12b')),function(_0x39212b,_0x1c8a08){if(_0x39212b)return _0xb2d7ed(_0x39212b);_0x257263(_0x1c8a08);});});})[_0x2066('0x23')](function(){return new BPromise(function(_0x4c7675,_0x58d700){zipdir(_0x465027,{'saveTo':_0x8fca96},function(_0x32b316,_0x10541b){if(_0x32b316)return _0x58d700(_0x32b316);return _0x4c7675(_0x10541b);});})['then'](function(){return new BPromise(function(_0x2e81b4,_0x1a8b1e){rimraf(_0x465027,function(_0x4f4075){if(_0x4f4075)_0x1a8b1e(_0x4f4075);return _0x2e81b4();});});})[_0x2066('0x23')](function(){return _0x2bb60b[_0x2066('0xd4')](_0x8fca96,_0x2af567,function(_0x59f9e3){if(_0x59f9e3){console[_0x2066('0x12c')](_0x2066('0x12d'),_0x59f9e3);}else{fs[_0x2066('0x12e')](_0x8fca96);}});});});}else{return _0x2bb60b['sendStatus'](0xc8);}})[_0x2066('0x2c')](handleError(_0x2bb60b,null));};
\ No newline at end of file
+var _0x08a8=['to-csv','ejs','lodash','crypto','jsforce','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','redis','defaults','localhost','socket.io-emitter','./chatInteraction.socket','register','jayson/promise','client','http','test','Sequelize','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~!@#$%^&-_=+[{]}.','request','then','info','ChatInteraction,\x20%s,\x20%s','request\x20sent','debug','ChatInteraction,\x20%s,\x20%s,\x20%s','stringify','error','code','message','sendStatus','status','end','offset','limit','set','Content-Range','json','apply','reject','save','update','destroy','stack','name','send','fullname','TagIds','split','forEach','push','catch','index','map','ChatInteraction','rawAttributes','type','key','model','keys','query','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','filters','field','color','from','select','u.id','u.fullname','ui.ChatInteractionId','user_has_chat_interactions','left_join','users','cm_contacts','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','o.id\x20=\x20i.UserId','chat_websites','a.id\x20=\x20i.ChatWebsiteId','chat_messages','me.ChatInteractionId\x20=\x20i.id','chat_interaction_has_tags','it.ChatInteractionId\x20=\x20i.id','tools_tags','t.id\x20=\x20it.TagId','expr','search','conditions','find','unreadMessages','value','having','`\x20=\x200','`\x20>\x200','$substring','getFullTextValue','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','ContactId','buildExpression','text','start','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','User','operator','UserId','body','some','isEmpty','i.ChatWebsiteId\x20IN\x20?','concat','parse','$gte','$lte','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','null','\x20=\x20?','read','tag','filter','replace','\x27\x27\x27\x27','i.id\x20LIKE\x20?','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','i.id','QueryTypes','SELECT','clone','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','t.id\x20IN\x20?','resolve','ChatWebsiteId','user','i.ChatWebsiteId\x20IS\x20NULL','count','sequelize','toString','keyBy','merge','a.key','Account.key','i.*','c.firstName','Contact.firstName','Contact.lastName','c.email','c.mobile','c.fax','Contact.fax','o.fullname','o.internal','Owner.internal','ui.ChatInteractionId\x20IN\x20?','groupBy','ChatInteractionId','all','rows','params','includeAll','include','options','create','describe','abandon','abandonInteraction,\x20%s,\x20%s,\x20%s','entity\x20not\x20found','Interaction\x20already\x20assigned','closed','AbandonInteraction','attachmentUpload','file','basename','filename','mimetype','Attachment','findOne','Unauthorized','attachId','close','mailTranscript','join','root','server/files/chat/upload/','transcript-%s.txt','ChatMessage','Messages','CmContact','format','%s%d','agentAlias','customer','Visitor','agentIdentifier','website_alias','System','agent_fullname','[%s]\x20%s:\x20%s\x0a','MM/DD/YYYY\x20HH:mm:ss','direction','secret','appendFileSync','MailServerOut','Smtp','service','host','port','secure','authentication','auth','pass','SendMail','email','Mail\x20Transcript','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','addMessage','ids','omit','YYYY-MM-DD\x20HH:mm:ss','getMyMessages','findAll','spread','Tag','emit','chatInteractionTags:save','removeTags','unix','server','tmp','files','attachments','Contact','lastName','createdAt','Account','Owner','get','mkdirSync','30px','
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
','%s\x20#%d','Chat','YYYY-MM-DD','N.A.','closedAt','disposition','referer','customerIp','customerPort','existsSync','createReadStream','pipe','out','firstName','renderFile','views','transcript-','download','log','err','unlinkSync','html-pdf','eml-format','zip-dir','request-promise','bluebird','mustache','util'];(function(_0x35cf8d,_0x3907c8){var _0xd6cb8b=function(_0x43a7e2){while(--_0x43a7e2){_0x35cf8d['push'](_0x35cf8d['shift']());}};_0xd6cb8b(++_0x3907c8);}(_0x08a8,0x112));var _0x808a=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x08a8[_0x3dd15e];return _0x231fd0;};'use strict';var pdf=require(_0x808a('0x0'));var emlformat=require(_0x808a('0x1'));var rimraf=require('rimraf');var zipdir=require(_0x808a('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x808a('0x3'));var moment=require('moment');var BPromise=require(_0x808a('0x4'));var Mustache=require(_0x808a('0x5'));var util=require(_0x808a('0x6'));var path=require('path');var sox=require('sox');var csv=require(_0x808a('0x7'));var ejs=require(_0x808a('0x8'));var fs=require('fs');var _=require(_0x808a('0x9'));var squel=require('squel');var crypto=require(_0x808a('0xa'));var jsforce=require(_0x808a('0xb'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0x808a('0xc'));var authService=require(_0x808a('0xd'));var qs=require(_0x808a('0xe'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x808a('0xf'))(_0x808a('0x10'));var utils=require(_0x808a('0x11'));var config=require(_0x808a('0x12'));var db=require(_0x808a('0x13'))['db'];config[_0x808a('0x14')]=_[_0x808a('0x15')](config[_0x808a('0x14')],{'host':_0x808a('0x16'),'port':0x18eb});var socket=require(_0x808a('0x17'))(new Redis(config[_0x808a('0x14')]));require(_0x808a('0x18'))[_0x808a('0x19')](socket);var jayson=require(_0x808a('0x1a'));var client=jayson[_0x808a('0x1b')]['http']({'port':0x232b});var client9004=jayson[_0x808a('0x1b')][_0x808a('0x1c')]({'port':0x232c});function checkPasswordPattern(_0x22a383,_0x4a35f2,_0x4dbf3e){if(_0x4dbf3e){var _0x1c302f=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x1c302f[_0x808a('0x1d')](_0x4a35f2)){return _0x22a383;}else{throw new db[(_0x808a('0x1e'))][(_0x808a('0x1f'))](_0x808a('0x20'));}}else{return _0x22a383;}}function respondWithRpcPromise(_0x1441a6,_0x120b75,_0x237972,_0x3c00aa){return new BPromise(function(_0x24dc98,_0x131f55){var _0x13c864=_0x3c00aa||client;return _0x13c864[_0x808a('0x21')](_0x1441a6,_0x237972)[_0x808a('0x22')](function(_0x5e5c50){logger[_0x808a('0x23')](_0x808a('0x24'),_0x120b75,_0x808a('0x25'));logger[_0x808a('0x26')](_0x808a('0x27'),_0x120b75,_0x808a('0x25'),JSON[_0x808a('0x28')](_0x5e5c50));if(_0x5e5c50[_0x808a('0x29')]){if(_0x5e5c50['error'][_0x808a('0x2a')]===0x1f4){logger[_0x808a('0x29')](_0x808a('0x24'),_0x120b75,_0x5e5c50[_0x808a('0x29')][_0x808a('0x2b')]);return _0x131f55(_0x5e5c50[_0x808a('0x29')][_0x808a('0x2b')]);}logger['error'](_0x808a('0x24'),_0x120b75,_0x5e5c50[_0x808a('0x29')][_0x808a('0x2b')]);return _0x24dc98(_0x5e5c50[_0x808a('0x29')][_0x808a('0x2b')]);}else{logger[_0x808a('0x23')](_0x808a('0x24'),_0x120b75,_0x808a('0x25'));_0x24dc98(_0x5e5c50['result']['message']);}})['catch'](function(_0x40ae77){logger[_0x808a('0x29')]('ChatInteraction,\x20%s,\x20%s',_0x120b75,_0x40ae77);_0x131f55(_0x40ae77);});});}function respondWithStatusCode(_0x1097bc,_0x50b46a){_0x50b46a=_0x50b46a||0xcc;return function(_0x15636f){if(_0x15636f){return _0x1097bc[_0x808a('0x2c')](_0x50b46a);}return _0x1097bc[_0x808a('0x2d')](_0x50b46a)[_0x808a('0x2e')]();};}function respondWithResult(_0x53da56,_0x4767b3){_0x4767b3=_0x4767b3||0xc8;return function(_0x35dd2c){if(_0x35dd2c){return _0x53da56['status'](_0x4767b3)['json'](_0x35dd2c);}};}function respondWithFilteredResult(_0x392834,_0x181021){return function(_0x4b7216){if(_0x4b7216){var _0x1c92b8=_0x4b7216['count'],_0x3aae30=_0x181021[_0x808a('0x2f')],_0x1feaea=_0x181021[_0x808a('0x2f')]+_0x181021[_0x808a('0x30')],_0x51b2c8;if(_0x1feaea>=_0x1c92b8){_0x1feaea=_0x1c92b8;_0x51b2c8=0xc8;}else{_0x51b2c8=0xce;}_0x392834['status'](_0x51b2c8);return _0x392834[_0x808a('0x31')](_0x808a('0x32'),_0x3aae30+'-'+_0x1feaea+'/'+_0x1c92b8)[_0x808a('0x33')](_0x4b7216);}return null;};}function patchUpdates(_0xcd2998){return function(_0x23439a){try{jsonpatch[_0x808a('0x34')](_0x23439a,_0xcd2998,!![]);}catch(_0x536030){return BPromise[_0x808a('0x35')](_0x536030);}return _0x23439a[_0x808a('0x36')]();};}function saveUpdates(_0x3d6671,_0x3eeece){return function(_0x347bfb){if(_0x347bfb){return _0x347bfb[_0x808a('0x37')](_0x3d6671)['then'](function(_0x581136){return _0x581136;});}return null;};}function removeEntity(_0x34a9c2,_0x54a9d9){return function(_0x476c95){if(_0x476c95){return _0x476c95[_0x808a('0x38')]()[_0x808a('0x22')](function(){_0x34a9c2[_0x808a('0x2d')](0xcc)['end']();});}};}function handleEntityNotFound(_0x22f9c6,_0x1dcbc2){return function(_0x352651){if(!_0x352651){_0x22f9c6[_0x808a('0x2c')](0x194);}return _0x352651;};}function handleError(_0x1a2468,_0x4d9497){_0x4d9497=_0x4d9497||0x1f4;return function(_0x3fd948){logger[_0x808a('0x29')](_0x3fd948[_0x808a('0x39')]);if(_0x3fd948[_0x808a('0x3a')]){delete _0x3fd948[_0x808a('0x3a')];}_0x1a2468[_0x808a('0x2d')](_0x4d9497)[_0x808a('0x3b')](_0x3fd948);};}function getInteractionUsers(_0x49306a,_0x5eaa27){return new BPromise(function(_0x4a6079,_0x5207a1){try{if(_0x5eaa27[_0x49306a['id']]){_0x49306a['Users']=_['map'](_0x5eaa27[_0x49306a['id']],function(_0x173d02){return{'id':_0x173d02['id'],'fullname':_0x173d02[_0x808a('0x3c')]};});}}catch(_0x1ca9e3){_0x5207a1(_0x1ca9e3);}_0x4a6079(_0x49306a);});}function getInteractionTags(_0x222649,_0x3273b4){return new BPromise(function(_0x292e54,_0x30a49b){try{if(_0x222649[_0x808a('0x3d')]){_0x222649['Tags']=[];_0x222649[_0x808a('0x3d')][_0x808a('0x3e')](',')[_0x808a('0x3f')](function(_0x5dbebf){_0x222649['Tags'][_0x808a('0x40')](_0x3273b4[_0x5dbebf]);});}delete _0x222649['TagIds'];}catch(_0x15d932){_0x30a49b(_0x15d932);}_0x292e54(_0x222649);});}function updateChatInteraction(_0x388bc4,_0x768e3,_0x4d184d){return new BPromise(function(_0x2240f9,_0x1b7782){return getInteractionUsers(_0x388bc4,_0x4d184d)['then'](function(_0x5b16d3){return getInteractionTags(_0x5b16d3,_0x768e3);})[_0x808a('0x22')](function(_0x3f0707){_0x2240f9(_0x3f0707);})[_0x808a('0x41')](function(_0x183a6d){_0x1b7782(_0x183a6d);});});}exports[_0x808a('0x42')]=function(_0x45c243,_0x4c624a){var _0x54b232={},_0x4d5f2e={},_0x22c430={'count':0x0,'rows':[]};var _0xf2d42=_[_0x808a('0x43')](db[_0x808a('0x44')][_0x808a('0x45')],function(_0x2a0fe1){return{'name':_0x2a0fe1['fieldName'],'type':_0x2a0fe1[_0x808a('0x46')][_0x808a('0x47')]};});_0x4d5f2e[_0x808a('0x48')]=_[_0x808a('0x43')](_0xf2d42,_0x808a('0x3a'));_0x4d5f2e['query']=_[_0x808a('0x49')](_0x45c243[_0x808a('0x4a')]);_0x4d5f2e['filters']=_[_0x808a('0x4b')](_0x4d5f2e['model'],_0x4d5f2e[_0x808a('0x4a')]);_0x54b232['attributes']=_['intersection'](_0x4d5f2e[_0x808a('0x48')],qs[_0x808a('0x4c')](_0x45c243[_0x808a('0x4a')]['fields']));_0x54b232[_0x808a('0x4d')]=_0x54b232['attributes'][_0x808a('0x4e')]?_0x54b232[_0x808a('0x4d')]:_0x4d5f2e[_0x808a('0x48')];if(!_0x45c243[_0x808a('0x4a')][_0x808a('0x4f')](_0x808a('0x50'))){_0x54b232['limit']=qs[_0x808a('0x30')](_0x45c243[_0x808a('0x4a')]['limit']);_0x54b232[_0x808a('0x2f')]=qs[_0x808a('0x2f')](_0x45c243[_0x808a('0x4a')][_0x808a('0x2f')]);}_0x54b232[_0x808a('0x51')]=qs[_0x808a('0x52')](_0x45c243[_0x808a('0x4a')][_0x808a('0x52')]);_0x54b232[_0x808a('0x53')]=qs[_0x808a('0x54')](_['pick'](_0x45c243[_0x808a('0x4a')],_0x4d5f2e['filters']));var _0x2f33e9=[];var _0x21b521=squel['select']()[_0x808a('0x55')]('id')[_0x808a('0x55')](_0x808a('0x3a'))[_0x808a('0x55')](_0x808a('0x56'))[_0x808a('0x57')]('tools_tags');var _0x473467=squel[_0x808a('0x58')]()[_0x808a('0x55')](_0x808a('0x59'))[_0x808a('0x55')](_0x808a('0x5a'))['field'](_0x808a('0x5b'))['from'](_0x808a('0x5c'),'ui')[_0x808a('0x5d')](_0x808a('0x5e'),'u','u.id\x20=\x20ui.UserId');var _0xb64dc8=squel['select']()[_0x808a('0x57')]('chat_interactions','i')[_0x808a('0x5d')](_0x808a('0x5f'),'c',_0x808a('0x60'))[_0x808a('0x5d')]('users','o',_0x808a('0x61'))[_0x808a('0x5d')](_0x808a('0x62'),'a',_0x808a('0x63'))[_0x808a('0x5d')](_0x808a('0x64'),'me',_0x808a('0x65'))[_0x808a('0x5d')](_0x808a('0x66'),'it',_0x808a('0x67'))[_0x808a('0x5d')](_0x808a('0x68'),'t',_0x808a('0x69'));var _0x36836e=squel[_0x808a('0x6a')]();var _0x2acf12=[];var _0x385aa0=squel['expr']();var _0x6220a4;if(_0x45c243[_0x808a('0x4a')][_0x808a('0x6b')]){_0x6220a4=as['parseSearch'](_0x45c243[_0x808a('0x4a')][_0x808a('0x6b')]);var _0x54324d=_0x6220a4['sqlOperator'];for(var _0x11f26c=0x0;_0x11f26c<_0x6220a4['conditions'][_0x808a('0x4e')];_0x11f26c++){var _0x1eff8e=_0x6220a4[_0x808a('0x6c')][_0x11f26c];var _0x3f275='i';var _0x393486=_[_0x808a('0x6d')](_0xf2d42,[_0x808a('0x3a'),_0x1eff8e['field']]);if(!_0x393486){switch(_0x1eff8e[_0x808a('0x55')]){case _0x808a('0x6e'):if(_0x1eff8e[_0x808a('0x6f')]==0x1){_0xb64dc8[_0x808a('0x70')]('`'+_0x1eff8e['field']+_0x808a('0x71'));}else{_0xb64dc8[_0x808a('0x70')]('`'+_0x1eff8e[_0x808a('0x55')]+_0x808a('0x72'));}break;case'Contact':if(_0x1eff8e['operator']===_0x808a('0x73')){if(_0x1eff8e[_0x808a('0x6f')][_0x808a('0x3e')]('\x20')[_0x808a('0x4e')]>0x1){_0x36836e[_0x54324d]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x808a('0x74')](_0x1eff8e[_0x808a('0x6f')]),null);}else{var _0x44a5b1='%'+_0x1eff8e[_0x808a('0x6f')]+'%';_0x36836e[_0x54324d](_0x808a('0x75'),_0x44a5b1,_0x44a5b1,_0x44a5b1);}}else{_0x393486=_[_0x808a('0x6d')](_0xf2d42,[_0x808a('0x3a'),'ContactId']);_0x1eff8e[_0x808a('0x55')]=_0x808a('0x76');_0x2fb16d=as[_0x808a('0x77')](_0x3f275,_0x393486['type'],_0x1eff8e);_0x36836e[_0x54324d](_0x2fb16d[_0x808a('0x78')],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x79')],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x2e')]);}break;case'Tag':var _0x269972=_0x1eff8e[_0x808a('0x6f')][_0x808a('0x3e')](',')[_0x808a('0x43')](function(_0x393a44){return Number(_0x393a44);});_0x269972['forEach'](function(_0x3f1467){_0x385aa0['or'](_0x808a('0x7a'),'%,'+_0x3f1467+',%');});_0x2acf12=_['union'](_0x2acf12,_0x269972);break;case _0x808a('0x7b'):if(_0x1eff8e[_0x808a('0x7c')]==='$substring'){_0x36836e[_0x54324d]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x1eff8e[_0x808a('0x6f')]+'%',null);}else{_0x393486=_[_0x808a('0x6d')](_0xf2d42,[_0x808a('0x3a'),_0x808a('0x7d')]);_0x1eff8e['field']=_0x808a('0x7d');_0x2fb16d=as[_0x808a('0x77')](_0x3f275,_0x393486['type'],_0x1eff8e);_0x36836e[_0x54324d](_0x2fb16d[_0x808a('0x78')],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x79')],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x2e')]);}break;case _0x808a('0x7e'):_0x2fb16d=as['buildExpression']('me',null,_0x1eff8e);_0x36836e[_0x54324d](_0x2fb16d[_0x808a('0x78')],_0x2fb16d[_0x808a('0x6f')]['start'],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x2e')]);break;}}else{var _0x2fb16d=as[_0x808a('0x77')](_0x3f275,_0x393486['type'],_0x1eff8e);_0x36836e[_0x54324d](_0x2fb16d[_0x808a('0x78')],_0x2fb16d[_0x808a('0x6f')]['start'],_0x2fb16d[_0x808a('0x6f')][_0x808a('0x2e')]);}}}else{var _0x90891e=_(_0x45c243[_0x808a('0x4a')])[_0x808a('0x49')]()[_0x808a('0x43')](function(_0x5dc084){return _[_0x808a('0x7f')](_0xf2d42,['name',_0x5dc084])?_0x5dc084:undefined;})['compact']()[_0x808a('0x6f')]();if(!_[_0x808a('0x80')](_0x90891e)){_0x90891e['forEach'](function(_0x37d84e){if(_0x37d84e==='ChatWebsiteId'){_0xb64dc8[_0x808a('0x53')](_0x808a('0x81'),[][_0x808a('0x82')](_0x45c243[_0x808a('0x4a')][_0x37d84e]));}else if(_0x37d84e==='createdAt'){var _0x27ac0d=JSON[_0x808a('0x83')](_0x45c243[_0x808a('0x4a')][_0x37d84e])[_0x808a('0x84')];var _0x3cb1c5=JSON[_0x808a('0x83')](_0x45c243[_0x808a('0x4a')][_0x37d84e])[_0x808a('0x85')];_0xb64dc8[_0x808a('0x53')](_0x808a('0x86'),_0x27ac0d,_0x3cb1c5);}else{if(_0x45c243[_0x808a('0x4a')][_0x37d84e]===_0x808a('0x87')){_0xb64dc8[_0x808a('0x53')]('i.'+_0x37d84e+'\x20IS\x20NULL');}else{_0xb64dc8[_0x808a('0x53')]('i.'+_0x37d84e+_0x808a('0x88'),_0x45c243['query'][_0x37d84e]);}}});}if(_0x45c243[_0x808a('0x4a')][_0x808a('0x89')]){if(_0x45c243[_0x808a('0x4a')][_0x808a('0x89')]==0x1){_0xb64dc8[_0x808a('0x70')]('`unreadMessages`\x20=\x200');}else{_0xb64dc8['having']('`unreadMessages`\x20>\x200');}}if(_0x45c243['query']['tag']){_0x2acf12=_['isArray'](_0x45c243[_0x808a('0x4a')]['tag'])?_0x45c243['query'][_0x808a('0x8a')]:new Array(_0x45c243[_0x808a('0x4a')]['tag']);_0x2acf12[_0x808a('0x3f')](function(_0x43edc){_0x385aa0['or'](_0x808a('0x7a'),'%,'+_0x43edc+',%');});}if(_0x45c243[_0x808a('0x4a')][_0x808a('0x8b')]){var _0x360031=_0x45c243[_0x808a('0x4a')][_0x808a('0x8b')]['replace']('\x5c','\x5c\x5c')[_0x808a('0x8c')]('\x27\x27',_0x808a('0x8d'));if(qs['isNumeric'](_0x360031)){_0x36836e['or'](_0x808a('0x8e'),_0x360031+'%');}else{_0x36836e['or'](_0x808a('0x8f'),qs['getFullTextValue'](_0x360031))['or'](_0x808a('0x90'),_0x360031+'%');}}}_0xb64dc8['where'](_0x36836e);_0xb64dc8['group'](_0x808a('0x91'));var _0x2ea7a5={'type':db[_0x808a('0x1e')][_0x808a('0x92')][_0x808a('0x93')],'raw':!![]};var _0x26fe77=_0xb64dc8[_0x808a('0x94')]();_0x26fe77[_0x808a('0x55')](_0x808a('0x91'));_0x26fe77[_0x808a('0x55')](_0x808a('0x95'),'unreadMessages');if(_0x54b232[_0x808a('0x51')]){_0x54b232['order']['forEach'](function(_0x59723f){_0xb64dc8['order']('i.'+_0x59723f[0x0],_0x59723f[0x1]==='DESC'?![]:!![]);});}if(!_[_0x808a('0x80')](_0x2acf12)){_0xb64dc8[_0x808a('0x70')](_0x385aa0);_0x26fe77[_0x808a('0x53')](_0x808a('0x96'),_0x2acf12);}BPromise[_0x808a('0x97')]()[_0x808a('0x22')](function(){if(!_0x6220a4&&_0x45c243[_0x808a('0x4a')][_0x808a('0x98')])return;return _0x45c243[_0x808a('0x99')]['getChatWebsites']({'attributes':['id'],'raw':!![]})[_0x808a('0x22')](function(_0xd81d1d){if(_[_0x808a('0x80')](_0xd81d1d)){_0x26fe77[_0x808a('0x53')](_0x808a('0x9a'));_0xb64dc8['where'](_0x808a('0x9a'));}else{_0x26fe77['where']('i.ChatWebsiteId\x20IN\x20?',_['map'](_0xd81d1d,'id'));_0xb64dc8['where'](_0x808a('0x81'),_['map'](_0xd81d1d,'id'));}});})[_0x808a('0x22')](function(){db['sequelize'][_0x808a('0x4a')](_0x26fe77['toString'](),_0x2ea7a5)[_0x808a('0x22')](function(_0x33d2b8){_0x22c430[_0x808a('0x9b')]=_0x33d2b8['length'];if(_0x22c430['count']===0x0)return[];return db[_0x808a('0x9c')][_0x808a('0x4a')](_0x21b521[_0x808a('0x9d')](),_0x2ea7a5)[_0x808a('0x22')](function(_0x1a6f7b){_0x2f33e9=_[_0x808a('0x9e')](_0x1a6f7b,'id');_0x2ea7a5=_[_0x808a('0x9f')](_0x2ea7a5,{'model':db[_0x808a('0x44')],'mapToModel':!![],'raw':!![],'nest':!![]});if(_0x45c243['query'][_0x808a('0x4c')]){_0x54b232[_0x808a('0x4d')]['forEach'](function(_0x5255c8){_0xb64dc8[_0x808a('0x55')]('i.'+_0x5255c8);});}else{_0xb64dc8['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x808a('0x6e'));_0xb64dc8[_0x808a('0x55')](_0x808a('0xa0'),_0x808a('0xa1'));_0xb64dc8[_0x808a('0x55')]('a.mandatoryDisposition','Account.mandatoryDisposition');_0xb64dc8[_0x808a('0x55')](_0x808a('0xa2'));_0xb64dc8[_0x808a('0x55')](_0x808a('0xa3'),_0x808a('0xa4'));_0xb64dc8[_0x808a('0x55')]('c.lastName',_0x808a('0xa5'));_0xb64dc8[_0x808a('0x55')](_0x808a('0xa6'),'Contact.email');_0xb64dc8[_0x808a('0x55')]('c.phone','Contact.phone');_0xb64dc8['field'](_0x808a('0xa7'),'Contact.mobile');_0xb64dc8[_0x808a('0x55')](_0x808a('0xa8'),_0x808a('0xa9'));_0xb64dc8[_0x808a('0x55')](_0x808a('0xaa'),'Owner.fullname');_0xb64dc8['field'](_0x808a('0xab'),_0x808a('0xac'));_0xb64dc8[_0x808a('0x55')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x808a('0x3d'));}_0xb64dc8[_0x808a('0x30')](_0x54b232['limit']);_0xb64dc8[_0x808a('0x2f')](_0x54b232['offset']);return db[_0x808a('0x9c')]['query'](_0xb64dc8[_0x808a('0x9d')](),_0x2ea7a5);})['then'](function(_0x2fcd83){_0x473467[_0x808a('0x53')](_0x808a('0xad'),_[_0x808a('0x43')](_0x2fcd83,'id'));return db[_0x808a('0x9c')][_0x808a('0x4a')](_0x473467['toString'](),_0x2ea7a5)['then'](function(_0x161738){var _0x376e74=_[_0x808a('0xae')](_0x161738,_0x808a('0xaf'));var _0x249a90=[];_0x2fcd83[_0x808a('0x3f')](function(_0x4d9c51){_0x249a90[_0x808a('0x40')](updateChatInteraction(_0x4d9c51,_0x2f33e9,_0x376e74));});return BPromise[_0x808a('0xb0')](_0x249a90);});});})[_0x808a('0x22')](function(_0x4a2b31){_0x22c430[_0x808a('0xb1')]=_0x4a2b31;return _0x22c430;})[_0x808a('0x22')](respondWithFilteredResult(_0x4c624a,_0x54b232));})[_0x808a('0x41')](handleError(_0x4c624a,null));};exports['show']=function(_0x56e95c,_0xf2b2d9){var _0x3fe26c={'raw':![],'where':{'id':_0x56e95c[_0x808a('0xb2')]['id']}},_0x54b769={};_0x54b769[_0x808a('0x48')]=_['keys'](db[_0x808a('0x44')][_0x808a('0x45')]);_0x54b769[_0x808a('0x4a')]=_[_0x808a('0x49')](_0x56e95c[_0x808a('0x4a')]);_0x54b769['filters']=_[_0x808a('0x4b')](_0x54b769[_0x808a('0x48')],_0x54b769['query']);_0x3fe26c[_0x808a('0x4d')]=_['intersection'](_0x54b769[_0x808a('0x48')],qs[_0x808a('0x4c')](_0x56e95c[_0x808a('0x4a')]['fields']));_0x3fe26c[_0x808a('0x4d')]=_0x3fe26c[_0x808a('0x4d')][_0x808a('0x4e')]?_0x3fe26c[_0x808a('0x4d')]:_0x54b769[_0x808a('0x48')];if(_0x56e95c[_0x808a('0x4a')][_0x808a('0xb3')]){_0x3fe26c[_0x808a('0xb4')]=[{'all':!![]}];}_0x3fe26c=_[_0x808a('0x9f')]({},_0x3fe26c,_0x56e95c[_0x808a('0xb5')]);return db['ChatInteraction'][_0x808a('0x6d')](_0x3fe26c)[_0x808a('0x22')](handleEntityNotFound(_0xf2b2d9,null))[_0x808a('0x22')](respondWithResult(_0xf2b2d9,null))[_0x808a('0x41')](handleError(_0xf2b2d9,null));};exports['create']=function(_0x54f4dd,_0x379edf){return db[_0x808a('0x44')][_0x808a('0xb6')](_0x54f4dd[_0x808a('0x7e')],{})[_0x808a('0x22')](respondWithResult(_0x379edf,0xc9))[_0x808a('0x41')](handleError(_0x379edf,null));};exports[_0x808a('0x37')]=function(_0x2a2597,_0x2d3f5a){if(_0x2a2597[_0x808a('0x7e')]['id']){delete _0x2a2597[_0x808a('0x7e')]['id'];}return db['ChatInteraction'][_0x808a('0x6d')]({'where':{'id':_0x2a2597[_0x808a('0xb2')]['id']}})[_0x808a('0x22')](handleEntityNotFound(_0x2d3f5a,null))['then'](saveUpdates(_0x2a2597['body'],null))[_0x808a('0x22')](respondWithResult(_0x2d3f5a,null))[_0x808a('0x41')](handleError(_0x2d3f5a,null));};exports[_0x808a('0x38')]=function(_0x83901,_0x523f7d){return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x83901[_0x808a('0xb2')]['id']}})[_0x808a('0x22')](handleEntityNotFound(_0x523f7d,null))[_0x808a('0x22')](removeEntity(_0x523f7d,null))[_0x808a('0x41')](handleError(_0x523f7d,null));};exports[_0x808a('0xb7')]=function(_0x4769ff,_0x32dbea){return db[_0x808a('0x44')][_0x808a('0xb7')]()[_0x808a('0x22')](respondWithResult(_0x32dbea,null))[_0x808a('0x41')](handleError(_0x32dbea,null));};exports['customUpdate']=function(_0x1cf157,_0x2893d1){if(_0x1cf157[_0x808a('0x7e')]['id']){delete _0x1cf157[_0x808a('0x7e')]['id'];}return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x1cf157[_0x808a('0xb2')]['id']}})[_0x808a('0x22')](handleEntityNotFound(_0x2893d1,null))[_0x808a('0x22')](saveUpdates(_0x1cf157[_0x808a('0x7e')],null))[_0x808a('0x22')](respondWithResult(_0x2893d1,null))[_0x808a('0x41')](handleError(_0x2893d1,null));};exports[_0x808a('0xb8')]=function(_0x192c29,_0x3d7d76,_0x6af20f){if(_0x192c29[_0x808a('0x7e')]['id']){delete _0x192c29[_0x808a('0x7e')]['id'];}return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x192c29[_0x808a('0xb2')]['id']}})[_0x808a('0x22')](function(_0x424a83){if(!_0x424a83){logger[_0x808a('0x29')](_0x808a('0xb9'),_0x808a('0xb8'),0x194,_0x808a('0xba'));_0x3d7d76[_0x808a('0x2c')](0x194);}else{if(_0x424a83[_0x808a('0x7d')]){throw new db[(_0x808a('0x1e'))][(_0x808a('0x1f'))](_0x808a('0xbb'));}}return _0x424a83;})[_0x808a('0x22')](function(_0x8b7b51){if(_0x8b7b51){return _0x8b7b51['update']({'closed':_0x192c29[_0x808a('0x7e')][_0x808a('0xbc')],'disposition':_0x192c29['body']['disposition']})[_0x808a('0x22')](function(_0x36e183){return _0x36e183;});}})[_0x808a('0x22')](function(_0x150df5){return respondWithRpcPromise(_0x808a('0xbd'),_0x808a('0xb8'),_0x192c29[_0x808a('0x7e')],client9004);})[_0x808a('0x22')](respondWithResult(_0x3d7d76,null))['catch'](handleError(_0x3d7d76,null));};exports[_0x808a('0xbe')]=function(_0x3bfb68,_0x2217fd,_0x17853b){_0x3bfb68['body'][_0x808a('0x3a')]=_0x3bfb68[_0x808a('0xbf')]['originalname'];_0x3bfb68[_0x808a('0x7e')][_0x808a('0xc0')]=_0x3bfb68[_0x808a('0xbf')][_0x808a('0xc1')];_0x3bfb68[_0x808a('0x7e')][_0x808a('0x46')]=_0x3bfb68[_0x808a('0xbf')][_0x808a('0xc2')];return db[_0x808a('0xc3')][_0x808a('0xb6')](_0x3bfb68[_0x808a('0x7e')])[_0x808a('0x22')](respondWithResult(_0x2217fd,0xc9))['catch'](handleError(_0x2217fd,null));};exports['attachmentDownload']=function(_0x328c8c,_0x8c3939,_0x14970b){return db[_0x808a('0x44')][_0x808a('0xc4')]({'where':{'id':_0x328c8c[_0x808a('0xb2')]['id']},'raw':!![]})[_0x808a('0x22')](handleEntityNotFound(_0x8c3939,null))[_0x808a('0x22')](function(_0x43982f){if(_0x43982f){if(_0x43982f[_0x808a('0xbc')]){return _0x8c3939['status'](0x193)[_0x808a('0x33')]({'status':0x193,'message':_0x808a('0xc5')});}return db[_0x808a('0xc3')][_0x808a('0xc4')]({'where':{'id':_0x328c8c[_0x808a('0x4a')][_0x808a('0xc6')]},'raw':!![]})[_0x808a('0x22')](handleEntityNotFound(_0x8c3939,null));}})[_0x808a('0x22')](function(_0x922964){if(_0x922964){return _0x8c3939['download'](path['join'](config['root'],'server/files/attachments/',_0x922964[_0x808a('0xc0')]));}})[_0x808a('0x41')](handleError(_0x8c3939,null));};exports[_0x808a('0xc7')]=function(_0x19aab4,_0x7a2bdc){var _0x52749e=null;var _0x3b158f=null;var _0x4c5c5e=null;var _0x1938e7=null;if(_0x19aab4[_0x808a('0x7e')]['id']){delete _0x19aab4[_0x808a('0x7e')]['id'];}if(_0x19aab4[_0x808a('0x7e')][_0x808a('0xc8')]){_0x1938e7=path[_0x808a('0xc9')](config[_0x808a('0xca')],_0x808a('0xcb'),util['format'](_0x808a('0xcc'),Date['now']()));_0x19aab4[_0x808a('0x7e')]['pathTranscript']=_0x1938e7;}return db[_0x808a('0x44')]['find']({'where':{'id':_0x19aab4[_0x808a('0xb2')]['id']},'include':[{'model':db[_0x808a('0xcd')],'as':_0x808a('0xce'),'include':[{'model':db[_0x808a('0x7b')],'as':_0x808a('0x7b')}]}]})[_0x808a('0x22')](handleEntityNotFound(_0x7a2bdc,null))[_0x808a('0x22')](saveUpdates(_0x19aab4[_0x808a('0x7e')],null))[_0x808a('0x22')](function(_0x210f8b){if(_0x210f8b){_0x52749e=_0x210f8b;return db['ChatWebsite'][_0x808a('0x6d')]({'where':{'id':_0x52749e[_0x808a('0x98')]}});}})[_0x808a('0x22')](function(_0x73ca13){if(_0x73ca13){_0x4c5c5e=_0x73ca13;return db[_0x808a('0xcf')][_0x808a('0x6d')]({'where':{'id':_0x52749e[_0x808a('0x76')]}});}})[_0x808a('0x22')](function(_0x347405){if(_0x347405){_0x3b158f=_0x347405;if(_0x1938e7){var _0x25a2df=null;for(var _0x5c3772=0x1;_0x5c3772<_0x52749e[_0x808a('0xce')][_0x808a('0x4e')];++_0x5c3772){_0x25a2df=_0x52749e[_0x808a('0xce')][_0x5c3772];var _0x4e7827=_0x25a2df[_0x808a('0x7d')]?util[_0x808a('0xd0')](_0x808a('0xd1'),_0x4c5c5e[_0x808a('0xd2')],_0x25a2df['UserId']):'System';var _0x294045=_0x19aab4[_0x808a('0x7e')][_0x808a('0xd3')]||util[_0x808a('0xd0')]('%s%d',_0x808a('0xd4'),_0x25a2df[_0x808a('0x76')]);switch(_0x4c5c5e[_0x808a('0xd5')]){case _0x808a('0xd6'):_0x4e7827=_0x25a2df[_0x808a('0x7d')]?util[_0x808a('0xd0')]('%s%d',_0x4c5c5e[_0x808a('0xd2')],_0x25a2df[_0x808a('0x7d')]):_0x808a('0xd7');break;case'agent_alias':_0x4e7827=_0x25a2df[_0x808a('0x7d')]?_0x25a2df['User']['alias']||_0x25a2df[_0x808a('0x7b')][_0x808a('0x3c')]:_0x808a('0xd7');break;case _0x808a('0xd8'):_0x4e7827=_0x25a2df[_0x808a('0x7d')]?_0x25a2df[_0x808a('0x7b')][_0x808a('0x3c')]:_0x808a('0xd7');break;default:_0x4e7827=_0x25a2df[_0x808a('0x7d')]?util[_0x808a('0xd0')](_0x808a('0xd1'),_0x4c5c5e[_0x808a('0xd2')],_0x25a2df[_0x808a('0x7d')]):_0x808a('0xd7');}var _0x3c9ad5=util[_0x808a('0xd0')](_0x808a('0xd9'),moment(_0x25a2df['createdAt'])[_0x808a('0xd0')](_0x808a('0xda')),_0x25a2df[_0x808a('0xdb')]==='in'?_0x294045:_0x4e7827,_0x25a2df[_0x808a('0x7e')]);if(!_0x25a2df[_0x808a('0xdc')]){fs[_0x808a('0xdd')](_0x1938e7,_0x3c9ad5);}}return db['MailAccount'][_0x808a('0xc4')]({'where':{'service':!![]},'include':[{'model':db[_0x808a('0xde')],'as':_0x808a('0xdf'),'raw':!![]}]});}}})[_0x808a('0x22')](function(_0x21df94){if(_0x21df94&&_0x21df94[_0x808a('0xdf')]&&_0x19aab4['body']){var _0x27dff2={'tls':{'rejectUnauthorized':![]}};if(_0x21df94[_0x808a('0xdf')][_0x808a('0xe0')]){_0x27dff2['service']=_0x21df94[_0x808a('0xdf')][_0x808a('0xe0')];}else{_0x27dff2[_0x808a('0xe1')]=_0x21df94[_0x808a('0xdf')][_0x808a('0xe1')];_0x27dff2['port']=_0x21df94[_0x808a('0xdf')][_0x808a('0xe2')];_0x27dff2[_0x808a('0xe3')]=_0x21df94[_0x808a('0xdf')]['secure'];}if(_0x21df94[_0x808a('0xdf')][_0x808a('0xe4')]){_0x27dff2[_0x808a('0xe5')]={'user':_0x21df94[_0x808a('0xdf')][_0x808a('0x99')],'pass':_0x21df94[_0x808a('0xdf')][_0x808a('0xe6')]};}return respondWithRpcPromise(_0x808a('0xe7'),'sendMail',{'account':_0x27dff2,'message':{'from':util[_0x808a('0xd0')]('\x22%s\x22\x20<%s>',_0x21df94[_0x808a('0x3a')],_0x21df94[_0x808a('0xe8')]||_0x21df94['Smtp'][_0x808a('0x99')]),'to':_0x19aab4[_0x808a('0x7e')][_0x808a('0xc8')],'subject':_0x808a('0xe9'),'text':util[_0x808a('0xd0')](_0x808a('0xea'),_0x19aab4['body']['mailTranscript']),'attachments':[{'path':_0x1938e7}]}})[_0x808a('0x22')](function(){return _0x52749e;})['catch'](function(_0x56d270){console['error'](_0x56d270);});}else{return _0x52749e;}})[_0x808a('0x22')](respondWithStatusCode(_0x7a2bdc,0xc8))[_0x808a('0x41')](handleError(_0x7a2bdc,null));};exports[_0x808a('0xeb')]=function(_0x1c78fe,_0x2bcfc0,_0x238f09){return db[_0x808a('0xcd')][_0x808a('0x6d')]({'where':{'id':_0x1c78fe[_0x808a('0xb2')]['id']}})['then'](handleEntityNotFound(_0x2bcfc0,null))['then'](function(_0x3792ed){if(_0x3792ed){return _0x3792ed[_0x808a('0xeb')](_0x1c78fe[_0x808a('0x7e')][_0x808a('0xec')],_[_0x808a('0xed')](_0x1c78fe[_0x808a('0x7e')],[_0x808a('0xec'),'id'])||{});}})[_0x808a('0x22')](respondWithResult(_0x2bcfc0,null))['catch'](handleError(_0x2bcfc0,null));};exports['getMessages']=function(_0x189e17,_0x21b5ac,_0x12cfcb){var _0x292c4a={'raw':![],'where':{}};var _0x2f97db={};var _0x33c54f={'count':0x0,'rows':[]};return db[_0x808a('0x44')][_0x808a('0xc4')]({'where':{'id':_0x189e17['params']['id']}})['then'](handleEntityNotFound(_0x21b5ac,null))[_0x808a('0x22')](function(_0x479631){if(_0x479631){_0x2f97db[_0x808a('0x48')]=_[_0x808a('0x49')](db[_0x808a('0xcd')][_0x808a('0x45')]);_0x2f97db['query']=_[_0x808a('0x49')](_0x189e17['query']);_0x2f97db[_0x808a('0x54')]=_['intersection'](_0x2f97db[_0x808a('0x48')],_0x2f97db[_0x808a('0x4a')]);_0x292c4a['attributes']=_[_0x808a('0x4b')](_0x2f97db[_0x808a('0x48')],qs[_0x808a('0x4c')](_0x189e17[_0x808a('0x4a')][_0x808a('0x4c')]));_0x292c4a[_0x808a('0x4d')]=_0x292c4a[_0x808a('0x4d')]['length']?_0x292c4a[_0x808a('0x4d')]:_0x2f97db['model'];if(!_0x189e17['query'][_0x808a('0x4f')](_0x808a('0x50'))){_0x292c4a['limit']=qs[_0x808a('0x30')](_0x189e17[_0x808a('0x4a')][_0x808a('0x30')]);_0x292c4a[_0x808a('0x2f')]=qs[_0x808a('0x2f')](_0x189e17[_0x808a('0x4a')]['offset']);}_0x292c4a[_0x808a('0x51')]=qs['sort'](_0x189e17[_0x808a('0x4a')]['sort']);_0x292c4a['where']=qs[_0x808a('0x54')](_['pick'](_0x189e17['query'],_0x2f97db[_0x808a('0x54')]));_0x292c4a['where']['ChatInteractionId']=_0x479631['id'];if(_0x189e17[_0x808a('0x4a')]['filter']){_0x292c4a['where']=_[_0x808a('0x9f')](_0x292c4a['where'],{'$or':_[_0x808a('0x43')](_0x292c4a[_0x808a('0x4d')],function(_0x253a86){var _0x498640={};_0x498640[_0x253a86]={'$like':'%'+_0x189e17[_0x808a('0x4a')][_0x808a('0x8b')]+'%'};return _0x498640;})});}if(_0x189e17[_0x808a('0x4a')]['$gte']){var _0x5ea708=_0x189e17[_0x808a('0x4a')][_0x808a('0x84')][_0x808a('0x3e')](',');var _0xaca7cd={};_0xaca7cd[_0x5ea708[0x0]]={'$gte':moment(_0x5ea708[0x1])[_0x808a('0xd0')](_0x808a('0xee'))};_0x292c4a[_0x808a('0x53')]=_[_0x808a('0x9f')](_0x292c4a[_0x808a('0x53')],_0xaca7cd);}_0x292c4a=_[_0x808a('0x9f')]({},_0x292c4a,_0x189e17[_0x808a('0xb5')]);return db[_0x808a('0xcd')][_0x808a('0x9b')]({'where':_0x292c4a[_0x808a('0x53')]})[_0x808a('0x22')](function(_0x325b2b){_0x33c54f[_0x808a('0x9b')]=_0x325b2b;if(_0x189e17['query'][_0x808a('0xb3')]){_0x292c4a[_0x808a('0xb4')]=[{'all':!![]}];}return db[_0x808a('0xcd')]['findAll'](_0x292c4a);})[_0x808a('0x22')](function(_0x29f318){_0x33c54f[_0x808a('0xb1')]=_0x29f318;return _0x33c54f;});}})[_0x808a('0x22')](respondWithFilteredResult(_0x21b5ac,_0x292c4a))[_0x808a('0x41')](handleError(_0x21b5ac,null));};exports[_0x808a('0xef')]=function(_0x2c30aa,_0x4f9611,_0x4baea7){var _0x21b8c2={'where':{}},_0x128daf={},_0x50086f={'count':0x0,'rows':[]};return db['ChatInteraction'][_0x808a('0xc4')]({'where':{'id':_0x2c30aa[_0x808a('0xb2')]['id']}})['then'](handleEntityNotFound(_0x4f9611,null))['then'](function(_0x3fc837){if(_0x3fc837){_0x128daf[_0x808a('0x48')]=_[_0x808a('0x49')](db[_0x808a('0xcd')][_0x808a('0x45')]);_0x128daf['query']=_[_0x808a('0x49')](_0x2c30aa[_0x808a('0x4a')]);_0x128daf[_0x808a('0x54')]=_['intersection'](_0x128daf[_0x808a('0x48')],_0x128daf[_0x808a('0x4a')]);_0x21b8c2[_0x808a('0x4d')]=_['intersection'](_0x128daf[_0x808a('0x48')],qs['fields'](_0x2c30aa[_0x808a('0x4a')][_0x808a('0x4c')]));_0x21b8c2[_0x808a('0x4d')]=_0x21b8c2[_0x808a('0x4d')][_0x808a('0x4e')]?_0x21b8c2[_0x808a('0x4d')]:_0x128daf['model'];if(!_0x2c30aa[_0x808a('0x4a')][_0x808a('0x4f')](_0x808a('0x50'))){_0x21b8c2['limit']=qs[_0x808a('0x30')](_0x2c30aa['query'][_0x808a('0x30')]);_0x21b8c2[_0x808a('0x2f')]=qs[_0x808a('0x2f')](_0x2c30aa[_0x808a('0x4a')][_0x808a('0x2f')]);}_0x21b8c2[_0x808a('0x51')]=qs[_0x808a('0x52')](_0x2c30aa[_0x808a('0x4a')][_0x808a('0x52')]);_0x21b8c2[_0x808a('0x53')]=qs[_0x808a('0x54')](_['pick'](_0x2c30aa['query'],_0x128daf['filters']));_0x21b8c2[_0x808a('0x53')][_0x808a('0xaf')]=_0x3fc837['id'];if(_0x2c30aa[_0x808a('0x4a')][_0x808a('0x8b')]){_0x21b8c2[_0x808a('0x53')]=_[_0x808a('0x9f')](_0x21b8c2[_0x808a('0x53')],{'$or':_[_0x808a('0x43')](_0x21b8c2[_0x808a('0x4d')],function(_0x2b7e8b){var _0x332129={};_0x332129[_0x2b7e8b]={'$like':'%'+_0x2c30aa[_0x808a('0x4a')][_0x808a('0x8b')]+'%'};return _0x332129;})});}_0x21b8c2[_0x808a('0x53')]['secret']=![];if(_0x2c30aa[_0x808a('0x4a')]['id']){_0x21b8c2[_0x808a('0x53')]['id']={'$gt':_0x2c30aa[_0x808a('0x4a')]['id']};}_0x21b8c2=_[_0x808a('0x9f')]({},_0x21b8c2,_0x2c30aa['options']);return db[_0x808a('0xcd')][_0x808a('0x9b')]({'where':_0x21b8c2[_0x808a('0x53')]})[_0x808a('0x22')](function(_0x2653c8){_0x50086f[_0x808a('0x9b')]=_0x2653c8;_0x21b8c2[_0x808a('0xb4')]=[];if(_0x2c30aa[_0x808a('0x4a')]['includeAgent']){_0x21b8c2[_0x808a('0xb4')][_0x808a('0x40')]({'model':db['User'],'as':_0x808a('0x7b'),'attributes':['id',_0x808a('0x3c'),'alias']});}if(_0x2c30aa['query']['includeAll']){_0x21b8c2[_0x808a('0xb4')]=[{'all':!![]}];}return db[_0x808a('0xcd')][_0x808a('0xf0')](_0x21b8c2);})['then'](function(_0x3bc655){_0x50086f[_0x808a('0xb1')]=_0x3bc655;return _0x50086f;});}})[_0x808a('0x22')](respondWithFilteredResult(_0x4f9611,_0x21b8c2))['catch'](handleError(_0x4f9611,null));};exports['addTags']=function(_0x4d6adb,_0x5d5f70,_0x390ddd){return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x4d6adb[_0x808a('0xb2')]['id']}})['then'](handleEntityNotFound(_0x5d5f70,null))[_0x808a('0x22')](function(_0x157c5b){if(_0x157c5b){return _0x157c5b['setTags'](_0x4d6adb['body'][_0x808a('0xec')],_[_0x808a('0xed')](_0x4d6adb[_0x808a('0x7e')],[_0x808a('0xec'),'id'])||{})[_0x808a('0xf1')](function(){return db[_0x808a('0xf2')][_0x808a('0xf0')]({'attributes':['id',_0x808a('0x3a'),_0x808a('0x56')],'where':{'id':_0x4d6adb['body'][_0x808a('0xec')]}});})['then'](function(_0x2d98f1){socket[_0x808a('0xf3')](_0x808a('0xf4'),{'id':Number(_0x4d6adb[_0x808a('0xb2')]['id']),'tags':_0x2d98f1||[]});return{'id':Number(_0x4d6adb[_0x808a('0xb2')]['id']),'tags':_0x2d98f1||[]};});}})[_0x808a('0x22')](respondWithResult(_0x5d5f70,null))[_0x808a('0x41')](handleError(_0x5d5f70,null));};exports[_0x808a('0xf5')]=function(_0x1d4122,_0x3c55ba,_0x3ca8a9){return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x1d4122['params']['id']}})['then'](handleEntityNotFound(_0x3c55ba,null))[_0x808a('0x22')](function(_0x59ef00){if(_0x59ef00){return _0x59ef00[_0x808a('0xf5')](_0x1d4122[_0x808a('0x4a')]['ids']);}})[_0x808a('0x22')](respondWithStatusCode(_0x3c55ba,null))[_0x808a('0x41')](handleError(_0x3c55ba,null));};exports['download']=function(_0x4907b5,_0x31496f){var _0x24dafa=moment()[_0x808a('0xf6')]()[_0x808a('0x9d')]();var _0x396987=path[_0x808a('0xc9')](config[_0x808a('0xca')],_0x808a('0xf7'),'files',_0x808a('0xf8'));var _0x1e474f=path[_0x808a('0xc9')](config['root'],_0x808a('0xf7'),_0x808a('0xf9'),_0x808a('0xfa'));var _0x2dd7a5=path[_0x808a('0xc9')](_0x396987,_0x24dafa);var _0x27a3f7=util[_0x808a('0xd0')]('transcript-%d-%s.zip',_0x4907b5[_0x808a('0xb2')]['id'],_0x24dafa);var _0x3ec2f0=path[_0x808a('0xc9')](_0x396987,_0x27a3f7);var _0x5e1783=[];_0x5e1783[_0x808a('0x40')]({'model':db[_0x808a('0x7b')],'as':'User','attributes':['id','fullname'],'raw':!![]});_0x5e1783[_0x808a('0x40')]({'model':db['CmContact'],'as':_0x808a('0xfb'),'attributes':['id','firstName',_0x808a('0xfc')],'raw':!![]});if(_0x4907b5['query'][_0x808a('0xfa')]){_0x5e1783['push']({'model':db[_0x808a('0xc3')],'as':_0x808a('0xc3'),'raw':!![]});}var _0x49c8b3=[{'model':db[_0x808a('0xcd')],'as':_0x808a('0xce'),'attributes':['id',_0x808a('0x7e'),_0x808a('0xfd'),_0x808a('0xdb'),'secret',_0x808a('0x89')],'include':_0x5e1783}];_0x49c8b3[_0x808a('0x40')]({'model':db['ChatWebsite'],'as':_0x808a('0xfe'),'attributes':['id','name']});_0x49c8b3['push']({'model':db[_0x808a('0x7b')],'as':_0x808a('0xff'),'attributes':['id',_0x808a('0x3c')]});return db[_0x808a('0x44')][_0x808a('0x6d')]({'where':{'id':_0x4907b5[_0x808a('0xb2')]['id']},'include':_0x49c8b3})[_0x808a('0x22')](handleEntityNotFound(_0x31496f,null))[_0x808a('0x22')](function(_0x4cb7e4){if(_0x4cb7e4){var _0x292669=_0x4cb7e4[_0x808a('0x100')]({'plain':!![]});fs[_0x808a('0x101')](_0x2dd7a5);var _0x4b68fe={'format':'A4','border':'10px','header':{'height':'40px','contents':{'first':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20'}},'footer':{'height':_0x808a('0x102'),'contents':{'default':util[_0x808a('0xd0')](_0x808a('0x103'),util['format'](_0x808a('0x104'),_0x808a('0x105'),_0x292669['id']),moment()['format'](_0x808a('0x106'))['toString']())}}};var _0xb25f70={'channel':_0x808a('0x105'),'account':_0x292669[_0x808a('0xfe')][_0x808a('0x3a')],'agent':_0x292669[_0x808a('0xff')]?_0x292669[_0x808a('0xff')][_0x808a('0x3c')]:_0x808a('0x107'),'createdAt':moment(_0x292669[_0x808a('0xfd')])[_0x808a('0xd0')](_0x808a('0xee'))[_0x808a('0x9d')](),'closedAt':_0x292669[_0x808a('0xbc')]?moment(_0x292669[_0x808a('0x108')])[_0x808a('0xd0')](_0x808a('0xee'))['toString']():'','disposition':_0x292669[_0x808a('0x109')],'chatInfo':{'browser':_0x292669['browserName'],'os':_0x292669['osName'],'referer':_0x292669[_0x808a('0x10a')],'customerIp':_0x292669[_0x808a('0x10b')],'customerPort':_0x292669[_0x808a('0x10c')]?_0x292669[_0x808a('0x10c')]:_0x808a('0x107')},'messages':_(_0x292669[_0x808a('0xce')])['tail']()[_0x808a('0x8b')]({'secret':![]})['map'](function(_0x1834ee){if(_0x1834ee[_0x808a('0xc3')]){var _0x37a62b=path[_0x808a('0xc9')](_0x1e474f,_0x1834ee['Attachment'][_0x808a('0xc0')]);if(fs[_0x808a('0x10d')](_0x37a62b)){fs[_0x808a('0x10e')](_0x37a62b)[_0x808a('0x10f')](fs['createWriteStream'](path[_0x808a('0xc9')](_0x2dd7a5,_0x1834ee[_0x808a('0xc3')][_0x808a('0xc0')])));}}return{'date':moment(_0x1834ee[_0x808a('0xfd')])[_0x808a('0xd0')](_0x808a('0xee'))['toString'](),'sender':_0x1834ee['direction']===_0x808a('0x110')?_0x1834ee[_0x808a('0x7b')]?_0x1834ee[_0x808a('0x7b')][_0x808a('0x3c')]:'System':_0x1834ee['Contact'][_0x808a('0x111')]+(_0x1834ee[_0x808a('0xfb')][_0x808a('0xfc')]?'\x20'+_0x1834ee[_0x808a('0xfb')]['lastName']:''),'body':_0x1834ee[_0x808a('0xc3')]?_0x1834ee[_0x808a('0xc3')][_0x808a('0xc0')]:_0x1834ee[_0x808a('0x7e')],'direction':_0x1834ee[_0x808a('0xdb')]===_0x808a('0x110')?'A':'C','secret':_0x1834ee[_0x808a('0xdc')],'read':_0x1834ee[_0x808a('0x89')],'attachment':_0x1834ee[_0x808a('0xc3')]};})[_0x808a('0x6f')]()};return ejs[_0x808a('0x112')](path[_0x808a('0xc9')](config[_0x808a('0xca')],_0x808a('0xf7'),_0x808a('0x113'),'downloadInteraction.html'),{'interaction':_0xb25f70})['then'](function(_0x44c55f){return new BPromise(function(_0x1279cb,_0x51f45b){pdf[_0x808a('0xb6')](_0x44c55f,_0x4b68fe)['toFile'](path['join'](_0x2dd7a5,_0x808a('0x114')+_0x292669['id']+'-'+_0x24dafa+'.pdf'),function(_0x2cde91,_0x1a65ff){if(_0x2cde91)return _0x51f45b(_0x2cde91);_0x1279cb(_0x1a65ff);});});})[_0x808a('0x22')](function(){return new BPromise(function(_0x484e78,_0x5f21af){zipdir(_0x2dd7a5,{'saveTo':_0x3ec2f0},function(_0x414506,_0x59eb30){if(_0x414506)return _0x5f21af(_0x414506);return _0x484e78(_0x59eb30);});})[_0x808a('0x22')](function(){return new BPromise(function(_0xf7bef9,_0x9420f4){rimraf(_0x2dd7a5,function(_0x4cf1e6){if(_0x4cf1e6)_0x9420f4(_0x4cf1e6);return _0xf7bef9();});});})[_0x808a('0x22')](function(){return _0x31496f[_0x808a('0x115')](_0x3ec2f0,_0x27a3f7,function(_0x5139b9){if(_0x5139b9){console[_0x808a('0x116')](_0x808a('0x117'),_0x5139b9);}else{fs[_0x808a('0x118')](_0x3ec2f0);}});});});}else{return _0x31496f[_0x808a('0x2c')](0xc8);}})['catch'](handleError(_0x31496f,null));};
\ No newline at end of file
diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js
index 1eda68c..db33696 100644
--- a/server/api/chatInteraction/chatInteraction.events.js
+++ b/server/api/chatInteraction/chatInteraction.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf15d=['hook','exports','events','../../mysqldb','ChatInteraction','ChatMessage','setMaxListeners','save','remove','then','setDataValue','Users','map','findAll','unreadMessages','emit','catch','hasOwnProperty'];(function(_0x4db341,_0xb12794){var _0x193cb0=function(_0x27666e){while(--_0x27666e){_0x4db341['push'](_0x4db341['shift']());}};_0x193cb0(++_0xb12794);}(_0xf15d,0x122));var _0xdf15=function(_0x27ca02,_0x267e01){_0x27ca02=_0x27ca02-0x0;var _0x1a7a55=_0xf15d[_0x27ca02];return _0x1a7a55;};'use strict';var EventEmitter=require(_0xdf15('0x0'));var ChatInteraction=require(_0xdf15('0x1'))['db'][_0xdf15('0x2')];var ChatMessage=require('../../mysqldb')['db'][_0xdf15('0x3')];var ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0xdf15('0x4')](0x0);var events={'afterCreate':_0xdf15('0x5'),'afterUpdate':'update','afterDestroy':_0xdf15('0x6')};function emitEvent(_0x48e547){return function(_0x5d514d,_0x44f5ba,_0x26c243){_0x5d514d['getUsers']({'attributes':['id'],'raw':!![]})[_0xdf15('0x7')](function(_0x3ca3e4){_0x5d514d[_0xdf15('0x8')](_0xdf15('0x9'),_0x3ca3e4[_0xdf15('0xa')](function(_0x4abca5){return{'id':_0x4abca5['id']};}));return ChatMessage[_0xdf15('0xb')]({'where':{'ChatInteractionId':_0x5d514d['id'],'direction':'in','read':![]},'raw':!![]});})[_0xdf15('0x7')](function(_0x5ec990){_0x5d514d['setDataValue'](_0xdf15('0xc'),_0x5ec990['length']);ChatInteractionEvents[_0xdf15('0xd')](_0x48e547+':'+_0x5d514d['id'],_0x5d514d);ChatInteractionEvents[_0xdf15('0xd')](_0x48e547,_0x5d514d);_0x26c243(null);})[_0xdf15('0xe')](_0x26c243(null));};}for(var e in events){if(events[_0xdf15('0xf')](e)){var event=events[e];ChatInteraction[_0xdf15('0x10')](e,emitEvent(event));}}module[_0xdf15('0x11')]=ChatInteractionEvents;
\ No newline at end of file
+var _0xc9a3=['save','remove','then','setDataValue','Users','map','findAll','unreadMessages','length','emit','hasOwnProperty','exports','events','../../mysqldb','ChatInteraction','ChatMessage','setMaxListeners'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0xc9a3,0x83));var _0x3c9a=function(_0x4bc57e,_0xf1cd33){_0x4bc57e=_0x4bc57e-0x0;var _0x112d17=_0xc9a3[_0x4bc57e];return _0x112d17;};'use strict';var EventEmitter=require(_0x3c9a('0x0'));var ChatInteraction=require(_0x3c9a('0x1'))['db'][_0x3c9a('0x2')];var ChatMessage=require('../../mysqldb')['db'][_0x3c9a('0x3')];var ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x3c9a('0x4')](0x0);var events={'afterCreate':_0x3c9a('0x5'),'afterUpdate':'update','afterDestroy':_0x3c9a('0x6')};function emitEvent(_0x2b0997){return function(_0x4da805,_0xa37a92,_0xea1ae9){_0x4da805['getUsers']({'attributes':['id'],'raw':!![]})[_0x3c9a('0x7')](function(_0x44e1dd){_0x4da805[_0x3c9a('0x8')](_0x3c9a('0x9'),_0x44e1dd[_0x3c9a('0xa')](function(_0x5d0942){return{'id':_0x5d0942['id']};}));return ChatMessage[_0x3c9a('0xb')]({'where':{'ChatInteractionId':_0x4da805['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x2b4908){_0x4da805[_0x3c9a('0x8')](_0x3c9a('0xc'),_0x2b4908[_0x3c9a('0xd')]);ChatInteractionEvents[_0x3c9a('0xe')](_0x2b0997+':'+_0x4da805['id'],_0x4da805);ChatInteractionEvents[_0x3c9a('0xe')](_0x2b0997,_0x4da805);_0xea1ae9(null);})['catch'](_0xea1ae9(null));};}for(var e in events){if(events[_0x3c9a('0xf')](e)){var event=events[e];ChatInteraction['hook'](e,emitEvent(event));}}module[_0x3c9a('0x10')]=ChatInteractionEvents;
\ No newline at end of file
diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js
index 3234691..3538e44 100644
--- a/server/api/chatInteraction/chatInteraction.model.js
+++ b/server/api/chatInteraction/chatInteraction.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcc70=['bluebird','request-promise','path','rimraf','../../config/environment','./chatInteraction.attributes','exports','define','ChatInteraction','chat_interactions','changed','closed','closedAt','format','YYYY-MM-DD\x20HH:mm:ss','utf8mb4_unicode_ci','lodash','util','../../config/logger','api'];(function(_0x462663,_0x55d4ba){var _0x53f165=function(_0x196916){while(--_0x196916){_0x462663['push'](_0x462663['shift']());}};_0x53f165(++_0x55d4ba);}(_0xcc70,0x178));var _0x0cc7=function(_0x2baf40,_0x5ebef2){_0x2baf40=_0x2baf40-0x0;var _0x2bb2cb=_0xcc70[_0x2baf40];return _0x2bb2cb;};'use strict';var _=require(_0x0cc7('0x0'));var util=require(_0x0cc7('0x1'));var logger=require(_0x0cc7('0x2'))(_0x0cc7('0x3'));var moment=require('moment');var BPromise=require(_0x0cc7('0x4'));var rp=require(_0x0cc7('0x5'));var fs=require('fs');var path=require(_0x0cc7('0x6'));var rimraf=require(_0x0cc7('0x7'));var config=require(_0x0cc7('0x8'));var attributes=require(_0x0cc7('0x9'));module[_0x0cc7('0xa')]=function(_0x22a308,_0x59245e){return _0x22a308[_0x0cc7('0xb')](_0x0cc7('0xc'),attributes,{'tableName':_0x0cc7('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1c57ed,_0x3f0047,_0x3a9e46){if(_0x1c57ed[_0x0cc7('0xe')](_0x0cc7('0xf'))){_0x1c57ed[_0x0cc7('0x10')]=moment()[_0x0cc7('0x11')](_0x0cc7('0x12'));}_0x3a9e46(null,_0x1c57ed);}},'charset':'utf8mb4','collate':_0x0cc7('0x13')});};
\ No newline at end of file
+var _0xfad6=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./chatInteraction.attributes','exports','define','ChatInteraction','chat_interactions','changed','closed','closedAt','format','YYYY-MM-DD\x20HH:mm:ss','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger'];(function(_0x43053c,_0x336018){var _0x73094c=function(_0x1dd957){while(--_0x1dd957){_0x43053c['push'](_0x43053c['shift']());}};_0x73094c(++_0x336018);}(_0xfad6,0x152));var _0x6fad=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xfad6[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x6fad('0x0'));var util=require('util');var logger=require(_0x6fad('0x1'))('api');var moment=require(_0x6fad('0x2'));var BPromise=require(_0x6fad('0x3'));var rp=require(_0x6fad('0x4'));var fs=require('fs');var path=require(_0x6fad('0x5'));var rimraf=require(_0x6fad('0x6'));var config=require(_0x6fad('0x7'));var attributes=require(_0x6fad('0x8'));module[_0x6fad('0x9')]=function(_0x4c0340,_0x271ec8){return _0x4c0340[_0x6fad('0xa')](_0x6fad('0xb'),attributes,{'tableName':_0x6fad('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x483d5f,_0x21ff5e,_0x5d9211){if(_0x483d5f[_0x6fad('0xd')](_0x6fad('0xe'))){_0x483d5f[_0x6fad('0xf')]=moment()[_0x6fad('0x10')](_0x6fad('0x11'));}_0x5d9211(null,_0x483d5f);}},'charset':_0x6fad('0x12'),'collate':_0x6fad('0x13')});};
\ No newline at end of file
diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js
index 6acedc6..97c1dbc 100644
--- a/server/api/chatInteraction/chatInteraction.rpc.js
+++ b/server/api/chatInteraction/chatInteraction.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x7cc8=['rpc','../../config/environment','jayson/promise','client','http','redis','localhost','socket.io-emitter','./chatInteraction.socket','register','request','then','info','ChatInteraction,\x20%s,\x20%s','request\x20sent','debug','ChatInteraction,\x20%s,\x20%s,\x20%s','stringify','error','message','result','UpdateChatInteraction','update','body','raw','options','where','attributes','limit','ChatInteraction','find','addTags','ids','omit','AddTags','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger'];(function(_0xb922d7,_0x4faba3){var _0x36b4eb=function(_0x1570ae){while(--_0x1570ae){_0xb922d7['push'](_0xb922d7['shift']());}};_0x36b4eb(++_0x4faba3);}(_0x7cc8,0x150));var _0x87cc=function(_0x6c7c05,_0x198723){_0x6c7c05=_0x6c7c05-0x0;var _0x228a2c=_0x7cc8[_0x6c7c05];return _0x228a2c;};'use strict';var _=require(_0x87cc('0x0'));var util=require(_0x87cc('0x1'));var moment=require(_0x87cc('0x2'));var BPromise=require(_0x87cc('0x3'));var rs=require(_0x87cc('0x4'));var fs=require('fs');var Redis=require(_0x87cc('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x87cc('0x6'));var logger=require(_0x87cc('0x7'))(_0x87cc('0x8'));var config=require(_0x87cc('0x9'));var jayson=require(_0x87cc('0xa'));var client=jayson[_0x87cc('0xb')][_0x87cc('0xc')]({'port':0x232a});config[_0x87cc('0xd')]=_['defaults'](config['redis'],{'host':_0x87cc('0xe'),'port':0x18eb});var socket=require(_0x87cc('0xf'))(new Redis(config['redis']));require(_0x87cc('0x10'))[_0x87cc('0x11')](socket);function respondWithRpcPromise(_0x2a26fd,_0x56c511,_0x35ab72){return new BPromise(function(_0x115dc6,_0x29962e){return client[_0x87cc('0x12')](_0x2a26fd,_0x35ab72)[_0x87cc('0x13')](function(_0x432cca){logger[_0x87cc('0x14')](_0x87cc('0x15'),_0x56c511,_0x87cc('0x16'));logger[_0x87cc('0x17')](_0x87cc('0x18'),_0x56c511,_0x87cc('0x16'),JSON[_0x87cc('0x19')](_0x432cca));if(_0x432cca[_0x87cc('0x1a')]){if(_0x432cca['error']['code']===0x1f4){logger['error'](_0x87cc('0x15'),_0x56c511,_0x432cca[_0x87cc('0x1a')][_0x87cc('0x1b')]);return _0x29962e(_0x432cca[_0x87cc('0x1a')][_0x87cc('0x1b')]);}logger[_0x87cc('0x1a')](_0x87cc('0x15'),_0x56c511,_0x432cca[_0x87cc('0x1a')][_0x87cc('0x1b')]);return _0x115dc6(_0x432cca['error'][_0x87cc('0x1b')]);}else{logger['info'](_0x87cc('0x15'),_0x56c511,_0x87cc('0x16'));_0x115dc6(_0x432cca[_0x87cc('0x1c')][_0x87cc('0x1b')]);}})['catch'](function(_0x17a8d3){logger[_0x87cc('0x1a')](_0x87cc('0x15'),_0x56c511,_0x17a8d3);_0x29962e(_0x17a8d3);});});}exports[_0x87cc('0x1d')]=function(_0x2f32f4){var _0x46301e=this;return new Promise(function(_0x47137d,_0x2b82c1){return db['ChatInteraction'][_0x87cc('0x1e')](_0x2f32f4[_0x87cc('0x1f')],{'raw':_0x2f32f4['options']?_0x2f32f4['options'][_0x87cc('0x20')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2f32f4[_0x87cc('0x21')]?_0x2f32f4[_0x87cc('0x21')][_0x87cc('0x22')]||null:null,'attributes':_0x2f32f4[_0x87cc('0x21')]?_0x2f32f4[_0x87cc('0x21')][_0x87cc('0x23')]||null:null,'limit':_0x2f32f4[_0x87cc('0x21')]?_0x2f32f4['options'][_0x87cc('0x24')]||null:null})[_0x87cc('0x13')](function(_0x195375){logger[_0x87cc('0x14')](_0x87cc('0x1d'),_0x2f32f4);logger[_0x87cc('0x17')]('UpdateChatInteraction',_0x2f32f4,JSON['stringify'](_0x195375));_0x47137d(_0x195375);})['catch'](function(_0x3d2ba1){logger[_0x87cc('0x1a')]('UpdateChatInteraction',_0x3d2ba1['message'],_0x2f32f4);_0x2b82c1(_0x46301e[_0x87cc('0x1a')](0x1f4,_0x3d2ba1[_0x87cc('0x1b')]));});});};exports['AddTagsToChatInteraction']=function(_0x3da235){return new Promise(function(_0x32f667,_0xb04043){return db[_0x87cc('0x25')][_0x87cc('0x26')]({'where':_0x3da235[_0x87cc('0x21')]?_0x3da235['options'][_0x87cc('0x22')]||null:null})['then'](function(_0x32c442){if(_0x32c442){return _0x32c442[_0x87cc('0x27')](_0x3da235[_0x87cc('0x1f')][_0x87cc('0x28')],_[_0x87cc('0x29')](_0x3da235[_0x87cc('0x1f')],[_0x87cc('0x28'),'id'])||{});}})['spread'](function(_0x327839){logger[_0x87cc('0x14')](_0x87cc('0x2a'),_0x3da235);logger['debug']('AddTags',_0x3da235,JSON['stringify'](_0x327839));_0x32f667(_0x327839);})['catch'](function(_0x5567ca){logger[_0x87cc('0x1a')]('AddTags',_0x5567ca['message'],_0x3da235);_0xb04043(_this['error'](0x1f4,_0x5567ca[_0x87cc('0x1b')]));});});};
\ No newline at end of file
+var _0x9b47=['http','defaults','redis','localhost','socket.io-emitter','register','request','then','info','ChatInteraction,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','UpdateChatInteraction','ChatInteraction','options','raw','where','attributes','limit','debug','AddTagsToChatInteraction','find','addTags','body','ids','omit','spread','AddTags','lodash','util','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','jayson/promise','client'];(function(_0x523ae0,_0xd46ca7){var _0x47294e=function(_0x168457){while(--_0x168457){_0x523ae0['push'](_0x523ae0['shift']());}};_0x47294e(++_0xd46ca7);}(_0x9b47,0x147));var _0x79b4=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x9b47[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x79b4('0x0'));var util=require(_0x79b4('0x1'));var moment=require('moment');var BPromise=require(_0x79b4('0x2'));var rs=require(_0x79b4('0x3'));var fs=require('fs');var Redis=require(_0x79b4('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x79b4('0x5'));var logger=require(_0x79b4('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0x79b4('0x7'));var client=jayson[_0x79b4('0x8')][_0x79b4('0x9')]({'port':0x232a});config['redis']=_[_0x79b4('0xa')](config[_0x79b4('0xb')],{'host':_0x79b4('0xc'),'port':0x18eb});var socket=require(_0x79b4('0xd'))(new Redis(config[_0x79b4('0xb')]));require('./chatInteraction.socket')[_0x79b4('0xe')](socket);function respondWithRpcPromise(_0x59ea40,_0x32319e,_0x523aab){return new BPromise(function(_0x212458,_0x340cf1){return client[_0x79b4('0xf')](_0x59ea40,_0x523aab)[_0x79b4('0x10')](function(_0x56153b){logger[_0x79b4('0x11')](_0x79b4('0x12'),_0x32319e,_0x79b4('0x13'));logger['debug']('ChatInteraction,\x20%s,\x20%s,\x20%s',_0x32319e,_0x79b4('0x13'),JSON[_0x79b4('0x14')](_0x56153b));if(_0x56153b['error']){if(_0x56153b[_0x79b4('0x15')][_0x79b4('0x16')]===0x1f4){logger[_0x79b4('0x15')]('ChatInteraction,\x20%s,\x20%s',_0x32319e,_0x56153b[_0x79b4('0x15')][_0x79b4('0x17')]);return _0x340cf1(_0x56153b[_0x79b4('0x15')][_0x79b4('0x17')]);}logger[_0x79b4('0x15')]('ChatInteraction,\x20%s,\x20%s',_0x32319e,_0x56153b[_0x79b4('0x15')][_0x79b4('0x17')]);return _0x212458(_0x56153b[_0x79b4('0x15')][_0x79b4('0x17')]);}else{logger[_0x79b4('0x11')](_0x79b4('0x12'),_0x32319e,'request\x20sent');_0x212458(_0x56153b[_0x79b4('0x18')][_0x79b4('0x17')]);}})[_0x79b4('0x19')](function(_0x241dc5){logger[_0x79b4('0x15')](_0x79b4('0x12'),_0x32319e,_0x241dc5);_0x340cf1(_0x241dc5);});});}exports[_0x79b4('0x1a')]=function(_0x350024){var _0x36c452=this;return new Promise(function(_0x577c9b,_0x162670){return db[_0x79b4('0x1b')]['update'](_0x350024['body'],{'raw':_0x350024[_0x79b4('0x1c')]?_0x350024['options'][_0x79b4('0x1d')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x350024[_0x79b4('0x1c')]?_0x350024[_0x79b4('0x1c')][_0x79b4('0x1e')]||null:null,'attributes':_0x350024[_0x79b4('0x1c')]?_0x350024['options'][_0x79b4('0x1f')]||null:null,'limit':_0x350024[_0x79b4('0x1c')]?_0x350024[_0x79b4('0x1c')][_0x79b4('0x20')]||null:null})[_0x79b4('0x10')](function(_0x4959d8){logger['info']('UpdateChatInteraction',_0x350024);logger[_0x79b4('0x21')](_0x79b4('0x1a'),_0x350024,JSON[_0x79b4('0x14')](_0x4959d8));_0x577c9b(_0x4959d8);})[_0x79b4('0x19')](function(_0x388b1c){logger[_0x79b4('0x15')](_0x79b4('0x1a'),_0x388b1c[_0x79b4('0x17')],_0x350024);_0x162670(_0x36c452[_0x79b4('0x15')](0x1f4,_0x388b1c[_0x79b4('0x17')]));});});};exports[_0x79b4('0x22')]=function(_0x48f00a){return new Promise(function(_0x45b2b3,_0x28ab80){return db[_0x79b4('0x1b')][_0x79b4('0x23')]({'where':_0x48f00a[_0x79b4('0x1c')]?_0x48f00a[_0x79b4('0x1c')][_0x79b4('0x1e')]||null:null})[_0x79b4('0x10')](function(_0x1e400e){if(_0x1e400e){return _0x1e400e[_0x79b4('0x24')](_0x48f00a[_0x79b4('0x25')][_0x79b4('0x26')],_[_0x79b4('0x27')](_0x48f00a[_0x79b4('0x25')],['ids','id'])||{});}})[_0x79b4('0x28')](function(_0x4f4448){logger[_0x79b4('0x11')]('AddTags',_0x48f00a);logger['debug'](_0x79b4('0x29'),_0x48f00a,JSON[_0x79b4('0x14')](_0x4f4448));_0x45b2b3(_0x4f4448);})[_0x79b4('0x19')](function(_0xfd1d35){logger['error'](_0x79b4('0x29'),_0xfd1d35[_0x79b4('0x17')],_0x48f00a);_0x28ab80(_this[_0x79b4('0x15')](0x1f4,_0xfd1d35['message']));});});};
\ No newline at end of file
diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js
index add1c97..fe3e716 100644
--- a/server/api/chatInteraction/chatInteraction.socket.js
+++ b/server/api/chatInteraction/chatInteraction.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc84c=['chatInteraction:','./chatInteraction.events','save','remove','update','emit','removeListener','length'];(function(_0x241423,_0x1f3697){var _0x497ad7=function(_0x1f449c){while(--_0x1f449c){_0x241423['push'](_0x241423['shift']());}};_0x497ad7(++_0x1f3697);}(_0xc84c,0x89));var _0xcc84=function(_0x1a0967,_0x51bc82){_0x1a0967=_0x1a0967-0x0;var _0x5a169f=_0xc84c[_0x1a0967];return _0x5a169f;};'use strict';var ChatInteractionEvents=require(_0xcc84('0x0'));var events=[_0xcc84('0x1'),_0xcc84('0x2'),_0xcc84('0x3')];function createListener(_0x4272ca,_0x3c7ac5){return function(_0x34158f){_0x3c7ac5[_0xcc84('0x4')](_0x4272ca,_0x34158f);};}function removeListener(_0x37c191,_0x23b188){return function(){ChatInteractionEvents[_0xcc84('0x5')](_0x37c191,_0x23b188);};}exports['register']=function(_0x57e30e){for(var _0x478c5d=0x0,_0x502efa=events[_0xcc84('0x6')];_0x478c5d<_0x502efa;_0x478c5d++){var _0x1af20f=events[_0x478c5d];var _0x145b1a=createListener(_0xcc84('0x7')+_0x1af20f,_0x57e30e);ChatInteractionEvents['on'](_0x1af20f,_0x145b1a);}};
\ No newline at end of file
+var _0xb85f=['removeListener','register','length','chatInteraction:','save','remove'];(function(_0x56cc05,_0x3ca36a){var _0x37ea8b=function(_0x1cddc7){while(--_0x1cddc7){_0x56cc05['push'](_0x56cc05['shift']());}};_0x37ea8b(++_0x3ca36a);}(_0xb85f,0x1d2));var _0xfb85=function(_0xfe4914,_0xd57dbc){_0xfe4914=_0xfe4914-0x0;var _0x9cc1f4=_0xb85f[_0xfe4914];return _0x9cc1f4;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xfb85('0x0'),_0xfb85('0x1'),'update'];function createListener(_0x5c6ba3,_0x191a9d){return function(_0xb1ab40){_0x191a9d['emit'](_0x5c6ba3,_0xb1ab40);};}function removeListener(_0xbd9646,_0x52dbee){return function(){ChatInteractionEvents[_0xfb85('0x2')](_0xbd9646,_0x52dbee);};}exports[_0xfb85('0x3')]=function(_0x5e3225){for(var _0x3a70e9=0x0,_0x5502b7=events[_0xfb85('0x4')];_0x3a70e9<_0x5502b7;_0x3a70e9++){var _0x3b643a=events[_0x3a70e9];var _0x1915c2=createListener(_0xfb85('0x5')+_0x3b643a,_0x5e3225);ChatInteractionEvents['on'](_0x3b643a,_0x1915c2);}};
\ No newline at end of file
diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js
index eaad963..5886783 100644
--- a/server/api/chatInteraction/index.js
+++ b/server/api/chatInteraction/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf102=['attachmentUpload','addMessage','tracked','addTags','put','chat','chatinteraction:update','update','customUpdate','/:id/abandon','/:id/close','close','delete','chatinteraction:destroy','destroy','removeTags','exports','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInteraction.controller','get','isAuthenticated','/describe','/:id','isChatInteractionAuthorized','show','/:id/attachment_download','attachmentDownload','/:id/messages','getMessages','/:id/my_messages','/:id/download','download','post','create','root','server/files/attachments/','format','now','originalname','/:id/attachment_upload','file'];(function(_0x2d650e,_0x521ccc){var _0x1b9598=function(_0x27748b){while(--_0x27748b){_0x2d650e['push'](_0x2d650e['shift']());}};_0x1b9598(++_0x521ccc);}(_0xf102,0xf7));var _0x2f10=function(_0x1e5068,_0x31e9c4){_0x1e5068=_0x1e5068-0x0;var _0x2230b6=_0xf102[_0x1e5068];return _0x2230b6;};'use strict';var multer=require(_0x2f10('0x0'));var util=require(_0x2f10('0x1'));var path=require('path');var timeout=require(_0x2f10('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x2f10('0x3'));var interaction=require(_0x2f10('0x4'));var config=require(_0x2f10('0x5'));var controller=require(_0x2f10('0x6'));router[_0x2f10('0x7')]('/',auth[_0x2f10('0x8')](),controller['index']);router['get'](_0x2f10('0x9'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x2f10('0xa'),auth[_0x2f10('0xb')](),controller[_0x2f10('0xc')]);router['get'](_0x2f10('0xd'),auth[_0x2f10('0xb')](),controller[_0x2f10('0xe')]);router['get'](_0x2f10('0xf'),auth[_0x2f10('0x8')](),controller[_0x2f10('0x10')]);router[_0x2f10('0x7')](_0x2f10('0x11'),auth['isChatInteractionAuthorized'](),controller['getMyMessages']);router[_0x2f10('0x7')](_0x2f10('0x12'),auth[_0x2f10('0x8')](),controller[_0x2f10('0x13')]);router[_0x2f10('0x14')]('/',auth[_0x2f10('0x8')](),controller[_0x2f10('0x15')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x26897d,_0x18b4b5,_0xb534c7){_0xb534c7(null,path['join'](config[_0x2f10('0x16')],_0x2f10('0x17')));},'filename':function(_0x5ebf61,_0x142507,_0x294ab9){_0x294ab9(null,util[_0x2f10('0x18')]('%s-%s',Date[_0x2f10('0x19')](),_0x142507[_0x2f10('0x1a')]['replace'](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post'](_0x2f10('0x1b'),upload['single'](_0x2f10('0x1c')),controller[_0x2f10('0x1d')]);router[_0x2f10('0x14')](_0x2f10('0xf'),auth[_0x2f10('0xb')](),controller[_0x2f10('0x1e')]);router[_0x2f10('0x14')]('/:id/tags',auth[_0x2f10('0x8')](),interaction[_0x2f10('0x1f')]('chat','chatinteraction:addtags'),controller[_0x2f10('0x20')]);router[_0x2f10('0x21')](_0x2f10('0xa'),auth['isAuthenticated'](),interaction['tracked'](_0x2f10('0x22'),_0x2f10('0x23')),controller[_0x2f10('0x24')]);router[_0x2f10('0x21')]('/:id/custom_update',controller[_0x2f10('0x25')]);router[_0x2f10('0x21')](_0x2f10('0x26'),auth[_0x2f10('0xb')](),controller['abandon']);router[_0x2f10('0x21')](_0x2f10('0x27'),controller[_0x2f10('0x28')]);router[_0x2f10('0x29')](_0x2f10('0xa'),auth[_0x2f10('0x8')](),interaction[_0x2f10('0x1f')]('chat',_0x2f10('0x2a')),controller[_0x2f10('0x2b')]);router['delete']('/:id/tags',auth[_0x2f10('0x8')](),controller[_0x2f10('0x2c')]);module[_0x2f10('0x2d')]=router;
\ No newline at end of file
+var _0xbe99=['express','../../config/environment','./chatInteraction.controller','index','get','/describe','isChatInteractionAuthorized','show','/:id/messages','isAuthenticated','getMessages','download','post','create','diskStorage','join','server/files/attachments/','format','%s-%s','now','originalname','replace','/:id/attachment_upload','single','attachmentUpload','addMessage','/:id/tags','tracked','chatinteraction:addtags','put','/:id','chat','update','/:id/custom_update','/:id/abandon','abandon','/:id/close','delete','chatinteraction:destroy','destroy','removeTags','multer','connect-timeout'];(function(_0x2aa0c4,_0x5379cb){var _0x2f9664=function(_0x232f42){while(--_0x232f42){_0x2aa0c4['push'](_0x2aa0c4['shift']());}};_0x2f9664(++_0x5379cb);}(_0xbe99,0x12b));var _0x9be9=function(_0x13366a,_0x160e15){_0x13366a=_0x13366a-0x0;var _0x394bf8=_0xbe99[_0x13366a];return _0x394bf8;};'use strict';var multer=require(_0x9be9('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x9be9('0x1'));var express=require(_0x9be9('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x9be9('0x3'));var controller=require(_0x9be9('0x4'));router['get']('/',auth['isAuthenticated'](),controller[_0x9be9('0x5')]);router[_0x9be9('0x6')](_0x9be9('0x7'),auth['isAuthenticated'](),controller['describe']);router[_0x9be9('0x6')]('/:id',auth[_0x9be9('0x8')](),controller[_0x9be9('0x9')]);router[_0x9be9('0x6')]('/:id/attachment_download',auth['isChatInteractionAuthorized'](),controller['attachmentDownload']);router[_0x9be9('0x6')](_0x9be9('0xa'),auth[_0x9be9('0xb')](),controller[_0x9be9('0xc')]);router['get']('/:id/my_messages',auth[_0x9be9('0x8')](),controller['getMyMessages']);router[_0x9be9('0x6')]('/:id/download',auth[_0x9be9('0xb')](),controller[_0x9be9('0xd')]);router[_0x9be9('0xe')]('/',auth[_0x9be9('0xb')](),controller[_0x9be9('0xf')]);var upload=multer({'storage':multer[_0x9be9('0x10')]({'destination':function(_0x3a9385,_0xf1e92d,_0x172a5b){_0x172a5b(null,path[_0x9be9('0x11')](config['root'],_0x9be9('0x12')));},'filename':function(_0x53084a,_0x326072,_0x2c4f70){_0x2c4f70(null,util[_0x9be9('0x13')](_0x9be9('0x14'),Date[_0x9be9('0x15')](),_0x326072[_0x9be9('0x16')][_0x9be9('0x17')](/[+@&\/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x9be9('0xe')](_0x9be9('0x18'),upload[_0x9be9('0x19')]('file'),controller[_0x9be9('0x1a')]);router[_0x9be9('0xe')]('/:id/messages',auth[_0x9be9('0x8')](),controller[_0x9be9('0x1b')]);router[_0x9be9('0xe')](_0x9be9('0x1c'),auth['isAuthenticated'](),interaction[_0x9be9('0x1d')]('chat',_0x9be9('0x1e')),controller['addTags']);router[_0x9be9('0x1f')](_0x9be9('0x20'),auth[_0x9be9('0xb')](),interaction[_0x9be9('0x1d')](_0x9be9('0x21'),'chatinteraction:update'),controller[_0x9be9('0x22')]);router[_0x9be9('0x1f')](_0x9be9('0x23'),controller['customUpdate']);router[_0x9be9('0x1f')](_0x9be9('0x24'),auth[_0x9be9('0x8')](),controller[_0x9be9('0x25')]);router[_0x9be9('0x1f')](_0x9be9('0x26'),controller['close']);router[_0x9be9('0x27')](_0x9be9('0x20'),auth[_0x9be9('0xb')](),interaction[_0x9be9('0x1d')](_0x9be9('0x21'),_0x9be9('0x28')),controller[_0x9be9('0x29')]);router[_0x9be9('0x27')](_0x9be9('0x1c'),auth['isAuthenticated'](),controller[_0x9be9('0x2a')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js
index 934d468..d9210d9 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xdb28=['medium','INTEGER','sequelize','exports','TEXT'];(function(_0x2f9cd9,_0x52d2bb){var _0x4b98e9=function(_0x29b1fa){while(--_0x29b1fa){_0x2f9cd9['push'](_0x2f9cd9['shift']());}};_0x4b98e9(++_0x52d2bb);}(_0xdb28,0x106));var _0x8db2=function(_0x37226f,_0x39dc21){_0x37226f=_0x37226f-0x0;var _0x385653=_0xdb28[_0x37226f];return _0x385653;};'use strict';var Sequelize=require(_0x8db2('0x0'));module[_0x8db2('0x1')]={'body':{'type':Sequelize[_0x8db2('0x2')](_0x8db2('0x3')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x8db2('0x4')]}};
\ No newline at end of file
+var _0x5f66=['exports','medium','BOOLEAN','INTEGER'];(function(_0x1088bb,_0x2d86ca){var _0x1cc45f=function(_0xe1c810){while(--_0xe1c810){_0x1088bb['push'](_0x1088bb['shift']());}};_0x1cc45f(++_0x2d86ca);}(_0x5f66,0x1a0));var _0x65f6=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x5f66[_0x2b4411];return _0x8e41ef;};'use strict';var Sequelize=require('sequelize');module[_0x65f6('0x0')]={'body':{'type':Sequelize['TEXT'](_0x65f6('0x1')),'allowNull':![]},'read':{'type':Sequelize[_0x65f6('0x2')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x65f6('0x3')]}};
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js
index 33d6464..65f30a9 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.controller.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xfa17=['pick','filter','where','merge','options','includeAll','include','findAll','rows','catch','show','params','rawAttributes','find','create','body','get','messages','lastMessage','lastMessageAt','format','YYYY-MM-DD\x20HH:mm:ss','getUsers','User','admin','fullname','userpic','internal','lastLoginAt','allowmessenger','-online','VoiceQueue','VoiceQueues','type','user','role','UserProfileSection','Agents','UserProfileResource','isEmpty','length','push','ToId','read','-createdAt','all','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../mysqldb','redis','defaults','./chatInternalMessage.socket','register','sendStatus','status','end','json','count','offset','limit','Content-Range','apply','reject','save','then','stack','name','index','ChatInternalMessage','key','keys','query','filters','intersection','model','attributes','fields','hasOwnProperty','nolimit','sort'];(function(_0x4157cf,_0x3ff907){var _0x3dacbe=function(_0x503dc3){while(--_0x503dc3){_0x4157cf['push'](_0x4157cf['shift']());}};_0x3dacbe(++_0x3ff907);}(_0xfa17,0x97));var _0x7fa1=function(_0x400c79,_0x216b2b){_0x400c79=_0x400c79-0x0;var _0x1a7cf4=_0xfa17[_0x400c79];return _0x1a7cf4;};'use strict';var pdf=require(_0x7fa1('0x0'));var emlformat=require(_0x7fa1('0x1'));var rimraf=require(_0x7fa1('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x7fa1('0x3'));var rp=require(_0x7fa1('0x4'));var moment=require(_0x7fa1('0x5'));var BPromise=require(_0x7fa1('0x6'));var Mustache=require(_0x7fa1('0x7'));var util=require(_0x7fa1('0x8'));var path=require(_0x7fa1('0x9'));var sox=require('sox');var csv=require(_0x7fa1('0xa'));var ejs=require(_0x7fa1('0xb'));var fs=require('fs');var _=require(_0x7fa1('0xc'));var squel=require(_0x7fa1('0xd'));var crypto=require(_0x7fa1('0xe'));var jsforce=require(_0x7fa1('0xf'));var deskjs=require(_0x7fa1('0x10'));var toCsv=require(_0x7fa1('0xa'));var querystring=require(_0x7fa1('0x11'));var Papa=require(_0x7fa1('0x12'));var Redis=require(_0x7fa1('0x13'));var authService=require(_0x7fa1('0x14'));var qs=require(_0x7fa1('0x15'));var as=require(_0x7fa1('0x16'));var hardwareService=require(_0x7fa1('0x17'));var logger=require(_0x7fa1('0x18'))(_0x7fa1('0x19'));var utils=require('../../config/utils');var config=require(_0x7fa1('0x1a'));var db=require(_0x7fa1('0x1b'))['db'];config[_0x7fa1('0x1c')]=_[_0x7fa1('0x1d')](config[_0x7fa1('0x1c')],{'host':'localhost','port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require(_0x7fa1('0x1e'))[_0x7fa1('0x1f')](socket);function respondWithStatusCode(_0x2de3cb,_0x4e5c9a){_0x4e5c9a=_0x4e5c9a||0xcc;return function(_0x5143e3){if(_0x5143e3){return _0x2de3cb[_0x7fa1('0x20')](_0x4e5c9a);}return _0x2de3cb[_0x7fa1('0x21')](_0x4e5c9a)[_0x7fa1('0x22')]();};}function respondWithResult(_0x39bc27,_0x4faac0){_0x4faac0=_0x4faac0||0xc8;return function(_0x1f3c71){if(_0x1f3c71){return _0x39bc27['status'](_0x4faac0)[_0x7fa1('0x23')](_0x1f3c71);}};}function respondWithFilteredResult(_0x4778f5,_0x313bae){return function(_0x169742){if(_0x169742){var _0x4d92d2=_0x169742[_0x7fa1('0x24')],_0x126beb=_0x313bae[_0x7fa1('0x25')],_0x90e0b4=_0x313bae['offset']+_0x313bae[_0x7fa1('0x26')],_0x409447;if(_0x90e0b4>=_0x4d92d2){_0x90e0b4=_0x4d92d2;_0x409447=0xc8;}else{_0x409447=0xce;}_0x4778f5[_0x7fa1('0x21')](_0x409447);return _0x4778f5['set'](_0x7fa1('0x27'),_0x126beb+'-'+_0x90e0b4+'/'+_0x4d92d2)[_0x7fa1('0x23')](_0x169742);}return null;};}function patchUpdates(_0x40b7b5){return function(_0xa2637e){try{jsonpatch[_0x7fa1('0x28')](_0xa2637e,_0x40b7b5,!![]);}catch(_0x445b75){return BPromise[_0x7fa1('0x29')](_0x445b75);}return _0xa2637e[_0x7fa1('0x2a')]();};}function saveUpdates(_0x3470a2,_0x10e135){return function(_0x35be57){if(_0x35be57){return _0x35be57['update'](_0x3470a2)[_0x7fa1('0x2b')](function(_0x1378ce){return _0x1378ce;});}return null;};}function removeEntity(_0x35e2ea,_0x564d85){return function(_0x4e875b){if(_0x4e875b){return _0x4e875b['destroy']()[_0x7fa1('0x2b')](function(){_0x35e2ea[_0x7fa1('0x21')](0xcc)[_0x7fa1('0x22')]();});}};}function handleEntityNotFound(_0x3c761a,_0x1ae01a){return function(_0x56e23b){if(!_0x56e23b){_0x3c761a[_0x7fa1('0x20')](0x194);}return _0x56e23b;};}function handleError(_0x1999c3,_0x4d03a8){_0x4d03a8=_0x4d03a8||0x1f4;return function(_0x486f16){logger['error'](_0x486f16[_0x7fa1('0x2c')]);if(_0x486f16[_0x7fa1('0x2d')]){delete _0x486f16['name'];}_0x1999c3[_0x7fa1('0x21')](_0x4d03a8)['send'](_0x486f16);};}exports[_0x7fa1('0x2e')]=function(_0x447865,_0x80a7a4){var _0x3db053={},_0x4ae99c={},_0x2fe05d={'count':0x0,'rows':[]};var _0xf416c8=_['map'](db[_0x7fa1('0x2f')]['rawAttributes'],function(_0x4038ee){return{'name':_0x4038ee['fieldName'],'type':_0x4038ee['type'][_0x7fa1('0x30')]};});_0x4ae99c['model']=_['map'](_0xf416c8,_0x7fa1('0x2d'));_0x4ae99c['query']=_[_0x7fa1('0x31')](_0x447865[_0x7fa1('0x32')]);_0x4ae99c[_0x7fa1('0x33')]=_[_0x7fa1('0x34')](_0x4ae99c[_0x7fa1('0x35')],_0x4ae99c['query']);_0x3db053[_0x7fa1('0x36')]=_['intersection'](_0x4ae99c[_0x7fa1('0x35')],qs[_0x7fa1('0x37')](_0x447865[_0x7fa1('0x32')][_0x7fa1('0x37')]));_0x3db053[_0x7fa1('0x36')]=_0x3db053[_0x7fa1('0x36')]['length']?_0x3db053[_0x7fa1('0x36')]:_0x4ae99c[_0x7fa1('0x35')];if(!_0x447865[_0x7fa1('0x32')][_0x7fa1('0x38')](_0x7fa1('0x39'))){_0x3db053[_0x7fa1('0x26')]=qs[_0x7fa1('0x26')](_0x447865[_0x7fa1('0x32')][_0x7fa1('0x26')]);_0x3db053['offset']=qs[_0x7fa1('0x25')](_0x447865[_0x7fa1('0x32')][_0x7fa1('0x25')]);}_0x3db053['order']=qs['sort'](_0x447865[_0x7fa1('0x32')][_0x7fa1('0x3a')]);_0x3db053['where']=qs['filters'](_[_0x7fa1('0x3b')](_0x447865['query'],_0x4ae99c['filters']));if(_0x447865[_0x7fa1('0x32')][_0x7fa1('0x3c')]){_0x3db053['where']=_['merge'](_0x3db053[_0x7fa1('0x3d')],{'$or':_['map'](_0xf416c8,function(_0x31861a){if(_0x31861a['type']!=='VIRTUAL'){var _0x596458={};_0x596458[_0x31861a[_0x7fa1('0x2d')]]={'$like':'%'+_0x447865[_0x7fa1('0x32')][_0x7fa1('0x3c')]+'%'};return _0x596458;}})});}_0x3db053=_[_0x7fa1('0x3e')]({},_0x3db053,_0x447865[_0x7fa1('0x3f')]);var _0x14806b={'where':_0x3db053[_0x7fa1('0x3d')]};return db[_0x7fa1('0x2f')]['count'](_0x14806b)[_0x7fa1('0x2b')](function(_0x360d80){_0x2fe05d[_0x7fa1('0x24')]=_0x360d80;if(_0x447865[_0x7fa1('0x32')][_0x7fa1('0x40')]){_0x3db053[_0x7fa1('0x41')]=[{'all':!![]}];}return db['ChatInternalMessage'][_0x7fa1('0x42')](_0x3db053);})[_0x7fa1('0x2b')](function(_0x342eeb){_0x2fe05d[_0x7fa1('0x43')]=_0x342eeb;return _0x2fe05d;})[_0x7fa1('0x2b')](respondWithFilteredResult(_0x80a7a4,_0x3db053))[_0x7fa1('0x44')](handleError(_0x80a7a4,null));};exports[_0x7fa1('0x45')]=function(_0x563f47,_0x1cc903){var _0x455b4e={'raw':!![],'where':{'id':_0x563f47[_0x7fa1('0x46')]['id']}},_0x579eff={};_0x579eff['model']=_[_0x7fa1('0x31')](db[_0x7fa1('0x2f')][_0x7fa1('0x47')]);_0x579eff[_0x7fa1('0x32')]=_[_0x7fa1('0x31')](_0x563f47[_0x7fa1('0x32')]);_0x579eff[_0x7fa1('0x33')]=_[_0x7fa1('0x34')](_0x579eff['model'],_0x579eff['query']);_0x455b4e[_0x7fa1('0x36')]=_['intersection'](_0x579eff['model'],qs[_0x7fa1('0x37')](_0x563f47['query'][_0x7fa1('0x37')]));_0x455b4e['attributes']=_0x455b4e[_0x7fa1('0x36')]['length']?_0x455b4e[_0x7fa1('0x36')]:_0x579eff[_0x7fa1('0x35')];if(_0x563f47[_0x7fa1('0x32')][_0x7fa1('0x40')]){_0x455b4e[_0x7fa1('0x41')]=[{'all':!![]}];}_0x455b4e=_[_0x7fa1('0x3e')]({},_0x455b4e,_0x563f47[_0x7fa1('0x3f')]);return db['ChatInternalMessage'][_0x7fa1('0x48')](_0x455b4e)['then'](handleEntityNotFound(_0x1cc903,null))['then'](respondWithResult(_0x1cc903,null))[_0x7fa1('0x44')](handleError(_0x1cc903,null));};exports[_0x7fa1('0x49')]=function(_0x27ff65,_0x5d7769){return db['ChatInternalMessage'][_0x7fa1('0x49')](_0x27ff65[_0x7fa1('0x4a')],{})['then'](respondWithResult(_0x5d7769,0xc9))['catch'](handleError(_0x5d7769,null));};exports['update']=function(_0x283d76,_0x2c5213){if(_0x283d76['body']['id']){delete _0x283d76[_0x7fa1('0x4a')]['id'];}return db[_0x7fa1('0x2f')][_0x7fa1('0x48')]({'where':{'id':_0x283d76[_0x7fa1('0x46')]['id']}})[_0x7fa1('0x2b')](handleEntityNotFound(_0x2c5213,null))[_0x7fa1('0x2b')](saveUpdates(_0x283d76[_0x7fa1('0x4a')],null))[_0x7fa1('0x2b')](respondWithResult(_0x2c5213,null))[_0x7fa1('0x44')](handleError(_0x2c5213,null));};exports['destroy']=function(_0x1d8da3,_0x222777){return db[_0x7fa1('0x2f')][_0x7fa1('0x48')]({'where':{'id':_0x1d8da3[_0x7fa1('0x46')]['id']}})[_0x7fa1('0x2b')](handleEntityNotFound(_0x222777,null))[_0x7fa1('0x2b')](removeEntity(_0x222777,null))[_0x7fa1('0x44')](handleError(_0x222777,null));};exports['describe']=function(_0x597fd5,_0xea659f){return db[_0x7fa1('0x2f')]['describe']()[_0x7fa1('0x2b')](respondWithResult(_0xea659f,null))['catch'](handleError(_0xea659f,null));};function wrapUser(_0x55b9e7){return function(_0x220258){var _0x13095c=_0x55b9e7[_0x7fa1('0x4b')]({'plain':!![]});_0x13095c[_0x7fa1('0x4c')]=[];if(_0x220258){_0x13095c['lastMessageAt']=_0x220258['createdAt'];_0x13095c[_0x7fa1('0x4d')]=_0x220258;}else{_0x13095c[_0x7fa1('0x4e')]=moment(0x0)[_0x7fa1('0x4f')](_0x7fa1('0x50'));_0x13095c['lastMessage']={};}return _0x13095c;};}exports[_0x7fa1('0x51')]=function(_0x32ef8c,_0x4315bd,_0x41e7e8){var _0x149b5a=[];return db[_0x7fa1('0x52')][_0x7fa1('0x42')]({'where':{'role':['agent',_0x7fa1('0x53'),'user']},'attributes':['id',_0x7fa1('0x54'),_0x7fa1('0x2d'),'role',_0x7fa1('0x55'),_0x7fa1('0x56'),'online',_0x7fa1('0x57'),_0x7fa1('0x58'),'showWebBar'],'order':qs[_0x7fa1('0x3a')](_0x7fa1('0x59')),'include':[{'model':db[_0x7fa1('0x5a')],'as':_0x7fa1('0x5b'),'attributes':['id','name',_0x7fa1('0x5c')],'through':{'attributes':[]}}]})[_0x7fa1('0x2b')](function(_0x3a9afc){if(_0x3a9afc){var _0x23d06c=_0x32ef8c[_0x7fa1('0x5d')][_0x7fa1('0x4b')]({'plain':!![]});if(!_0x23d06c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x23d06c[_0x7fa1('0x5e')]===_0x7fa1('0x5d')){return db[_0x7fa1('0x5f')][_0x7fa1('0x48')]({'where':{'name':_0x7fa1('0x60'),'userProfileId':_0x23d06c['userProfileId']},'raw':!![]})[_0x7fa1('0x2b')](function(_0x3bfbd4){if(_0x3bfbd4){if(_0x3bfbd4['autoAssociation']===0x0){return db[_0x7fa1('0x61')][_0x7fa1('0x42')]({'where':{'sectionId':_0x3bfbd4['id']},'raw':!![]})[_0x7fa1('0x2b')](function(_0x154316){var _0x5320fc=[];if(_[_0x7fa1('0x62')](_0x154316)){_0x5320fc=_['filter'](_0x3a9afc,function(_0x242f25){if(_0x242f25[_0x7fa1('0x5e')]!=='agent'){return _0x242f25;}});return _0x5320fc;}else{for(var _0x1f3368=0x0;_0x1f3368<_0x3a9afc[_0x7fa1('0x63')];_0x1f3368++){var _0x5444c9=_0x3a9afc[_0x1f3368];if(_0x5444c9[_0x7fa1('0x5e')]==='agent'){var _0x58399a=_[_0x7fa1('0x48')](_0x154316,function(_0x53043e){return _0x53043e['resourceId']===_0x5444c9['id'];});if(_0x58399a)_0x5320fc['push'](_0x5444c9);}else{_0x5320fc[_0x7fa1('0x64')](_0x5444c9);}}return _0x5320fc;}});}else{return _0x3a9afc;}}else{var _0x2ec1d2=_[_0x7fa1('0x3c')](_0x3a9afc,function(_0x326d3a){if(_0x326d3a[_0x7fa1('0x5e')]!=='agent'){return _0x326d3a;}});return _0x2ec1d2;}});}else{return _0x3a9afc;}}})[_0x7fa1('0x2b')](function(_0x171ae8){var _0x4f0ae5=[];if(_0x171ae8){_0x149b5a=_0x171ae8;for(var _0x4db451=0x0;_0x4db451<_0x171ae8[_0x7fa1('0x63')];_0x4db451+=0x1){_0x149b5a[_0x4db451][_0x7fa1('0x4c')]=[];_0x4f0ae5[_0x7fa1('0x64')](db['ChatInternalMessage'][_0x7fa1('0x48')]({'where':{'FromId':[_0x32ef8c[_0x7fa1('0x5d')]['id'],_0x171ae8[_0x4db451]['id']],'ToId':[_0x32ef8c[_0x7fa1('0x5d')]['id'],_0x171ae8[_0x4db451]['id']],'ChatGroupId':null},'attributes':['id','createdAt','FromId',_0x7fa1('0x65'),_0x7fa1('0x66'),_0x7fa1('0x4a')],'order':qs[_0x7fa1('0x3a')](_0x7fa1('0x67')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x7fa1('0x2b')](wrapUser(_0x171ae8[_0x4db451])));}return BPromise[_0x7fa1('0x68')](_0x4f0ae5);}return[];})['then'](function(_0x4e0a17){return{'rows':_0x4e0a17,'count':_0x4e0a17['length']};})[_0x7fa1('0x2b')](respondWithResult(_0x4315bd,null))['catch'](handleError(_0x4315bd,null));};
\ No newline at end of file
+var _0x3301=['api','../../config/utils','../../config/environment','redis','defaults','localhost','socket.io-emitter','register','status','end','count','offset','limit','set','Content-Range','apply','save','update','then','destroy','error','stack','name','index','map','ChatInternalMessage','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','VIRTUAL','filter','merge','options','includeAll','include','findAll','show','params','catch','create','body','find','describe','messages','lastMessageAt','createdAt','format','YYYY-MM-DD\x20HH:mm:ss','lastMessage','User','agent','admin','user','fullname','userpic','internal','online','lastLoginAt','allowmessenger','showWebBar','-online','VoiceQueue','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','Agents','userProfileId','UserProfileResource','isEmpty','resourceId','push','FromId','ToId','read','-createdAt','all','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x3301,0xcd));var _0x1330=function(_0x238e7c,_0x46ee86){_0x238e7c=_0x238e7c-0x0;var _0x128a39=_0x3301[_0x238e7c];return _0x128a39;};'use strict';var pdf=require(_0x1330('0x0'));var emlformat=require(_0x1330('0x1'));var rimraf=require(_0x1330('0x2'));var zipdir=require(_0x1330('0x3'));var jsonpatch=require(_0x1330('0x4'));var rp=require(_0x1330('0x5'));var moment=require(_0x1330('0x6'));var BPromise=require(_0x1330('0x7'));var Mustache=require('mustache');var util=require(_0x1330('0x8'));var path=require(_0x1330('0x9'));var sox=require(_0x1330('0xa'));var csv=require(_0x1330('0xb'));var ejs=require(_0x1330('0xc'));var fs=require('fs');var _=require('lodash');var squel=require(_0x1330('0xd'));var crypto=require(_0x1330('0xe'));var jsforce=require(_0x1330('0xf'));var deskjs=require(_0x1330('0x10'));var toCsv=require('to-csv');var querystring=require(_0x1330('0x11'));var Papa=require('papaparse');var Redis=require(_0x1330('0x12'));var authService=require(_0x1330('0x13'));var qs=require('../../components/parsers/qs');var as=require(_0x1330('0x14'));var hardwareService=require(_0x1330('0x15'));var logger=require(_0x1330('0x16'))(_0x1330('0x17'));var utils=require(_0x1330('0x18'));var config=require(_0x1330('0x19'));var db=require('../../mysqldb')['db'];config[_0x1330('0x1a')]=_[_0x1330('0x1b')](config[_0x1330('0x1a')],{'host':_0x1330('0x1c'),'port':0x18eb});var socket=require(_0x1330('0x1d'))(new Redis(config[_0x1330('0x1a')]));require('./chatInternalMessage.socket')[_0x1330('0x1e')](socket);function respondWithStatusCode(_0x1d9998,_0x522a3c){_0x522a3c=_0x522a3c||0xcc;return function(_0x31261c){if(_0x31261c){return _0x1d9998['sendStatus'](_0x522a3c);}return _0x1d9998[_0x1330('0x1f')](_0x522a3c)[_0x1330('0x20')]();};}function respondWithResult(_0x5c9b88,_0x4c0563){_0x4c0563=_0x4c0563||0xc8;return function(_0x23a6c7){if(_0x23a6c7){return _0x5c9b88[_0x1330('0x1f')](_0x4c0563)['json'](_0x23a6c7);}};}function respondWithFilteredResult(_0x1fd36c,_0x18a963){return function(_0x1b31c1){if(_0x1b31c1){var _0x5e6608=_0x1b31c1[_0x1330('0x21')],_0x34355f=_0x18a963['offset'],_0x324c7c=_0x18a963[_0x1330('0x22')]+_0x18a963[_0x1330('0x23')],_0x2ee625;if(_0x324c7c>=_0x5e6608){_0x324c7c=_0x5e6608;_0x2ee625=0xc8;}else{_0x2ee625=0xce;}_0x1fd36c[_0x1330('0x1f')](_0x2ee625);return _0x1fd36c[_0x1330('0x24')](_0x1330('0x25'),_0x34355f+'-'+_0x324c7c+'/'+_0x5e6608)['json'](_0x1b31c1);}return null;};}function patchUpdates(_0xade5b0){return function(_0x24a909){try{jsonpatch[_0x1330('0x26')](_0x24a909,_0xade5b0,!![]);}catch(_0x26fd5d){return BPromise['reject'](_0x26fd5d);}return _0x24a909[_0x1330('0x27')]();};}function saveUpdates(_0x28b8ee,_0x5e7298){return function(_0xc4611e){if(_0xc4611e){return _0xc4611e[_0x1330('0x28')](_0x28b8ee)[_0x1330('0x29')](function(_0x3db482){return _0x3db482;});}return null;};}function removeEntity(_0x2984c1,_0xe5605e){return function(_0x4c8aad){if(_0x4c8aad){return _0x4c8aad[_0x1330('0x2a')]()[_0x1330('0x29')](function(){_0x2984c1[_0x1330('0x1f')](0xcc)[_0x1330('0x20')]();});}};}function handleEntityNotFound(_0x288f25,_0x4b49af){return function(_0x4ac05e){if(!_0x4ac05e){_0x288f25['sendStatus'](0x194);}return _0x4ac05e;};}function handleError(_0x1d4ad7,_0x4b0fb4){_0x4b0fb4=_0x4b0fb4||0x1f4;return function(_0x53daaa){logger[_0x1330('0x2b')](_0x53daaa[_0x1330('0x2c')]);if(_0x53daaa['name']){delete _0x53daaa[_0x1330('0x2d')];}_0x1d4ad7[_0x1330('0x1f')](_0x4b0fb4)['send'](_0x53daaa);};}exports[_0x1330('0x2e')]=function(_0x4eebd2,_0x5ba85b){var _0x5b149d={},_0x4ba1a3={},_0x14a9a8={'count':0x0,'rows':[]};var _0x1e61d4=_[_0x1330('0x2f')](db[_0x1330('0x30')][_0x1330('0x31')],function(_0x508414){return{'name':_0x508414[_0x1330('0x32')],'type':_0x508414[_0x1330('0x33')][_0x1330('0x34')]};});_0x4ba1a3[_0x1330('0x35')]=_['map'](_0x1e61d4,_0x1330('0x2d'));_0x4ba1a3[_0x1330('0x36')]=_[_0x1330('0x37')](_0x4eebd2[_0x1330('0x36')]);_0x4ba1a3[_0x1330('0x38')]=_[_0x1330('0x39')](_0x4ba1a3[_0x1330('0x35')],_0x4ba1a3[_0x1330('0x36')]);_0x5b149d[_0x1330('0x3a')]=_[_0x1330('0x39')](_0x4ba1a3[_0x1330('0x35')],qs[_0x1330('0x3b')](_0x4eebd2[_0x1330('0x36')][_0x1330('0x3b')]));_0x5b149d[_0x1330('0x3a')]=_0x5b149d[_0x1330('0x3a')][_0x1330('0x3c')]?_0x5b149d[_0x1330('0x3a')]:_0x4ba1a3[_0x1330('0x35')];if(!_0x4eebd2[_0x1330('0x36')][_0x1330('0x3d')](_0x1330('0x3e'))){_0x5b149d[_0x1330('0x23')]=qs[_0x1330('0x23')](_0x4eebd2[_0x1330('0x36')]['limit']);_0x5b149d[_0x1330('0x22')]=qs[_0x1330('0x22')](_0x4eebd2[_0x1330('0x36')][_0x1330('0x22')]);}_0x5b149d[_0x1330('0x3f')]=qs['sort'](_0x4eebd2[_0x1330('0x36')][_0x1330('0x40')]);_0x5b149d[_0x1330('0x41')]=qs[_0x1330('0x38')](_[_0x1330('0x42')](_0x4eebd2['query'],_0x4ba1a3[_0x1330('0x38')]));if(_0x4eebd2[_0x1330('0x36')]['filter']){_0x5b149d['where']=_['merge'](_0x5b149d[_0x1330('0x41')],{'$or':_[_0x1330('0x2f')](_0x1e61d4,function(_0x341879){if(_0x341879['type']!==_0x1330('0x43')){var _0x105db7={};_0x105db7[_0x341879[_0x1330('0x2d')]]={'$like':'%'+_0x4eebd2[_0x1330('0x36')][_0x1330('0x44')]+'%'};return _0x105db7;}})});}_0x5b149d=_[_0x1330('0x45')]({},_0x5b149d,_0x4eebd2[_0x1330('0x46')]);var _0x21e50a={'where':_0x5b149d[_0x1330('0x41')]};return db[_0x1330('0x30')][_0x1330('0x21')](_0x21e50a)[_0x1330('0x29')](function(_0x26579b){_0x14a9a8['count']=_0x26579b;if(_0x4eebd2['query'][_0x1330('0x47')]){_0x5b149d[_0x1330('0x48')]=[{'all':!![]}];}return db[_0x1330('0x30')][_0x1330('0x49')](_0x5b149d);})[_0x1330('0x29')](function(_0x152b0c){_0x14a9a8['rows']=_0x152b0c;return _0x14a9a8;})['then'](respondWithFilteredResult(_0x5ba85b,_0x5b149d))['catch'](handleError(_0x5ba85b,null));};exports[_0x1330('0x4a')]=function(_0x471e59,_0xdc1530){var _0x1855f5={'raw':!![],'where':{'id':_0x471e59[_0x1330('0x4b')]['id']}},_0x480b88={};_0x480b88[_0x1330('0x35')]=_[_0x1330('0x37')](db[_0x1330('0x30')][_0x1330('0x31')]);_0x480b88[_0x1330('0x36')]=_[_0x1330('0x37')](_0x471e59[_0x1330('0x36')]);_0x480b88[_0x1330('0x38')]=_[_0x1330('0x39')](_0x480b88[_0x1330('0x35')],_0x480b88[_0x1330('0x36')]);_0x1855f5[_0x1330('0x3a')]=_[_0x1330('0x39')](_0x480b88[_0x1330('0x35')],qs['fields'](_0x471e59[_0x1330('0x36')][_0x1330('0x3b')]));_0x1855f5['attributes']=_0x1855f5['attributes'][_0x1330('0x3c')]?_0x1855f5['attributes']:_0x480b88[_0x1330('0x35')];if(_0x471e59[_0x1330('0x36')][_0x1330('0x47')]){_0x1855f5[_0x1330('0x48')]=[{'all':!![]}];}_0x1855f5=_[_0x1330('0x45')]({},_0x1855f5,_0x471e59['options']);return db['ChatInternalMessage']['find'](_0x1855f5)[_0x1330('0x29')](handleEntityNotFound(_0xdc1530,null))[_0x1330('0x29')](respondWithResult(_0xdc1530,null))[_0x1330('0x4c')](handleError(_0xdc1530,null));};exports[_0x1330('0x4d')]=function(_0x5243a4,_0x36a71f){return db[_0x1330('0x30')][_0x1330('0x4d')](_0x5243a4['body'],{})[_0x1330('0x29')](respondWithResult(_0x36a71f,0xc9))[_0x1330('0x4c')](handleError(_0x36a71f,null));};exports[_0x1330('0x28')]=function(_0x631fb3,_0x53410c){if(_0x631fb3[_0x1330('0x4e')]['id']){delete _0x631fb3['body']['id'];}return db[_0x1330('0x30')]['find']({'where':{'id':_0x631fb3[_0x1330('0x4b')]['id']}})['then'](handleEntityNotFound(_0x53410c,null))[_0x1330('0x29')](saveUpdates(_0x631fb3[_0x1330('0x4e')],null))[_0x1330('0x29')](respondWithResult(_0x53410c,null))[_0x1330('0x4c')](handleError(_0x53410c,null));};exports[_0x1330('0x2a')]=function(_0x5e1cd2,_0x15ae13){return db[_0x1330('0x30')][_0x1330('0x4f')]({'where':{'id':_0x5e1cd2[_0x1330('0x4b')]['id']}})[_0x1330('0x29')](handleEntityNotFound(_0x15ae13,null))[_0x1330('0x29')](removeEntity(_0x15ae13,null))['catch'](handleError(_0x15ae13,null));};exports[_0x1330('0x50')]=function(_0x521a5b,_0x1059e6){return db['ChatInternalMessage'][_0x1330('0x50')]()[_0x1330('0x29')](respondWithResult(_0x1059e6,null))[_0x1330('0x4c')](handleError(_0x1059e6,null));};function wrapUser(_0x3a9dab){return function(_0x3fa032){var _0x258499=_0x3a9dab['get']({'plain':!![]});_0x258499[_0x1330('0x51')]=[];if(_0x3fa032){_0x258499[_0x1330('0x52')]=_0x3fa032[_0x1330('0x53')];_0x258499['lastMessage']=_0x3fa032;}else{_0x258499[_0x1330('0x52')]=moment(0x0)[_0x1330('0x54')](_0x1330('0x55'));_0x258499[_0x1330('0x56')]={};}return _0x258499;};}exports['getUsers']=function(_0x2244b6,_0x31ff29,_0x4c6afe){var _0x40ed62=[];return db[_0x1330('0x57')][_0x1330('0x49')]({'where':{'role':[_0x1330('0x58'),_0x1330('0x59'),_0x1330('0x5a')]},'attributes':['id',_0x1330('0x5b'),_0x1330('0x2d'),'role',_0x1330('0x5c'),_0x1330('0x5d'),_0x1330('0x5e'),_0x1330('0x5f'),_0x1330('0x60'),_0x1330('0x61')],'order':qs[_0x1330('0x40')](_0x1330('0x62')),'include':[{'model':db[_0x1330('0x63')],'as':'VoiceQueues','attributes':['id',_0x1330('0x2d'),'type'],'through':{'attributes':[]}}]})[_0x1330('0x29')](function(_0x20ee4b){if(_0x20ee4b){var _0x1da2f9=_0x2244b6[_0x1330('0x5a')]['get']({'plain':!![]});if(!_0x1da2f9)throw new Error(_0x1330('0x64'));if(_0x1da2f9[_0x1330('0x65')]==='user'){return db[_0x1330('0x66')][_0x1330('0x4f')]({'where':{'name':_0x1330('0x67'),'userProfileId':_0x1da2f9[_0x1330('0x68')]},'raw':!![]})['then'](function(_0x2eb4d2){if(_0x2eb4d2){if(_0x2eb4d2['autoAssociation']===0x0){return db[_0x1330('0x69')][_0x1330('0x49')]({'where':{'sectionId':_0x2eb4d2['id']},'raw':!![]})['then'](function(_0x2bc34b){var _0x27194b=[];if(_[_0x1330('0x6a')](_0x2bc34b)){_0x27194b=_[_0x1330('0x44')](_0x20ee4b,function(_0x4597fe){if(_0x4597fe[_0x1330('0x65')]!==_0x1330('0x58')){return _0x4597fe;}});return _0x27194b;}else{for(var _0x29e8f4=0x0;_0x29e8f4<_0x20ee4b[_0x1330('0x3c')];_0x29e8f4++){var _0x33301a=_0x20ee4b[_0x29e8f4];if(_0x33301a['role']===_0x1330('0x58')){var _0x264b82=_[_0x1330('0x4f')](_0x2bc34b,function(_0x3a53ec){return _0x3a53ec[_0x1330('0x6b')]===_0x33301a['id'];});if(_0x264b82)_0x27194b[_0x1330('0x6c')](_0x33301a);}else{_0x27194b['push'](_0x33301a);}}return _0x27194b;}});}else{return _0x20ee4b;}}else{var _0xb57e77=_['filter'](_0x20ee4b,function(_0x23cb0c){if(_0x23cb0c[_0x1330('0x65')]!==_0x1330('0x58')){return _0x23cb0c;}});return _0xb57e77;}});}else{return _0x20ee4b;}}})[_0x1330('0x29')](function(_0x2c8597){var _0x1c776b=[];if(_0x2c8597){_0x40ed62=_0x2c8597;for(var _0x570ff7=0x0;_0x570ff7<_0x2c8597[_0x1330('0x3c')];_0x570ff7+=0x1){_0x40ed62[_0x570ff7][_0x1330('0x51')]=[];_0x1c776b[_0x1330('0x6c')](db['ChatInternalMessage'][_0x1330('0x4f')]({'where':{'FromId':[_0x2244b6[_0x1330('0x5a')]['id'],_0x2c8597[_0x570ff7]['id']],'ToId':[_0x2244b6[_0x1330('0x5a')]['id'],_0x2c8597[_0x570ff7]['id']],'ChatGroupId':null},'attributes':['id',_0x1330('0x53'),_0x1330('0x6d'),_0x1330('0x6e'),_0x1330('0x6f'),_0x1330('0x4e')],'order':qs[_0x1330('0x40')](_0x1330('0x70')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x1330('0x29')](wrapUser(_0x2c8597[_0x570ff7])));}return BPromise[_0x1330('0x71')](_0x1c776b);}return[];})['then'](function(_0x592c15){return{'rows':_0x592c15,'count':_0x592c15[_0x1330('0x3c')]};})[_0x1330('0x29')](respondWithResult(_0x31ff29,null))[_0x1330('0x4c')](handleError(_0x31ff29,null));};
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js
index d25e268..112bea1 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.events.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x67cb=['events','ChatInternalMessage','setMaxListeners','save','update','remove','emit','hasOwnProperty','exports'];(function(_0x1d4593,_0x1ef24c){var _0x42523d=function(_0x67a0e){while(--_0x67a0e){_0x1d4593['push'](_0x1d4593['shift']());}};_0x42523d(++_0x1ef24c);}(_0x67cb,0x19e));var _0xb67c=function(_0x4792c8,_0x5158a1){_0x4792c8=_0x4792c8-0x0;var _0x35edb1=_0x67cb[_0x4792c8];return _0x35edb1;};'use strict';var EventEmitter=require(_0xb67c('0x0'));var ChatInternalMessage=require('../../mysqldb')['db'][_0xb67c('0x1')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0xb67c('0x2')](0x0);var events={'afterCreate':_0xb67c('0x3'),'afterUpdate':_0xb67c('0x4'),'afterDestroy':_0xb67c('0x5')};function emitEvent(_0x2c66b2){return function(_0x4dd003,_0x5d6226,_0x23aec8){ChatInternalMessageEvents[_0xb67c('0x6')](_0x2c66b2+':'+_0x4dd003['id'],_0x4dd003);ChatInternalMessageEvents[_0xb67c('0x6')](_0x2c66b2,_0x4dd003);_0x23aec8(null);};}for(var e in events){if(events[_0xb67c('0x7')](e)){var event=events[e];ChatInternalMessage['hook'](e,emitEvent(event));}}module[_0xb67c('0x8')]=ChatInternalMessageEvents;
\ No newline at end of file
+var _0x397c=['exports','events','../../mysqldb','ChatInternalMessage','save','remove','emit','hasOwnProperty'];(function(_0x3e4f41,_0x214d32){var _0x286f08=function(_0x543d44){while(--_0x543d44){_0x3e4f41['push'](_0x3e4f41['shift']());}};_0x286f08(++_0x214d32);}(_0x397c,0xc1));var _0xc397=function(_0x4a747d,_0x3b747f){_0x4a747d=_0x4a747d-0x0;var _0x3a5b5c=_0x397c[_0x4a747d];return _0x3a5b5c;};'use strict';var EventEmitter=require(_0xc397('0x0'));var ChatInternalMessage=require(_0xc397('0x1'))['db'][_0xc397('0x2')];var ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xc397('0x3'),'afterUpdate':'update','afterDestroy':_0xc397('0x4')};function emitEvent(_0x4547f9){return function(_0x32c908,_0x194ade,_0x8be32e){ChatInternalMessageEvents['emit'](_0x4547f9+':'+_0x32c908['id'],_0x32c908);ChatInternalMessageEvents[_0xc397('0x5')](_0x4547f9,_0x32c908);_0x8be32e(null);};}for(var e in events){if(events[_0xc397('0x6')](e)){var event=events[e];ChatInternalMessage['hook'](e,emitEvent(event));}}module[_0xc397('0x7')]=ChatInternalMessageEvents;
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js
index 5c75b20..124138e 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.model.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4fc2=['lodash','util','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./chatInternalMessage.attributes','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci'];(function(_0x3cbcd8,_0x57cea2){var _0x58134a=function(_0x52d8f0){while(--_0x52d8f0){_0x3cbcd8['push'](_0x3cbcd8['shift']());}};_0x58134a(++_0x57cea2);}(_0x4fc2,0x111));var _0x24fc=function(_0x4fc756,_0x5969c9){_0x4fc756=_0x4fc756-0x0;var _0x6b1861=_0x4fc2[_0x4fc756];return _0x6b1861;};'use strict';var _=require(_0x24fc('0x0'));var util=require(_0x24fc('0x1'));var logger=require(_0x24fc('0x2'))(_0x24fc('0x3'));var moment=require('moment');var BPromise=require(_0x24fc('0x4'));var rp=require(_0x24fc('0x5'));var fs=require('fs');var path=require(_0x24fc('0x6'));var rimraf=require('rimraf');var config=require(_0x24fc('0x7'));var attributes=require(_0x24fc('0x8'));module['exports']=function(_0x26fcc6,_0x12d602){return _0x26fcc6['define'](_0x24fc('0x9'),attributes,{'tableName':_0x24fc('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x24fc('0xb'),'collate':_0x24fc('0xc')});};
\ No newline at end of file
+var _0xd8b0=['define','chat_internal_messages','utf8mb4','lodash','util','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3ecd0b,_0x3473d7){var _0x24dcfe=function(_0x453545){while(--_0x453545){_0x3ecd0b['push'](_0x3ecd0b['shift']());}};_0x24dcfe(++_0x3473d7);}(_0xd8b0,0xad));var _0x0d8b=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xd8b0[_0x20a584];return _0x4b41a8;};'use strict';var _=require(_0x0d8b('0x0'));var util=require(_0x0d8b('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x0d8b('0x2'));var rp=require(_0x0d8b('0x3'));var fs=require('fs');var path=require(_0x0d8b('0x4'));var rimraf=require(_0x0d8b('0x5'));var config=require(_0x0d8b('0x6'));var attributes=require('./chatInternalMessage.attributes');module['exports']=function(_0x3f8b6f,_0x227c63){return _0x3f8b6f[_0x0d8b('0x7')]('ChatInternalMessage',attributes,{'tableName':_0x0d8b('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x0d8b('0x9'),'collate':'utf8mb4_unicode_ci'});};
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js
index f53cc81..2b4e8db 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x35a4=['client','http','redis','defaults','localhost','socket.io-emitter','register','request','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0xa1e030,_0x579969){var _0x1619bb=function(_0x108f53){while(--_0x108f53){_0xa1e030['push'](_0xa1e030['shift']());}};_0x1619bb(++_0x579969);}(_0x35a4,0x150));var _0x435a=function(_0x225f50,_0x48a77d){_0x225f50=_0x225f50-0x0;var _0x19d003=_0x35a4[_0x225f50];return _0x19d003;};'use strict';var _=require(_0x435a('0x0'));var util=require(_0x435a('0x1'));var moment=require(_0x435a('0x2'));var BPromise=require(_0x435a('0x3'));var rs=require(_0x435a('0x4'));var fs=require('fs');var Redis=require(_0x435a('0x5'));var db=require(_0x435a('0x6'))['db'];var utils=require(_0x435a('0x7'));var logger=require(_0x435a('0x8'))(_0x435a('0x9'));var config=require(_0x435a('0xa'));var jayson=require(_0x435a('0xb'));var client=jayson[_0x435a('0xc')][_0x435a('0xd')]({'port':0x232a});config[_0x435a('0xe')]=_[_0x435a('0xf')](config[_0x435a('0xe')],{'host':_0x435a('0x10'),'port':0x18eb});var socket=require(_0x435a('0x11'))(new Redis(config[_0x435a('0xe')]));require('./chatInternalMessage.socket')[_0x435a('0x12')](socket);function respondWithRpcPromise(_0x49613d,_0x7ab381,_0xfb1867){return new BPromise(function(_0x48712f,_0x1cfff1){return client[_0x435a('0x13')](_0x49613d,_0xfb1867)['then'](function(_0x293033){logger['info'](_0x435a('0x14'),_0x7ab381,_0x435a('0x15'));logger[_0x435a('0x16')]('ChatInternalMessage,\x20%s,\x20%s,\x20%s',_0x7ab381,_0x435a('0x15'),JSON[_0x435a('0x17')](_0x293033));if(_0x293033[_0x435a('0x18')]){if(_0x293033['error'][_0x435a('0x19')]===0x1f4){logger[_0x435a('0x18')](_0x435a('0x14'),_0x7ab381,_0x293033[_0x435a('0x18')][_0x435a('0x1a')]);return _0x1cfff1(_0x293033[_0x435a('0x18')][_0x435a('0x1a')]);}logger[_0x435a('0x18')](_0x435a('0x14'),_0x7ab381,_0x293033[_0x435a('0x18')]['message']);return _0x48712f(_0x293033['error'][_0x435a('0x1a')]);}else{logger['info']('ChatInternalMessage,\x20%s,\x20%s',_0x7ab381,_0x435a('0x15'));_0x48712f(_0x293033[_0x435a('0x1b')][_0x435a('0x1a')]);}})[_0x435a('0x1c')](function(_0xc15e13){logger[_0x435a('0x18')]('ChatInternalMessage,\x20%s,\x20%s',_0x7ab381,_0xc15e13);_0x1cfff1(_0xc15e13);});});}
\ No newline at end of file
+var _0xbabb=['defaults','socket.io-emitter','./chatInternalMessage.socket','register','then','info','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','ChatInternalMessage,\x20%s,\x20%s','message','result','catch','moment','randomstring','ioredis','../../mysqldb','../../config/logger','jayson/promise','client','http','redis'];(function(_0x52be03,_0x5bf5f6){var _0xc64bda=function(_0x4ea1a7){while(--_0x4ea1a7){_0x52be03['push'](_0x52be03['shift']());}};_0xc64bda(++_0x5bf5f6);}(_0xbabb,0xa6));var _0xbbab=function(_0x2bb6d7,_0x47d510){_0x2bb6d7=_0x2bb6d7-0x0;var _0x574d01=_0xbabb[_0x2bb6d7];return _0x574d01;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xbbab('0x0'));var BPromise=require('bluebird');var rs=require(_0xbbab('0x1'));var fs=require('fs');var Redis=require(_0xbbab('0x2'));var db=require(_0xbbab('0x3'))['db'];var utils=require('../../config/utils');var logger=require(_0xbbab('0x4'))('rpc');var config=require('../../config/environment');var jayson=require(_0xbbab('0x5'));var client=jayson[_0xbbab('0x6')][_0xbbab('0x7')]({'port':0x232a});config[_0xbbab('0x8')]=_[_0xbbab('0x9')](config[_0xbbab('0x8')],{'host':'localhost','port':0x18eb});var socket=require(_0xbbab('0xa'))(new Redis(config[_0xbbab('0x8')]));require(_0xbbab('0xb'))[_0xbbab('0xc')](socket);function respondWithRpcPromise(_0x516bd8,_0x360aaf,_0x1da77a){return new BPromise(function(_0x3dec45,_0x4ad9d8){return client['request'](_0x516bd8,_0x1da77a)[_0xbbab('0xd')](function(_0x209807){logger[_0xbbab('0xe')]('ChatInternalMessage,\x20%s,\x20%s',_0x360aaf,_0xbbab('0xf'));logger[_0xbbab('0x10')](_0xbbab('0x11'),_0x360aaf,_0xbbab('0xf'),JSON[_0xbbab('0x12')](_0x209807));if(_0x209807[_0xbbab('0x13')]){if(_0x209807[_0xbbab('0x13')][_0xbbab('0x14')]===0x1f4){logger[_0xbbab('0x13')](_0xbbab('0x15'),_0x360aaf,_0x209807['error'][_0xbbab('0x16')]);return _0x4ad9d8(_0x209807[_0xbbab('0x13')]['message']);}logger[_0xbbab('0x13')](_0xbbab('0x15'),_0x360aaf,_0x209807[_0xbbab('0x13')][_0xbbab('0x16')]);return _0x3dec45(_0x209807[_0xbbab('0x13')][_0xbbab('0x16')]);}else{logger[_0xbbab('0xe')](_0xbbab('0x15'),_0x360aaf,'request\x20sent');_0x3dec45(_0x209807[_0xbbab('0x17')][_0xbbab('0x16')]);}})[_0xbbab('0x18')](function(_0x81fd19){logger[_0xbbab('0x13')]('ChatInternalMessage,\x20%s,\x20%s',_0x360aaf,_0x81fd19);_0x4ad9d8(_0x81fd19);});});}
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js
index 4022f01..3b29450 100644
--- a/server/api/chatInternalMessage/chatInternalMessage.socket.js
+++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1de4=['emit','removeListener','length','chatInternalMessage:','./chatInternalMessage.events','save','remove','update'];(function(_0x325fde,_0xd628df){var _0xf4a49=function(_0x453ad2){while(--_0x453ad2){_0x325fde['push'](_0x325fde['shift']());}};_0xf4a49(++_0xd628df);}(_0x1de4,0x94));var _0x41de=function(_0x589e5f,_0x40dd49){_0x589e5f=_0x589e5f-0x0;var _0x2c44c5=_0x1de4[_0x589e5f];return _0x2c44c5;};'use strict';var ChatInternalMessageEvents=require(_0x41de('0x0'));var events=[_0x41de('0x1'),_0x41de('0x2'),_0x41de('0x3')];function createListener(_0x4aafae,_0x35b505){return function(_0x43c48c){_0x35b505[_0x41de('0x4')](_0x4aafae,_0x43c48c);};}function removeListener(_0x5dd1cb,_0x378cbe){return function(){ChatInternalMessageEvents[_0x41de('0x5')](_0x5dd1cb,_0x378cbe);};}exports['register']=function(_0x2e7196){for(var _0x122565=0x0,_0x2f1078=events[_0x41de('0x6')];_0x122565<_0x2f1078;_0x122565++){var _0x50f716=events[_0x122565];var _0x4c292c=createListener(_0x41de('0x7')+_0x50f716,_0x2e7196);ChatInternalMessageEvents['on'](_0x50f716,_0x4c292c);}};
\ No newline at end of file
+var _0x885e=['removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','update','emit'];(function(_0x3d0177,_0x5c98b1){var _0x47e974=function(_0x37b219){while(--_0x37b219){_0x3d0177['push'](_0x3d0177['shift']());}};_0x47e974(++_0x5c98b1);}(_0x885e,0xe4));var _0xe885=function(_0x382c3a,_0x32c41a){_0x382c3a=_0x382c3a-0x0;var _0x473588=_0x885e[_0x382c3a];return _0x473588;};'use strict';var ChatInternalMessageEvents=require(_0xe885('0x0'));var events=[_0xe885('0x1'),'remove',_0xe885('0x2')];function createListener(_0x1cd11a,_0x162982){return function(_0xfea0bc){_0x162982[_0xe885('0x3')](_0x1cd11a,_0xfea0bc);};}function removeListener(_0x4fcd9b,_0x499ab6){return function(){ChatInternalMessageEvents[_0xe885('0x4')](_0x4fcd9b,_0x499ab6);};}exports[_0xe885('0x5')]=function(_0x33286a){for(var _0x1a5fd6=0x0,_0x55d2b2=events[_0xe885('0x6')];_0x1a5fd6<_0x55d2b2;_0x1a5fd6++){var _0x597bdc=events[_0x1a5fd6];var _0x2e8fe0=createListener(_0xe885('0x7')+_0x597bdc,_0x33286a);ChatInternalMessageEvents['on'](_0x597bdc,_0x2e8fe0);}};
\ No newline at end of file
diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js
index 452aacc..bc38b7e 100644
--- a/server/api/chatInternalMessage/index.js
+++ b/server/api/chatInternalMessage/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcb91=['isAuthenticated','/describe','describe','/:id','show','post','put','update','delete','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get'];(function(_0x158f58,_0x1b25fa){var _0xf3f9d=function(_0x304d5f){while(--_0x304d5f){_0x158f58['push'](_0x158f58['shift']());}};_0xf3f9d(++_0x1b25fa);}(_0xcb91,0x1a9));var _0x1cb9=function(_0x1d70db,_0x142b63){_0x1d70db=_0x1d70db-0x0;var _0x3060c6=_0xcb91[_0x1d70db];return _0x3060c6;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x1cb9('0x0'));var timeout=require(_0x1cb9('0x1'));var express=require(_0x1cb9('0x2'));var router=express[_0x1cb9('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x1cb9('0x4'));var config=require(_0x1cb9('0x5'));var controller=require('./chatInternalMessage.controller');router[_0x1cb9('0x6')]('/',auth[_0x1cb9('0x7')](),controller['index']);router[_0x1cb9('0x6')](_0x1cb9('0x8'),auth['isAuthenticated'](),controller[_0x1cb9('0x9')]);router[_0x1cb9('0x6')]('/users',auth[_0x1cb9('0x7')](),controller['getUsers']);router['get'](_0x1cb9('0xa'),auth[_0x1cb9('0x7')](),controller[_0x1cb9('0xb')]);router[_0x1cb9('0xc')]('/',auth[_0x1cb9('0x7')](),controller['create']);router[_0x1cb9('0xd')](_0x1cb9('0xa'),controller[_0x1cb9('0xe')]);router[_0x1cb9('0xf')](_0x1cb9('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;
\ No newline at end of file
+var _0xd8b0=['put','update','delete','destroy','exports','multer','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatInternalMessage.controller','index','get','/describe','describe','isAuthenticated','getUsers','/:id','show','post'];(function(_0x868e36,_0x2fe59a){var _0x5bc09a=function(_0x3eb258){while(--_0x3eb258){_0x868e36['push'](_0x868e36['shift']());}};_0x5bc09a(++_0x2fe59a);}(_0xd8b0,0xad));var _0x0d8b=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xd8b0[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x0d8b('0x0'));var util=require(_0x0d8b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0d8b('0x2')]();var auth=require(_0x0d8b('0x3'));var interaction=require(_0x0d8b('0x4'));var config=require(_0x0d8b('0x5'));var controller=require(_0x0d8b('0x6'));router['get']('/',auth['isAuthenticated'](),controller[_0x0d8b('0x7')]);router[_0x0d8b('0x8')](_0x0d8b('0x9'),auth['isAuthenticated'](),controller[_0x0d8b('0xa')]);router[_0x0d8b('0x8')]('/users',auth[_0x0d8b('0xb')](),controller[_0x0d8b('0xc')]);router[_0x0d8b('0x8')](_0x0d8b('0xd'),auth[_0x0d8b('0xb')](),controller[_0x0d8b('0xe')]);router[_0x0d8b('0xf')]('/',auth[_0x0d8b('0xb')](),controller['create']);router[_0x0d8b('0x10')]('/:id',controller[_0x0d8b('0x11')]);router[_0x0d8b('0x12')](_0x0d8b('0xd'),auth[_0x0d8b('0xb')](),controller[_0x0d8b('0x13')]);module[_0x0d8b('0x14')]=router;
\ No newline at end of file
diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js
index b0cbcc1..5f9e18f 100644
--- a/server/api/chatMessage/chatMessage.attributes.js
+++ b/server/api/chatMessage/chatMessage.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc163=['TEXT','medium','BOOLEAN','ENUM','out','DATE','sequelize','exports'];(function(_0x1ffed3,_0x3d7bac){var _0x5939b1=function(_0x423488){while(--_0x423488){_0x1ffed3['push'](_0x1ffed3['shift']());}};_0x5939b1(++_0x3d7bac);}(_0xc163,0x1a6));var _0x3c16=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xc163[_0x321bb2];return _0x9c12ed;};'use strict';var Sequelize=require(_0x3c16('0x0'));module[_0x3c16('0x1')]={'body':{'type':Sequelize[_0x3c16('0x2')](_0x3c16('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x3c16('0x4')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x3c16('0x5')]('in',_0x3c16('0x6')),'defaultValue':_0x3c16('0x6'),'allowNull':![]},'readAt':{'type':Sequelize[_0x3c16('0x7')]}};
\ No newline at end of file
+var _0xdee0=['TEXT','medium','BOOLEAN','ENUM','out','DATE','sequelize','exports'];(function(_0x4f9fa1,_0x67af7d){var _0x1e7f67=function(_0x3194b2){while(--_0x3194b2){_0x4f9fa1['push'](_0x4f9fa1['shift']());}};_0x1e7f67(++_0x67af7d);}(_0xdee0,0xb6));var _0x0dee=function(_0x68df1,_0x3e2a83){_0x68df1=_0x68df1-0x0;var _0x865ddc=_0xdee0[_0x68df1];return _0x865ddc;};'use strict';var Sequelize=require(_0x0dee('0x0'));module[_0x0dee('0x1')]={'body':{'type':Sequelize[_0x0dee('0x2')](_0x0dee('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x0dee('0x4')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x0dee('0x5')]('in','out'),'defaultValue':_0x0dee('0x6'),'allowNull':![]},'readAt':{'type':Sequelize[_0x0dee('0x7')]}};
\ No newline at end of file
diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js
index 87f1aa4..b75c077 100644
--- a/server/api/chatMessage/chatMessage.controller.js
+++ b/server/api/chatMessage/chatMessage.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x47cf=['fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','includeAll','include','findAll','rows','catch','show','length','options','create','body','find','params','describe','chat','readAt','UserId','user','CmContact','Contact','get','isNil','read1stAt','format','YYYY-MM-DD\x20HH:mm:ss','interaction','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','role','stringify','null','AcceptMessage','acceptMessage','SIP/%s','channel','event','accept','EventManager','acceptmessage','parse','formData','chat-interactions','agent','ChatInteraction','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','RejectMessage','rejectmessage','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','to-csv','crypto','jsforce','desk.js','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','redis','defaults','localhost','socket.io-emitter','./chatMessage.socket','register','jayson/promise','client','http','test','Sequelize','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~!@#$%^&-_=+[{]}.','request','then','info','ChatMessage,\x20%s,\x20%s','request\x20sent','debug','ChatMessage,\x20%s,\x20%s,\x20%s','error','message','result','sendStatus','status','end','count','offset','limit','set','Content-Range','json','apply','reject','save','update','destroy','name','send','index','map','ChatMessage','fieldName','type','key','model','query','keys','filters','intersection','attributes'];(function(_0x1fafa5,_0x1aa281){var _0xcf08c9=function(_0x3af1b4){while(--_0x3af1b4){_0x1fafa5['push'](_0x1fafa5['shift']());}};_0xcf08c9(++_0x1aa281);}(_0x47cf,0x136));var _0xf47c=function(_0x871287,_0x38aadb){_0x871287=_0x871287-0x0;var _0x3024e3=_0x47cf[_0x871287];return _0x3024e3;};'use strict';var pdf=require(_0xf47c('0x0'));var emlformat=require(_0xf47c('0x1'));var rimraf=require(_0xf47c('0x2'));var zipdir=require(_0xf47c('0x3'));var jsonpatch=require(_0xf47c('0x4'));var rp=require(_0xf47c('0x5'));var moment=require(_0xf47c('0x6'));var BPromise=require(_0xf47c('0x7'));var Mustache=require(_0xf47c('0x8'));var util=require('util');var path=require(_0xf47c('0x9'));var sox=require('sox');var csv=require(_0xf47c('0xa'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0xf47c('0xb'));var jsforce=require(_0xf47c('0xc'));var deskjs=require(_0xf47c('0xd'));var toCsv=require(_0xf47c('0xa'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0xf47c('0xe'));var authService=require('../../components/auth/service');var qs=require(_0xf47c('0xf'));var as=require(_0xf47c('0x10'));var hardwareService=require(_0xf47c('0x11'));var logger=require(_0xf47c('0x12'))(_0xf47c('0x13'));var utils=require(_0xf47c('0x14'));var config=require(_0xf47c('0x15'));var db=require(_0xf47c('0x16'))['db'];config[_0xf47c('0x17')]=_[_0xf47c('0x18')](config['redis'],{'host':_0xf47c('0x19'),'port':0x18eb});var socket=require(_0xf47c('0x1a'))(new Redis(config['redis']));require(_0xf47c('0x1b'))[_0xf47c('0x1c')](socket);var jayson=require(_0xf47c('0x1d'));var client=jayson[_0xf47c('0x1e')]['http']({'port':0x232c});var client9002=jayson['client'][_0xf47c('0x1f')]({'port':0x232a});function checkPasswordPattern(_0x3a668d,_0x53adc2,_0x42d3d2){if(_0x42d3d2){var _0x484303=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x484303[_0xf47c('0x20')](_0x53adc2)){return _0x3a668d;}else{throw new db[(_0xf47c('0x21'))][(_0xf47c('0x22'))](_0xf47c('0x23'));}}else{return _0x3a668d;}}function respondWithRpcPromise(_0x26d35e,_0x334831,_0x2f1b7f,_0x4998e6){return new BPromise(function(_0x1fdfc6,_0x4fcfd0){var _0x5ee527=_0x4998e6||client;return _0x5ee527[_0xf47c('0x24')](_0x26d35e,_0x2f1b7f)[_0xf47c('0x25')](function(_0x79a8ba){logger[_0xf47c('0x26')](_0xf47c('0x27'),_0x334831,_0xf47c('0x28'));logger[_0xf47c('0x29')](_0xf47c('0x2a'),_0x334831,_0xf47c('0x28'),JSON['stringify'](_0x79a8ba));if(_0x79a8ba['error']){if(_0x79a8ba['error']['code']===0x1f4){logger[_0xf47c('0x2b')]('ChatMessage,\x20%s,\x20%s',_0x334831,_0x79a8ba['error'][_0xf47c('0x2c')]);return _0x4fcfd0(_0x79a8ba[_0xf47c('0x2b')]['message']);}logger[_0xf47c('0x2b')]('ChatMessage,\x20%s,\x20%s',_0x334831,_0x79a8ba[_0xf47c('0x2b')]['message']);return _0x1fdfc6(_0x79a8ba[_0xf47c('0x2b')]['message']);}else{logger['info'](_0xf47c('0x27'),_0x334831,_0xf47c('0x28'));_0x1fdfc6(_0x79a8ba[_0xf47c('0x2d')][_0xf47c('0x2c')]);}})['catch'](function(_0x3f2bdb){logger['error'](_0xf47c('0x27'),_0x334831,_0x3f2bdb);_0x4fcfd0(_0x3f2bdb);});});}function respondWithStatusCode(_0x3b326e,_0x1d600e){_0x1d600e=_0x1d600e||0xcc;return function(_0x476d85){if(_0x476d85){return _0x3b326e[_0xf47c('0x2e')](_0x1d600e);}return _0x3b326e[_0xf47c('0x2f')](_0x1d600e)[_0xf47c('0x30')]();};}function respondWithResult(_0x322e31,_0x519439){_0x519439=_0x519439||0xc8;return function(_0x2ef2b7){if(_0x2ef2b7){return _0x322e31[_0xf47c('0x2f')](_0x519439)['json'](_0x2ef2b7);}};}function respondWithFilteredResult(_0x1fe4da,_0x5733e6){return function(_0x402475){if(_0x402475){var _0x19cd6a=_0x402475[_0xf47c('0x31')],_0x198056=_0x5733e6[_0xf47c('0x32')],_0x2922cc=_0x5733e6[_0xf47c('0x32')]+_0x5733e6[_0xf47c('0x33')],_0x55b011;if(_0x2922cc>=_0x19cd6a){_0x2922cc=_0x19cd6a;_0x55b011=0xc8;}else{_0x55b011=0xce;}_0x1fe4da[_0xf47c('0x2f')](_0x55b011);return _0x1fe4da[_0xf47c('0x34')](_0xf47c('0x35'),_0x198056+'-'+_0x2922cc+'/'+_0x19cd6a)[_0xf47c('0x36')](_0x402475);}return null;};}function patchUpdates(_0x5a1cc1){return function(_0x2099db){try{jsonpatch[_0xf47c('0x37')](_0x2099db,_0x5a1cc1,!![]);}catch(_0x1343c1){return BPromise[_0xf47c('0x38')](_0x1343c1);}return _0x2099db[_0xf47c('0x39')]();};}function saveUpdates(_0x1ee43b,_0x3fc2da){return function(_0x57aedb){if(_0x57aedb){return _0x57aedb[_0xf47c('0x3a')](_0x1ee43b)[_0xf47c('0x25')](function(_0x530446){return _0x530446;});}return null;};}function removeEntity(_0x157dbb,_0x48f037){return function(_0x48c32c){if(_0x48c32c){return _0x48c32c[_0xf47c('0x3b')]()[_0xf47c('0x25')](function(){_0x157dbb[_0xf47c('0x2f')](0xcc)[_0xf47c('0x30')]();});}};}function handleEntityNotFound(_0x22fff0,_0x359515){return function(_0x2f3cc5){if(!_0x2f3cc5){_0x22fff0[_0xf47c('0x2e')](0x194);}return _0x2f3cc5;};}function handleError(_0x5cba9e,_0x40bd7d){_0x40bd7d=_0x40bd7d||0x1f4;return function(_0x197bef){logger[_0xf47c('0x2b')](_0x197bef['stack']);if(_0x197bef['name']){delete _0x197bef[_0xf47c('0x3c')];}_0x5cba9e[_0xf47c('0x2f')](_0x40bd7d)[_0xf47c('0x3d')](_0x197bef);};}exports[_0xf47c('0x3e')]=function(_0x3760eb,_0x18a1b5){var _0x57d7e6={},_0x126c74={},_0x28c266={'count':0x0,'rows':[]};var _0x2e74a7=_[_0xf47c('0x3f')](db[_0xf47c('0x40')]['rawAttributes'],function(_0x50ccfd){return{'name':_0x50ccfd[_0xf47c('0x41')],'type':_0x50ccfd[_0xf47c('0x42')][_0xf47c('0x43')]};});_0x126c74[_0xf47c('0x44')]=_[_0xf47c('0x3f')](_0x2e74a7,'name');_0x126c74[_0xf47c('0x45')]=_[_0xf47c('0x46')](_0x3760eb[_0xf47c('0x45')]);_0x126c74[_0xf47c('0x47')]=_[_0xf47c('0x48')](_0x126c74[_0xf47c('0x44')],_0x126c74['query']);_0x57d7e6[_0xf47c('0x49')]=_['intersection'](_0x126c74[_0xf47c('0x44')],qs['fields'](_0x3760eb[_0xf47c('0x45')][_0xf47c('0x4a')]));_0x57d7e6[_0xf47c('0x49')]=_0x57d7e6['attributes']['length']?_0x57d7e6[_0xf47c('0x49')]:_0x126c74[_0xf47c('0x44')];if(!_0x3760eb[_0xf47c('0x45')][_0xf47c('0x4b')](_0xf47c('0x4c'))){_0x57d7e6[_0xf47c('0x33')]=qs[_0xf47c('0x33')](_0x3760eb[_0xf47c('0x45')][_0xf47c('0x33')]);_0x57d7e6[_0xf47c('0x32')]=qs[_0xf47c('0x32')](_0x3760eb[_0xf47c('0x45')][_0xf47c('0x32')]);}_0x57d7e6[_0xf47c('0x4d')]=qs[_0xf47c('0x4e')](_0x3760eb[_0xf47c('0x45')][_0xf47c('0x4e')]);_0x57d7e6[_0xf47c('0x4f')]=qs[_0xf47c('0x47')](_[_0xf47c('0x50')](_0x3760eb[_0xf47c('0x45')],_0x126c74['filters']));if(_0x3760eb[_0xf47c('0x45')][_0xf47c('0x51')]){_0x57d7e6['where']=_[_0xf47c('0x52')](_0x57d7e6[_0xf47c('0x4f')],{'$or':_[_0xf47c('0x3f')](_0x2e74a7,function(_0xbf630){if(_0xbf630[_0xf47c('0x42')]!=='VIRTUAL'){var _0x3dc96f={};_0x3dc96f[_0xbf630[_0xf47c('0x3c')]]={'$like':'%'+_0x3760eb[_0xf47c('0x45')]['filter']+'%'};return _0x3dc96f;}})});}_0x57d7e6=_[_0xf47c('0x52')]({},_0x57d7e6,_0x3760eb['options']);var _0x14d5bd={'where':_0x57d7e6[_0xf47c('0x4f')]};return db[_0xf47c('0x40')][_0xf47c('0x31')](_0x14d5bd)['then'](function(_0x5bbd77){_0x28c266['count']=_0x5bbd77;if(_0x3760eb[_0xf47c('0x45')][_0xf47c('0x53')]){_0x57d7e6[_0xf47c('0x54')]=[{'all':!![]}];}return db[_0xf47c('0x40')][_0xf47c('0x55')](_0x57d7e6);})[_0xf47c('0x25')](function(_0x32bed9){_0x28c266[_0xf47c('0x56')]=_0x32bed9;return _0x28c266;})['then'](respondWithFilteredResult(_0x18a1b5,_0x57d7e6))[_0xf47c('0x57')](handleError(_0x18a1b5,null));};exports[_0xf47c('0x58')]=function(_0x51927e,_0x3710be){var _0x1968ec={'raw':!![],'where':{'id':_0x51927e['params']['id']}},_0x3f63cd={};_0x3f63cd[_0xf47c('0x44')]=_['keys'](db[_0xf47c('0x40')]['rawAttributes']);_0x3f63cd['query']=_[_0xf47c('0x46')](_0x51927e['query']);_0x3f63cd['filters']=_[_0xf47c('0x48')](_0x3f63cd['model'],_0x3f63cd[_0xf47c('0x45')]);_0x1968ec['attributes']=_['intersection'](_0x3f63cd[_0xf47c('0x44')],qs[_0xf47c('0x4a')](_0x51927e[_0xf47c('0x45')][_0xf47c('0x4a')]));_0x1968ec[_0xf47c('0x49')]=_0x1968ec[_0xf47c('0x49')][_0xf47c('0x59')]?_0x1968ec[_0xf47c('0x49')]:_0x3f63cd['model'];if(_0x51927e[_0xf47c('0x45')][_0xf47c('0x53')]){_0x1968ec['include']=[{'all':!![]}];}_0x1968ec=_[_0xf47c('0x52')]({},_0x1968ec,_0x51927e[_0xf47c('0x5a')]);return db[_0xf47c('0x40')]['find'](_0x1968ec)[_0xf47c('0x25')](handleEntityNotFound(_0x3710be,null))[_0xf47c('0x25')](respondWithResult(_0x3710be,null))[_0xf47c('0x57')](handleError(_0x3710be,null));};exports[_0xf47c('0x5b')]=function(_0x9975a8,_0x4051f2){return db[_0xf47c('0x40')][_0xf47c('0x5b')](_0x9975a8['body'],{})['then'](respondWithResult(_0x4051f2,0xc9))[_0xf47c('0x57')](handleError(_0x4051f2,null));};exports['update']=function(_0x353b95,_0x37df67){if(_0x353b95['body']['id']){delete _0x353b95[_0xf47c('0x5c')]['id'];}return db[_0xf47c('0x40')][_0xf47c('0x5d')]({'where':{'id':_0x353b95[_0xf47c('0x5e')]['id']}})[_0xf47c('0x25')](handleEntityNotFound(_0x37df67,null))[_0xf47c('0x25')](saveUpdates(_0x353b95[_0xf47c('0x5c')],null))[_0xf47c('0x25')](respondWithResult(_0x37df67,null))[_0xf47c('0x57')](handleError(_0x37df67,null));};exports[_0xf47c('0x3b')]=function(_0x5a4891,_0x44fbe2){return db[_0xf47c('0x40')][_0xf47c('0x5d')]({'where':{'id':_0x5a4891[_0xf47c('0x5e')]['id']}})[_0xf47c('0x25')](handleEntityNotFound(_0x44fbe2,null))[_0xf47c('0x25')](removeEntity(_0x44fbe2,null))[_0xf47c('0x57')](handleError(_0x44fbe2,null));};exports['describe']=function(_0x5ecb59,_0x54c062){return db[_0xf47c('0x40')][_0xf47c('0x5f')]()[_0xf47c('0x25')](respondWithResult(_0x54c062,null))[_0xf47c('0x57')](handleError(_0x54c062,null));};var interaction_log=require('../../config/logger')('chat-interactions');exports['accept']=function(_0x492a2b,_0x2cb1e8,_0xbf45a0){var _0x2c3c3c={'channel':_0xf47c('0x60')};if(_0x492a2b[_0xf47c('0x5c')]['id']){delete _0x492a2b[_0xf47c('0x5c')]['id'];}_0x492a2b[_0xf47c('0x5c')]['read']=!![];_0x492a2b[_0xf47c('0x5c')][_0xf47c('0x61')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');_0x492a2b[_0xf47c('0x5c')][_0xf47c('0x62')]=_0x492a2b[_0xf47c('0x5c')][_0xf47c('0x62')]||_0x492a2b[_0xf47c('0x63')]['id'];return db['ChatMessage']['find']({'where':{'id':_0x492a2b[_0xf47c('0x5e')]['id'],'UserId':null},'include':[{'model':db[_0xf47c('0x64')],'as':_0xf47c('0x65')}]})['then'](handleEntityNotFound(_0x2cb1e8,null))[_0xf47c('0x25')](saveUpdates(_0x492a2b[_0xf47c('0x5c')],null))[_0xf47c('0x25')](function(_0xd7bc9a){if(_0xd7bc9a){_0x2c3c3c[_0xf47c('0x2c')]=_0xd7bc9a[_0xf47c('0x66')]({'plain':!![]});return db['ChatInteraction'][_0xf47c('0x5d')]({'where':{'id':_0xd7bc9a['ChatInteractionId']}});}return null;})[_0xf47c('0x25')](handleEntityNotFound(_0x2cb1e8,null))['then'](function(_0x5b827a){if(_0x5b827a){return _0x5b827a[_0xf47c('0x3a')]({'UserId':_0x492a2b['body'][_0xf47c('0x62')],'read1stAt':_[_0xf47c('0x67')](_0x5b827a[_0xf47c('0x68')])?moment()[_0xf47c('0x69')](_0xf47c('0x6a')):undefined});}return null;})['then'](function(_0x35f64d){if(_0x35f64d){_0x2c3c3c[_0xf47c('0x6b')]=_0x35f64d[_0xf47c('0x66')]({'plain':!![]});interaction_log[_0xf47c('0x26')](_0xf47c('0x6c'),_0x492a2b['user']['id'],_0x492a2b[_0xf47c('0x63')][_0xf47c('0x3c')],_0x492a2b[_0xf47c('0x63')][_0xf47c('0x6d')],_0x2c3c3c[_0xf47c('0x6b')]['id'],_0x492a2b['body']?JSON[_0xf47c('0x6e')](_0x492a2b[_0xf47c('0x5c')]):_0xf47c('0x6f'));return respondWithRpcPromise(_0xf47c('0x70'),_0xf47c('0x71'),_0x2c3c3c);}return null;})[_0xf47c('0x25')](function(_0x5d5d45){if(_0x5d5d45){if(_0x492a2b['body']['manual']){_0x2c3c3c['message']['interface']=util['format'](_0xf47c('0x72'),_0x492a2b[_0xf47c('0x63')][_0xf47c('0x3c')]);_0x2c3c3c[_0xf47c('0x2c')][_0xf47c('0x73')]=_0x2c3c3c[_0xf47c('0x73')];_0x2c3c3c[_0xf47c('0x2c')][_0xf47c('0x74')]=_0xf47c('0x75');return respondWithRpcPromise(_0xf47c('0x76'),_0xf47c('0x76'),{'event':_0xf47c('0x77'),'message':_[_0xf47c('0x52')](_0x2c3c3c[_0xf47c('0x2c')],JSON[_0xf47c('0x78')](_0x2c3c3c['interaction'][_0xf47c('0x79')]))},client9002)[_0xf47c('0x25')](function(){return _0x2c3c3c;});}return _0x2c3c3c;}return null;})[_0xf47c('0x25')](respondWithResult(_0x2cb1e8,null))[_0xf47c('0x57')](handleError(_0x2cb1e8,null));};var interaction_log=require('../../config/logger')(_0xf47c('0x7a'));exports[_0xf47c('0x38')]=function(_0x36317d,_0x3931b3,_0x1a5e51){var _0x3c2c34={'agent':{},'channel':'chat'};if(_0x36317d[_0xf47c('0x5c')]['id']){delete _0x36317d['body']['id'];}_0x36317d[_0xf47c('0x5c')][_0xf47c('0x62')]=_0x36317d[_0xf47c('0x5c')][_0xf47c('0x62')]||_0x36317d['user']['id'];_0x3c2c34[_0xf47c('0x7b')]['id']=_0x36317d[_0xf47c('0x5c')][_0xf47c('0x62')];return db['ChatMessage'][_0xf47c('0x5d')]({'where':{'id':_0x36317d[_0xf47c('0x5e')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x3931b3,null))[_0xf47c('0x25')](function(_0x29cef2){if(_0x29cef2){_0x3c2c34['message']=_0x29cef2[_0xf47c('0x66')]({'plain':!![]});return db[_0xf47c('0x7c')][_0xf47c('0x5d')]({'where':{'id':_0x29cef2['ChatInteractionId']}});}return null;})[_0xf47c('0x25')](handleEntityNotFound(_0x3931b3,null))[_0xf47c('0x25')](function(_0x5d7979){if(_0x5d7979){_0x3c2c34['interaction']=_0x5d7979[_0xf47c('0x66')]({'plain':!![]});interaction_log[_0xf47c('0x26')](_0xf47c('0x7d'),_0x36317d[_0xf47c('0x63')]['id'],_0x36317d[_0xf47c('0x63')][_0xf47c('0x3c')],_0x36317d[_0xf47c('0x63')][_0xf47c('0x6d')],_0x3c2c34['interaction']['id'],_0x36317d[_0xf47c('0x5c')]?JSON['stringify'](_0x36317d[_0xf47c('0x5c')]):_0xf47c('0x6f'));return respondWithRpcPromise(_0xf47c('0x7e'),'rejectMessage',_0x3c2c34);}return null;})[_0xf47c('0x25')](function(_0x2df463){if(_0x2df463){_0x2df463['message']['interface']=util['format'](_0xf47c('0x72'),_0x36317d[_0xf47c('0x63')][_0xf47c('0x3c')]);_0x2df463[_0xf47c('0x2c')][_0xf47c('0x73')]=_0x3c2c34[_0xf47c('0x73')];_0x2df463[_0xf47c('0x2c')][_0xf47c('0x74')]='reject';respondWithRpcPromise(_0xf47c('0x76'),_0xf47c('0x76'),{'event':_0xf47c('0x7f'),'message':_0x2df463['message']},client9002);return _0x3c2c34;}return null;})[_0xf47c('0x25')](respondWithResult(_0x3931b3,null))[_0xf47c('0x57')](handleError(_0x3931b3,null));};
\ No newline at end of file
+var _0x0517=['[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','user','role','AcceptMessage','acceptMessage','manual','interface','SIP/%s','channel','event','EventManager','acceptmessage','parse','agent','ChatInteractionId','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','stringify','null','rejectMessage','rejectmessage','html-pdf','rimraf','zip-dir','fast-json-patch','bluebird','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','defaults','redis','localhost','socket.io-emitter','./chatMessage.socket','register','client','http','Sequelize','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~!@#$%^&-_=+[{]}.','request','ChatMessage,\x20%s,\x20%s','request\x20sent','debug','error','message','info','result','catch','sendStatus','status','offset','set','Content-Range','apply','reject','update','then','end','stack','name','send','index','ChatMessage','fieldName','type','key','model','map','keys','query','filters','attributes','intersection','fields','length','limit','order','pick','where','VIRTUAL','filter','options','count','includeAll','findAll','rows','params','rawAttributes','merge','find','create','body','destroy','describe','chat-interactions','accept','chat','read','readAt','format','UserId','CmContact','Contact','get','ChatInteraction','isNil','read1stAt','YYYY-MM-DD\x20HH:mm:ss','interaction'];(function(_0x304686,_0x3baf7c){var _0x384647=function(_0x4771b2){while(--_0x4771b2){_0x304686['push'](_0x304686['shift']());}};_0x384647(++_0x3baf7c);}(_0x0517,0x18e));var _0x7051=function(_0x3a5372,_0x4264d9){_0x3a5372=_0x3a5372-0x0;var _0x4910a5=_0x0517[_0x3a5372];return _0x4910a5;};'use strict';var pdf=require(_0x7051('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x7051('0x1'));var zipdir=require(_0x7051('0x2'));var jsonpatch=require(_0x7051('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x7051('0x4'));var Mustache=require('mustache');var util=require(_0x7051('0x5'));var path=require(_0x7051('0x6'));var sox=require(_0x7051('0x7'));var csv=require(_0x7051('0x8'));var ejs=require(_0x7051('0x9'));var fs=require('fs');var _=require(_0x7051('0xa'));var squel=require(_0x7051('0xb'));var crypto=require(_0x7051('0xc'));var jsforce=require(_0x7051('0xd'));var deskjs=require(_0x7051('0xe'));var toCsv=require(_0x7051('0x8'));var querystring=require(_0x7051('0xf'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x7051('0x10'));var qs=require(_0x7051('0x11'));var as=require(_0x7051('0x12'));var hardwareService=require(_0x7051('0x13'));var logger=require(_0x7051('0x14'))(_0x7051('0x15'));var utils=require(_0x7051('0x16'));var config=require(_0x7051('0x17'));var db=require(_0x7051('0x18'))['db'];config['redis']=_[_0x7051('0x19')](config[_0x7051('0x1a')],{'host':_0x7051('0x1b'),'port':0x18eb});var socket=require(_0x7051('0x1c'))(new Redis(config[_0x7051('0x1a')]));require(_0x7051('0x1d'))[_0x7051('0x1e')](socket);var jayson=require('jayson/promise');var client=jayson[_0x7051('0x1f')][_0x7051('0x20')]({'port':0x232c});var client9002=jayson[_0x7051('0x1f')]['http']({'port':0x232a});function checkPasswordPattern(_0x2522e1,_0x6580e0,_0x57851d){if(_0x57851d){var _0x29793d=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x29793d['test'](_0x6580e0)){return _0x2522e1;}else{throw new db[(_0x7051('0x21'))][(_0x7051('0x22'))](_0x7051('0x23'));}}else{return _0x2522e1;}}function respondWithRpcPromise(_0x33e6d6,_0x330951,_0xfb1ced,_0x6302fe){return new BPromise(function(_0x5558e3,_0x2dd932){var _0x361549=_0x6302fe||client;return _0x361549[_0x7051('0x24')](_0x33e6d6,_0xfb1ced)['then'](function(_0x2988f5){logger['info'](_0x7051('0x25'),_0x330951,_0x7051('0x26'));logger[_0x7051('0x27')]('ChatMessage,\x20%s,\x20%s,\x20%s',_0x330951,'request\x20sent',JSON['stringify'](_0x2988f5));if(_0x2988f5['error']){if(_0x2988f5[_0x7051('0x28')]['code']===0x1f4){logger[_0x7051('0x28')](_0x7051('0x25'),_0x330951,_0x2988f5[_0x7051('0x28')][_0x7051('0x29')]);return _0x2dd932(_0x2988f5[_0x7051('0x28')][_0x7051('0x29')]);}logger[_0x7051('0x28')]('ChatMessage,\x20%s,\x20%s',_0x330951,_0x2988f5[_0x7051('0x28')][_0x7051('0x29')]);return _0x5558e3(_0x2988f5[_0x7051('0x28')][_0x7051('0x29')]);}else{logger[_0x7051('0x2a')](_0x7051('0x25'),_0x330951,_0x7051('0x26'));_0x5558e3(_0x2988f5[_0x7051('0x2b')][_0x7051('0x29')]);}})[_0x7051('0x2c')](function(_0xaeb78a){logger['error'](_0x7051('0x25'),_0x330951,_0xaeb78a);_0x2dd932(_0xaeb78a);});});}function respondWithStatusCode(_0x2b8468,_0x12ad25){_0x12ad25=_0x12ad25||0xcc;return function(_0x14b1db){if(_0x14b1db){return _0x2b8468[_0x7051('0x2d')](_0x12ad25);}return _0x2b8468[_0x7051('0x2e')](_0x12ad25)['end']();};}function respondWithResult(_0x543d84,_0x3dc1c1){_0x3dc1c1=_0x3dc1c1||0xc8;return function(_0x2ff0aa){if(_0x2ff0aa){return _0x543d84[_0x7051('0x2e')](_0x3dc1c1)['json'](_0x2ff0aa);}};}function respondWithFilteredResult(_0x394f3c,_0x527432){return function(_0xee8068){if(_0xee8068){var _0x1db08f=_0xee8068['count'],_0x5ad581=_0x527432[_0x7051('0x2f')],_0x5396a6=_0x527432[_0x7051('0x2f')]+_0x527432['limit'],_0x1e52bc;if(_0x5396a6>=_0x1db08f){_0x5396a6=_0x1db08f;_0x1e52bc=0xc8;}else{_0x1e52bc=0xce;}_0x394f3c[_0x7051('0x2e')](_0x1e52bc);return _0x394f3c[_0x7051('0x30')](_0x7051('0x31'),_0x5ad581+'-'+_0x5396a6+'/'+_0x1db08f)['json'](_0xee8068);}return null;};}function patchUpdates(_0x3c90d8){return function(_0x43db68){try{jsonpatch[_0x7051('0x32')](_0x43db68,_0x3c90d8,!![]);}catch(_0x3d0050){return BPromise[_0x7051('0x33')](_0x3d0050);}return _0x43db68['save']();};}function saveUpdates(_0x420b45,_0x30ee18){return function(_0x5711ad){if(_0x5711ad){return _0x5711ad[_0x7051('0x34')](_0x420b45)[_0x7051('0x35')](function(_0x117538){return _0x117538;});}return null;};}function removeEntity(_0xa5704d,_0x32ba20){return function(_0x3df15e){if(_0x3df15e){return _0x3df15e['destroy']()[_0x7051('0x35')](function(){_0xa5704d[_0x7051('0x2e')](0xcc)[_0x7051('0x36')]();});}};}function handleEntityNotFound(_0x7c05aa,_0x216f6d){return function(_0x45a125){if(!_0x45a125){_0x7c05aa[_0x7051('0x2d')](0x194);}return _0x45a125;};}function handleError(_0x3b681a,_0x190f4c){_0x190f4c=_0x190f4c||0x1f4;return function(_0x5a4e93){logger['error'](_0x5a4e93[_0x7051('0x37')]);if(_0x5a4e93['name']){delete _0x5a4e93[_0x7051('0x38')];}_0x3b681a[_0x7051('0x2e')](_0x190f4c)[_0x7051('0x39')](_0x5a4e93);};}exports[_0x7051('0x3a')]=function(_0x473b79,_0xd93eb6){var _0x56eacc={},_0x185df1={},_0x28b92b={'count':0x0,'rows':[]};var _0x49296e=_['map'](db[_0x7051('0x3b')]['rawAttributes'],function(_0x30f5e9){return{'name':_0x30f5e9[_0x7051('0x3c')],'type':_0x30f5e9[_0x7051('0x3d')][_0x7051('0x3e')]};});_0x185df1[_0x7051('0x3f')]=_[_0x7051('0x40')](_0x49296e,_0x7051('0x38'));_0x185df1['query']=_[_0x7051('0x41')](_0x473b79[_0x7051('0x42')]);_0x185df1[_0x7051('0x43')]=_['intersection'](_0x185df1['model'],_0x185df1[_0x7051('0x42')]);_0x56eacc[_0x7051('0x44')]=_[_0x7051('0x45')](_0x185df1[_0x7051('0x3f')],qs['fields'](_0x473b79[_0x7051('0x42')][_0x7051('0x46')]));_0x56eacc[_0x7051('0x44')]=_0x56eacc[_0x7051('0x44')][_0x7051('0x47')]?_0x56eacc[_0x7051('0x44')]:_0x185df1[_0x7051('0x3f')];if(!_0x473b79['query']['hasOwnProperty']('nolimit')){_0x56eacc[_0x7051('0x48')]=qs[_0x7051('0x48')](_0x473b79[_0x7051('0x42')][_0x7051('0x48')]);_0x56eacc['offset']=qs[_0x7051('0x2f')](_0x473b79[_0x7051('0x42')][_0x7051('0x2f')]);}_0x56eacc[_0x7051('0x49')]=qs['sort'](_0x473b79[_0x7051('0x42')]['sort']);_0x56eacc['where']=qs['filters'](_[_0x7051('0x4a')](_0x473b79[_0x7051('0x42')],_0x185df1['filters']));if(_0x473b79[_0x7051('0x42')]['filter']){_0x56eacc['where']=_['merge'](_0x56eacc[_0x7051('0x4b')],{'$or':_[_0x7051('0x40')](_0x49296e,function(_0x1341e3){if(_0x1341e3[_0x7051('0x3d')]!==_0x7051('0x4c')){var _0x3a8b85={};_0x3a8b85[_0x1341e3[_0x7051('0x38')]]={'$like':'%'+_0x473b79[_0x7051('0x42')][_0x7051('0x4d')]+'%'};return _0x3a8b85;}})});}_0x56eacc=_['merge']({},_0x56eacc,_0x473b79[_0x7051('0x4e')]);var _0x57043e={'where':_0x56eacc[_0x7051('0x4b')]};return db[_0x7051('0x3b')][_0x7051('0x4f')](_0x57043e)[_0x7051('0x35')](function(_0x309d18){_0x28b92b[_0x7051('0x4f')]=_0x309d18;if(_0x473b79[_0x7051('0x42')][_0x7051('0x50')]){_0x56eacc['include']=[{'all':!![]}];}return db['ChatMessage'][_0x7051('0x51')](_0x56eacc);})[_0x7051('0x35')](function(_0x8401c2){_0x28b92b[_0x7051('0x52')]=_0x8401c2;return _0x28b92b;})['then'](respondWithFilteredResult(_0xd93eb6,_0x56eacc))[_0x7051('0x2c')](handleError(_0xd93eb6,null));};exports['show']=function(_0x308f43,_0x5d74ad){var _0x142e73={'raw':!![],'where':{'id':_0x308f43[_0x7051('0x53')]['id']}},_0x3c508a={};_0x3c508a[_0x7051('0x3f')]=_[_0x7051('0x41')](db[_0x7051('0x3b')][_0x7051('0x54')]);_0x3c508a[_0x7051('0x42')]=_[_0x7051('0x41')](_0x308f43[_0x7051('0x42')]);_0x3c508a[_0x7051('0x43')]=_['intersection'](_0x3c508a[_0x7051('0x3f')],_0x3c508a[_0x7051('0x42')]);_0x142e73[_0x7051('0x44')]=_[_0x7051('0x45')](_0x3c508a[_0x7051('0x3f')],qs['fields'](_0x308f43['query']['fields']));_0x142e73[_0x7051('0x44')]=_0x142e73[_0x7051('0x44')][_0x7051('0x47')]?_0x142e73[_0x7051('0x44')]:_0x3c508a[_0x7051('0x3f')];if(_0x308f43[_0x7051('0x42')][_0x7051('0x50')]){_0x142e73['include']=[{'all':!![]}];}_0x142e73=_[_0x7051('0x55')]({},_0x142e73,_0x308f43[_0x7051('0x4e')]);return db['ChatMessage'][_0x7051('0x56')](_0x142e73)['then'](handleEntityNotFound(_0x5d74ad,null))[_0x7051('0x35')](respondWithResult(_0x5d74ad,null))['catch'](handleError(_0x5d74ad,null));};exports[_0x7051('0x57')]=function(_0x20c826,_0x1fea37){return db[_0x7051('0x3b')][_0x7051('0x57')](_0x20c826[_0x7051('0x58')],{})['then'](respondWithResult(_0x1fea37,0xc9))[_0x7051('0x2c')](handleError(_0x1fea37,null));};exports[_0x7051('0x34')]=function(_0x2c4682,_0x323af3){if(_0x2c4682[_0x7051('0x58')]['id']){delete _0x2c4682[_0x7051('0x58')]['id'];}return db[_0x7051('0x3b')]['find']({'where':{'id':_0x2c4682[_0x7051('0x53')]['id']}})[_0x7051('0x35')](handleEntityNotFound(_0x323af3,null))[_0x7051('0x35')](saveUpdates(_0x2c4682['body'],null))['then'](respondWithResult(_0x323af3,null))[_0x7051('0x2c')](handleError(_0x323af3,null));};exports[_0x7051('0x59')]=function(_0x1ec1f7,_0xa19f7){return db[_0x7051('0x3b')][_0x7051('0x56')]({'where':{'id':_0x1ec1f7['params']['id']}})[_0x7051('0x35')](handleEntityNotFound(_0xa19f7,null))['then'](removeEntity(_0xa19f7,null))['catch'](handleError(_0xa19f7,null));};exports[_0x7051('0x5a')]=function(_0x493802,_0x36370a){return db['ChatMessage'][_0x7051('0x5a')]()[_0x7051('0x35')](respondWithResult(_0x36370a,null))[_0x7051('0x2c')](handleError(_0x36370a,null));};var interaction_log=require('../../config/logger')(_0x7051('0x5b'));exports[_0x7051('0x5c')]=function(_0x1cda36,_0x3b2831,_0x486ff3){var _0x36b75d={'channel':_0x7051('0x5d')};if(_0x1cda36[_0x7051('0x58')]['id']){delete _0x1cda36[_0x7051('0x58')]['id'];}_0x1cda36[_0x7051('0x58')][_0x7051('0x5e')]=!![];_0x1cda36[_0x7051('0x58')][_0x7051('0x5f')]=moment()[_0x7051('0x60')]('YYYY-MM-DD\x20HH:mm:ss');_0x1cda36['body'][_0x7051('0x61')]=_0x1cda36[_0x7051('0x58')][_0x7051('0x61')]||_0x1cda36['user']['id'];return db[_0x7051('0x3b')][_0x7051('0x56')]({'where':{'id':_0x1cda36[_0x7051('0x53')]['id'],'UserId':null},'include':[{'model':db[_0x7051('0x62')],'as':_0x7051('0x63')}]})[_0x7051('0x35')](handleEntityNotFound(_0x3b2831,null))[_0x7051('0x35')](saveUpdates(_0x1cda36[_0x7051('0x58')],null))[_0x7051('0x35')](function(_0x3b9506){if(_0x3b9506){_0x36b75d['message']=_0x3b9506[_0x7051('0x64')]({'plain':!![]});return db[_0x7051('0x65')]['find']({'where':{'id':_0x3b9506['ChatInteractionId']}});}return null;})['then'](handleEntityNotFound(_0x3b2831,null))[_0x7051('0x35')](function(_0x3d1ebc){if(_0x3d1ebc){return _0x3d1ebc[_0x7051('0x34')]({'UserId':_0x1cda36[_0x7051('0x58')][_0x7051('0x61')],'read1stAt':_[_0x7051('0x66')](_0x3d1ebc[_0x7051('0x67')])?moment()['format'](_0x7051('0x68')):undefined});}return null;})[_0x7051('0x35')](function(_0x4fd4c2){if(_0x4fd4c2){_0x36b75d[_0x7051('0x69')]=_0x4fd4c2[_0x7051('0x64')]({'plain':!![]});interaction_log[_0x7051('0x2a')](_0x7051('0x6a'),_0x1cda36[_0x7051('0x6b')]['id'],_0x1cda36[_0x7051('0x6b')][_0x7051('0x38')],_0x1cda36['user'][_0x7051('0x6c')],_0x36b75d[_0x7051('0x69')]['id'],_0x1cda36[_0x7051('0x58')]?JSON['stringify'](_0x1cda36[_0x7051('0x58')]):'null');return respondWithRpcPromise(_0x7051('0x6d'),_0x7051('0x6e'),_0x36b75d);}return null;})[_0x7051('0x35')](function(_0x3180ca){if(_0x3180ca){if(_0x1cda36[_0x7051('0x58')][_0x7051('0x6f')]){_0x36b75d[_0x7051('0x29')][_0x7051('0x70')]=util[_0x7051('0x60')](_0x7051('0x71'),_0x1cda36[_0x7051('0x6b')][_0x7051('0x38')]);_0x36b75d[_0x7051('0x29')][_0x7051('0x72')]=_0x36b75d[_0x7051('0x72')];_0x36b75d['message'][_0x7051('0x73')]=_0x7051('0x5c');return respondWithRpcPromise(_0x7051('0x74'),'EventManager',{'event':_0x7051('0x75'),'message':_[_0x7051('0x55')](_0x36b75d[_0x7051('0x29')],JSON[_0x7051('0x76')](_0x36b75d[_0x7051('0x69')]['formData']))},client9002)['then'](function(){return _0x36b75d;});}return _0x36b75d;}return null;})[_0x7051('0x35')](respondWithResult(_0x3b2831,null))[_0x7051('0x2c')](handleError(_0x3b2831,null));};var interaction_log=require(_0x7051('0x14'))(_0x7051('0x5b'));exports[_0x7051('0x33')]=function(_0x6fd2c8,_0x97becc,_0x39d089){var _0x340d01={'agent':{},'channel':_0x7051('0x5d')};if(_0x6fd2c8['body']['id']){delete _0x6fd2c8[_0x7051('0x58')]['id'];}_0x6fd2c8[_0x7051('0x58')][_0x7051('0x61')]=_0x6fd2c8[_0x7051('0x58')][_0x7051('0x61')]||_0x6fd2c8[_0x7051('0x6b')]['id'];_0x340d01[_0x7051('0x77')]['id']=_0x6fd2c8[_0x7051('0x58')]['UserId'];return db[_0x7051('0x3b')][_0x7051('0x56')]({'where':{'id':_0x6fd2c8[_0x7051('0x53')]['id'],'UserId':null}})[_0x7051('0x35')](handleEntityNotFound(_0x97becc,null))[_0x7051('0x35')](function(_0x21e680){if(_0x21e680){_0x340d01[_0x7051('0x29')]=_0x21e680[_0x7051('0x64')]({'plain':!![]});return db[_0x7051('0x65')][_0x7051('0x56')]({'where':{'id':_0x21e680[_0x7051('0x78')]}});}return null;})['then'](handleEntityNotFound(_0x97becc,null))[_0x7051('0x35')](function(_0x53f852){if(_0x53f852){_0x340d01[_0x7051('0x69')]=_0x53f852['get']({'plain':!![]});interaction_log['info'](_0x7051('0x79'),_0x6fd2c8[_0x7051('0x6b')]['id'],_0x6fd2c8[_0x7051('0x6b')][_0x7051('0x38')],_0x6fd2c8[_0x7051('0x6b')][_0x7051('0x6c')],_0x340d01[_0x7051('0x69')]['id'],_0x6fd2c8[_0x7051('0x58')]?JSON[_0x7051('0x7a')](_0x6fd2c8[_0x7051('0x58')]):_0x7051('0x7b'));return respondWithRpcPromise('RejectMessage',_0x7051('0x7c'),_0x340d01);}return null;})[_0x7051('0x35')](function(_0x449973){if(_0x449973){_0x449973[_0x7051('0x29')][_0x7051('0x70')]=util[_0x7051('0x60')](_0x7051('0x71'),_0x6fd2c8[_0x7051('0x6b')][_0x7051('0x38')]);_0x449973['message'][_0x7051('0x72')]=_0x340d01[_0x7051('0x72')];_0x449973[_0x7051('0x29')][_0x7051('0x73')]=_0x7051('0x33');respondWithRpcPromise(_0x7051('0x74'),_0x7051('0x74'),{'event':_0x7051('0x7d'),'message':_0x449973[_0x7051('0x29')]},client9002);return _0x340d01;}return null;})[_0x7051('0x35')](respondWithResult(_0x97becc,null))[_0x7051('0x2c')](handleError(_0x97becc,null));};
\ No newline at end of file
diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js
index 8d3d78a..509ce89 100644
--- a/server/api/chatMessage/chatMessage.events.js
+++ b/server/api/chatMessage/chatMessage.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4d36=['../../mysqldb','ChatMessage','setMaxListeners','save','remove','emit','hasOwnProperty','exports','events'];(function(_0x24061a,_0x1c9f4d){var _0x82054e=function(_0x2ec346){while(--_0x2ec346){_0x24061a['push'](_0x24061a['shift']());}};_0x82054e(++_0x1c9f4d);}(_0x4d36,0xd7));var _0x64d3=function(_0x3048ea,_0x3838c2){_0x3048ea=_0x3048ea-0x0;var _0x1a13c4=_0x4d36[_0x3048ea];return _0x1a13c4;};'use strict';var EventEmitter=require(_0x64d3('0x0'));var ChatMessage=require(_0x64d3('0x1'))['db'][_0x64d3('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x64d3('0x3')](0x0);var events={'afterCreate':_0x64d3('0x4'),'afterUpdate':'update','afterDestroy':_0x64d3('0x5')};function emitEvent(_0x13eeec){return function(_0xfcb50,_0x1d9267,_0x5d16f8){ChatMessageEvents['emit'](_0x13eeec+':'+_0xfcb50['id'],_0xfcb50);ChatMessageEvents[_0x64d3('0x6')](_0x13eeec,_0xfcb50);_0x5d16f8(null);};}for(var e in events){if(events[_0x64d3('0x7')](e)){var event=events[e];ChatMessage['hook'](e,emitEvent(event));}}module[_0x64d3('0x8')]=ChatMessageEvents;
\ No newline at end of file
+var _0xd62d=['ChatMessage','setMaxListeners','save','update','remove','emit','hasOwnProperty','events','../../mysqldb'];(function(_0x5bd426,_0x4878e5){var _0x23a7eb=function(_0x594b42){while(--_0x594b42){_0x5bd426['push'](_0x5bd426['shift']());}};_0x23a7eb(++_0x4878e5);}(_0xd62d,0x6a));var _0xdd62=function(_0x5397f4,_0x181608){_0x5397f4=_0x5397f4-0x0;var _0x2e7e8b=_0xd62d[_0x5397f4];return _0x2e7e8b;};'use strict';var EventEmitter=require(_0xdd62('0x0'));var ChatMessage=require(_0xdd62('0x1'))['db'][_0xdd62('0x2')];var ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0xdd62('0x3')](0x0);var events={'afterCreate':_0xdd62('0x4'),'afterUpdate':_0xdd62('0x5'),'afterDestroy':_0xdd62('0x6')};function emitEvent(_0xb7874b){return function(_0x4a5638,_0x2352f3,_0x19a9ac){ChatMessageEvents['emit'](_0xb7874b+':'+_0x4a5638['id'],_0x4a5638);ChatMessageEvents[_0xdd62('0x7')](_0xb7874b,_0x4a5638);_0x19a9ac(null);};}for(var e in events){if(events[_0xdd62('0x8')](e)){var event=events[e];ChatMessage['hook'](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 5b7b0fc..edcfd3d 100644
--- a/server/api/chatMessage/chatMessage.model.js
+++ b/server/api/chatMessage/chatMessage.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3c07=['FULLTEXT','get','direction','toLowerCase','secret','isNil','UserId','ChatInteraction','findOne','ChatInteractionId','then','createdAt','catch','error','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./chatMessage.attributes','exports','ChatMessage','chat_messages','fti_chat_messages'];(function(_0x2f32c4,_0x531dc6){var _0x3f3018=function(_0x406998){while(--_0x406998){_0x2f32c4['push'](_0x2f32c4['shift']());}};_0x3f3018(++_0x531dc6);}(_0x3c07,0xa1));var _0x73c0=function(_0x251597,_0x3ffa57){_0x251597=_0x251597-0x0;var _0x4c8d25=_0x3c07[_0x251597];return _0x4c8d25;};'use strict';var _=require(_0x73c0('0x0'));var util=require(_0x73c0('0x1'));var logger=require(_0x73c0('0x2'))(_0x73c0('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x73c0('0x4'));var fs=require('fs');var path=require(_0x73c0('0x5'));var rimraf=require(_0x73c0('0x6'));var config=require(_0x73c0('0x7'));var attributes=require(_0x73c0('0x8'));module[_0x73c0('0x9')]=function(_0x49f6f4,_0xa0073){return _0x49f6f4['define'](_0x73c0('0xa'),attributes,{'tableName':_0x73c0('0xb'),'paranoid':![],'indexes':[{'name':_0x73c0('0xc'),'fields':['body'],'type':_0x73c0('0xd')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5581a9,_0x3c5376,_0x92e2aa){var _0x142be2=_0x49f6f4['models'];var _0x56ff95=_0x5581a9[_0x73c0('0xe')]({'plain':!![]});if(_0x56ff95[_0x73c0('0xf')][_0x73c0('0x10')]()==='in'||_0x56ff95[_0x73c0('0xf')]['toLowerCase']()==='out'&&!_0x56ff95[_0x73c0('0x11')]&&!_[_0x73c0('0x12')](_0x56ff95[_0x73c0('0x13')])){_0x142be2[_0x73c0('0x14')][_0x73c0('0x15')]({'where':{'id':_0x56ff95[_0x73c0('0x16')]}})[_0x73c0('0x17')](function(_0x83d8ec){if(_0x83d8ec){_0x83d8ec['update']({'lastMsgAt':_0x56ff95[_0x73c0('0x18')],'lastMsgDirection':_0x56ff95[_0x73c0('0xf')]['toLowerCase']()});}})[_0x73c0('0x19')](function(_0x29172e){console[_0x73c0('0x1a')](_0x29172e);});}_0x92e2aa();}},'charset':_0x73c0('0x1b'),'collate':_0x73c0('0x1c')});};
\ No newline at end of file
+var _0xd0a9=['UserId','ChatInteractionId','update','createdAt','catch','error','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./chatMessage.attributes','exports','chat_messages','body','models','toLowerCase','direction','secret'];(function(_0x429d9f,_0x259577){var _0x4b542a=function(_0x3fbc2a){while(--_0x3fbc2a){_0x429d9f['push'](_0x429d9f['shift']());}};_0x4b542a(++_0x259577);}(_0xd0a9,0x18d));var _0x9d0a=function(_0x20589d,_0x55d5bf){_0x20589d=_0x20589d-0x0;var _0x422de9=_0xd0a9[_0x20589d];return _0x422de9;};'use strict';var _=require(_0x9d0a('0x0'));var util=require(_0x9d0a('0x1'));var logger=require(_0x9d0a('0x2'))(_0x9d0a('0x3'));var moment=require('moment');var BPromise=require(_0x9d0a('0x4'));var rp=require(_0x9d0a('0x5'));var fs=require('fs');var path=require(_0x9d0a('0x6'));var rimraf=require(_0x9d0a('0x7'));var config=require(_0x9d0a('0x8'));var attributes=require(_0x9d0a('0x9'));module[_0x9d0a('0xa')]=function(_0x1e489f,_0xa37e36){return _0x1e489f['define']('ChatMessage',attributes,{'tableName':_0x9d0a('0xb'),'paranoid':![],'indexes':[{'name':'fti_chat_messages','fields':[_0x9d0a('0xc')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0xf5bbd8,_0x3dc17a,_0x54a003){var _0x225455=_0x1e489f[_0x9d0a('0xd')];var _0xf6819a=_0xf5bbd8['get']({'plain':!![]});if(_0xf6819a['direction'][_0x9d0a('0xe')]()==='in'||_0xf6819a[_0x9d0a('0xf')][_0x9d0a('0xe')]()==='out'&&!_0xf6819a[_0x9d0a('0x10')]&&!_['isNil'](_0xf6819a[_0x9d0a('0x11')])){_0x225455['ChatInteraction']['findOne']({'where':{'id':_0xf6819a[_0x9d0a('0x12')]}})['then'](function(_0x2dc04d){if(_0x2dc04d){_0x2dc04d[_0x9d0a('0x13')]({'lastMsgAt':_0xf6819a[_0x9d0a('0x14')],'lastMsgDirection':_0xf6819a[_0x9d0a('0xf')][_0x9d0a('0xe')]()});}})[_0x9d0a('0x15')](function(_0x1f85f5){console[_0x9d0a('0x16')](_0x1f85f5);});}_0x54a003();}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});};
\ No newline at end of file
diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js
index 8aac0bb..5e2c322 100644
--- a/server/api/chatMessage/chatMessage.rpc.js
+++ b/server/api/chatMessage/chatMessage.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1ad4=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','redis','localhost','socket.io-emitter','register','request','then','info','ChatMessage,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','CreateChatMessage','ChatMessage','body','options','raw','catch','lodash'];(function(_0x485bbb,_0x4eb1ad){var _0x1d1eb0=function(_0x5e45a9){while(--_0x5e45a9){_0x485bbb['push'](_0x485bbb['shift']());}};_0x1d1eb0(++_0x4eb1ad);}(_0x1ad4,0x13f));var _0x41ad=function(_0x20f9bc,_0x1057f0){_0x20f9bc=_0x20f9bc-0x0;var _0x2060a4=_0x1ad4[_0x20f9bc];return _0x2060a4;};'use strict';var _=require(_0x41ad('0x0'));var util=require('util');var moment=require(_0x41ad('0x1'));var BPromise=require(_0x41ad('0x2'));var rs=require(_0x41ad('0x3'));var fs=require('fs');var Redis=require(_0x41ad('0x4'));var db=require(_0x41ad('0x5'))['db'];var utils=require(_0x41ad('0x6'));var logger=require(_0x41ad('0x7'))(_0x41ad('0x8'));var config=require(_0x41ad('0x9'));var jayson=require(_0x41ad('0xa'));var client=jayson[_0x41ad('0xb')]['http']({'port':0x232a});config['redis']=_['defaults'](config[_0x41ad('0xc')],{'host':_0x41ad('0xd'),'port':0x18eb});var socket=require(_0x41ad('0xe'))(new Redis(config[_0x41ad('0xc')]));require('./chatMessage.socket')[_0x41ad('0xf')](socket);function respondWithRpcPromise(_0x2b2402,_0x5d6893,_0x16e703){return new BPromise(function(_0x58fbc0,_0xb004ef){return client[_0x41ad('0x10')](_0x2b2402,_0x16e703)[_0x41ad('0x11')](function(_0x4dd7f8){logger[_0x41ad('0x12')](_0x41ad('0x13'),_0x5d6893,_0x41ad('0x14'));logger[_0x41ad('0x15')]('ChatMessage,\x20%s,\x20%s,\x20%s',_0x5d6893,'request\x20sent',JSON[_0x41ad('0x16')](_0x4dd7f8));if(_0x4dd7f8['error']){if(_0x4dd7f8[_0x41ad('0x17')][_0x41ad('0x18')]===0x1f4){logger['error'](_0x41ad('0x13'),_0x5d6893,_0x4dd7f8[_0x41ad('0x17')][_0x41ad('0x19')]);return _0xb004ef(_0x4dd7f8[_0x41ad('0x17')][_0x41ad('0x19')]);}logger[_0x41ad('0x17')](_0x41ad('0x13'),_0x5d6893,_0x4dd7f8['error'][_0x41ad('0x19')]);return _0x58fbc0(_0x4dd7f8[_0x41ad('0x17')][_0x41ad('0x19')]);}else{logger['info'](_0x41ad('0x13'),_0x5d6893,'request\x20sent');_0x58fbc0(_0x4dd7f8['result'][_0x41ad('0x19')]);}})['catch'](function(_0x1266cb){logger[_0x41ad('0x17')]('ChatMessage,\x20%s,\x20%s',_0x5d6893,_0x1266cb);_0xb004ef(_0x1266cb);});});}exports[_0x41ad('0x1a')]=function(_0xd8df8e){var _0x1711b5=this;return new Promise(function(_0x12f2bb,_0x235c4b){return db[_0x41ad('0x1b')]['create'](_0xd8df8e[_0x41ad('0x1c')],{'raw':_0xd8df8e['options']?_0xd8df8e[_0x41ad('0x1d')][_0x41ad('0x1e')]===undefined?!![]:![]:!![]})[_0x41ad('0x11')](function(_0x124b30){logger[_0x41ad('0x12')]('CreateChatMessage',_0xd8df8e);logger['debug'](_0x41ad('0x1a'),_0xd8df8e,JSON[_0x41ad('0x16')](_0x124b30));_0x12f2bb(_0x124b30);})[_0x41ad('0x1f')](function(_0x5bed01){logger['error'](_0x41ad('0x1a'),_0x5bed01['message'],_0xd8df8e);_0x235c4b(_0x1711b5[_0x41ad('0x17')](0x1f4,_0x5bed01[_0x41ad('0x19')]));});});};
\ No newline at end of file
+var _0x09f0=['localhost','socket.io-emitter','./chatMessage.socket','request','then','info','ChatMessage,\x20%s,\x20%s','request\x20sent','debug','ChatMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','create','body','options','CreateChatMessage','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise','client','http','redis','defaults'];(function(_0xd89e41,_0x516cac){var _0x5651cf=function(_0x41a83f){while(--_0x41a83f){_0xd89e41['push'](_0xd89e41['shift']());}};_0x5651cf(++_0x516cac);}(_0x09f0,0x174));var _0x009f=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x09f0[_0x321bb2];return _0x9c12ed;};'use strict';var _=require('lodash');var util=require(_0x009f('0x0'));var moment=require('moment');var BPromise=require(_0x009f('0x1'));var rs=require(_0x009f('0x2'));var fs=require('fs');var Redis=require(_0x009f('0x3'));var db=require(_0x009f('0x4'))['db'];var utils=require(_0x009f('0x5'));var logger=require('../../config/logger')(_0x009f('0x6'));var config=require('../../config/environment');var jayson=require(_0x009f('0x7'));var client=jayson[_0x009f('0x8')][_0x009f('0x9')]({'port':0x232a});config[_0x009f('0xa')]=_[_0x009f('0xb')](config[_0x009f('0xa')],{'host':_0x009f('0xc'),'port':0x18eb});var socket=require(_0x009f('0xd'))(new Redis(config['redis']));require(_0x009f('0xe'))['register'](socket);function respondWithRpcPromise(_0x2c23cc,_0x3a992f,_0xc15b3e){return new BPromise(function(_0x34e2e4,_0x4be132){return client[_0x009f('0xf')](_0x2c23cc,_0xc15b3e)[_0x009f('0x10')](function(_0xaf6e7d){logger[_0x009f('0x11')](_0x009f('0x12'),_0x3a992f,_0x009f('0x13'));logger[_0x009f('0x14')](_0x009f('0x15'),_0x3a992f,_0x009f('0x13'),JSON[_0x009f('0x16')](_0xaf6e7d));if(_0xaf6e7d[_0x009f('0x17')]){if(_0xaf6e7d[_0x009f('0x17')][_0x009f('0x18')]===0x1f4){logger[_0x009f('0x17')]('ChatMessage,\x20%s,\x20%s',_0x3a992f,_0xaf6e7d[_0x009f('0x17')][_0x009f('0x19')]);return _0x4be132(_0xaf6e7d['error'][_0x009f('0x19')]);}logger['error'](_0x009f('0x12'),_0x3a992f,_0xaf6e7d[_0x009f('0x17')][_0x009f('0x19')]);return _0x34e2e4(_0xaf6e7d['error'][_0x009f('0x19')]);}else{logger['info']('ChatMessage,\x20%s,\x20%s',_0x3a992f,_0x009f('0x13'));_0x34e2e4(_0xaf6e7d[_0x009f('0x1a')]['message']);}})[_0x009f('0x1b')](function(_0x434ea6){logger[_0x009f('0x17')](_0x009f('0x12'),_0x3a992f,_0x434ea6);_0x4be132(_0x434ea6);});});}exports['CreateChatMessage']=function(_0x59a231){var _0x332da6=this;return new Promise(function(_0x1151fd,_0x21ad89){return db['ChatMessage'][_0x009f('0x1c')](_0x59a231[_0x009f('0x1d')],{'raw':_0x59a231['options']?_0x59a231[_0x009f('0x1e')]['raw']===undefined?!![]:![]:!![]})[_0x009f('0x10')](function(_0x247b14){logger[_0x009f('0x11')](_0x009f('0x1f'),_0x59a231);logger[_0x009f('0x14')]('CreateChatMessage',_0x59a231,JSON[_0x009f('0x16')](_0x247b14));_0x1151fd(_0x247b14);})['catch'](function(_0x1a5844){logger[_0x009f('0x17')](_0x009f('0x1f'),_0x1a5844[_0x009f('0x19')],_0x59a231);_0x21ad89(_0x332da6[_0x009f('0x17')](0x1f4,_0x1a5844[_0x009f('0x19')]));});});};
\ No newline at end of file
diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js
index ddec058..1da1b8f 100644
--- a/server/api/chatMessage/chatMessage.socket.js
+++ b/server/api/chatMessage/chatMessage.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x187d=['./chatMessage.events','remove','update','emit','removeListener','length','chatMessage:'];(function(_0x2c6ae1,_0x317c68){var _0x1cafbf=function(_0xf51602){while(--_0xf51602){_0x2c6ae1['push'](_0x2c6ae1['shift']());}};_0x1cafbf(++_0x317c68);}(_0x187d,0x93));var _0xd187=function(_0x40ac5e,_0x2de228){_0x40ac5e=_0x40ac5e-0x0;var _0x2839d6=_0x187d[_0x40ac5e];return _0x2839d6;};'use strict';var ChatMessageEvents=require(_0xd187('0x0'));var events=['save',_0xd187('0x1'),_0xd187('0x2')];function createListener(_0x44d5f6,_0x1cb41f){return function(_0x18498b){_0x1cb41f[_0xd187('0x3')](_0x44d5f6,_0x18498b);};}function removeListener(_0x58622a,_0x28fa0b){return function(){ChatMessageEvents[_0xd187('0x4')](_0x58622a,_0x28fa0b);};}exports['register']=function(_0x1d2533){for(var _0x58ee7=0x0,_0x444a60=events[_0xd187('0x5')];_0x58ee7<_0x444a60;_0x58ee7++){var _0x28ce2f=events[_0x58ee7];var _0x2d6992=createListener(_0xd187('0x6')+_0x28ce2f,_0x1d2533);ChatMessageEvents['on'](_0x28ce2f,_0x2d6992);}};
\ No newline at end of file
+var _0x4991=['length','chatMessage:','./chatMessage.events','remove','emit','removeListener','register'];(function(_0x2f6e47,_0x40ba6b){var _0x29c331=function(_0x18d873){while(--_0x18d873){_0x2f6e47['push'](_0x2f6e47['shift']());}};_0x29c331(++_0x40ba6b);}(_0x4991,0xf7));var _0x1499=function(_0x27c217,_0x344246){_0x27c217=_0x27c217-0x0;var _0x2361d5=_0x4991[_0x27c217];return _0x2361d5;};'use strict';var ChatMessageEvents=require(_0x1499('0x0'));var events=['save',_0x1499('0x1'),'update'];function createListener(_0x30d640,_0x256e41){return function(_0x16ac22){_0x256e41[_0x1499('0x2')](_0x30d640,_0x16ac22);};}function removeListener(_0x1b291f,_0x158134){return function(){ChatMessageEvents[_0x1499('0x3')](_0x1b291f,_0x158134);};}exports[_0x1499('0x4')]=function(_0x4b6154){for(var _0x2a8e96=0x0,_0x1c3bd7=events[_0x1499('0x5')];_0x2a8e96<_0x1c3bd7;_0x2a8e96++){var _0x33b261=events[_0x2a8e96];var _0x133bae=createListener(_0x1499('0x6')+_0x33b261,_0x4b6154);ChatMessageEvents['on'](_0x33b261,_0x133bae);}};
\ No newline at end of file
diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js
index 6f6d1ee..0b85423 100644
--- a/server/api/chatMessage/index.js
+++ b/server/api/chatMessage/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xc1fc=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatMessage.controller','get','isAuthenticated','/describe','describe','/:id','tracked','chat','chatmessage:create','create','put','update','accept','/:id/reject','reject','delete','destroy','exports','util','path','express'];(function(_0x569c23,_0x2f541c){var _0x746cd7=function(_0x51e7dd){while(--_0x51e7dd){_0x569c23['push'](_0x569c23['shift']());}};_0x746cd7(++_0x2f541c);}(_0xc1fc,0x93));var _0xcc1f=function(_0xb513a1,_0x247ddd){_0xb513a1=_0xb513a1-0x0;var _0x5e9fbf=_0xc1fc[_0xb513a1];return _0x5e9fbf;};'use strict';var multer=require('multer');var util=require(_0xcc1f('0x0'));var path=require(_0xcc1f('0x1'));var timeout=require('connect-timeout');var express=require(_0xcc1f('0x2'));var router=express[_0xcc1f('0x3')]();var auth=require(_0xcc1f('0x4'));var interaction=require(_0xcc1f('0x5'));var config=require(_0xcc1f('0x6'));var controller=require(_0xcc1f('0x7'));router[_0xcc1f('0x8')]('/',auth[_0xcc1f('0x9')](),controller['index']);router['get'](_0xcc1f('0xa'),auth[_0xcc1f('0x9')](),controller[_0xcc1f('0xb')]);router[_0xcc1f('0x8')](_0xcc1f('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xcc1f('0x9')](),interaction[_0xcc1f('0xd')](_0xcc1f('0xe'),_0xcc1f('0xf')),controller[_0xcc1f('0x10')]);router[_0xcc1f('0x11')](_0xcc1f('0xc'),controller[_0xcc1f('0x12')]);router[_0xcc1f('0x11')]('/:id/accept',auth[_0xcc1f('0x9')](),controller[_0xcc1f('0x13')]);router[_0xcc1f('0x11')](_0xcc1f('0x14'),auth[_0xcc1f('0x9')](),controller[_0xcc1f('0x15')]);router[_0xcc1f('0x16')]('/:id',auth[_0xcc1f('0x9')](),controller[_0xcc1f('0x17')]);module[_0xcc1f('0x18')]=router;
\ No newline at end of file
+var _0xbdc8=['./chatMessage.controller','get','isAuthenticated','/describe','describe','/:id','show','post','chat','chatmessage:create','create','put','update','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service'];(function(_0x283cf6,_0x14e096){var _0x4b40e5=function(_0xd340e5){while(--_0xd340e5){_0x283cf6['push'](_0x283cf6['shift']());}};_0x4b40e5(++_0x14e096);}(_0xbdc8,0x80));var _0x8bdc=function(_0x2ccd3b,_0x27a9a9){_0x2ccd3b=_0x2ccd3b-0x0;var _0x3f58ca=_0xbdc8[_0x2ccd3b];return _0x3f58ca;};'use strict';var multer=require(_0x8bdc('0x0'));var util=require(_0x8bdc('0x1'));var path=require(_0x8bdc('0x2'));var timeout=require(_0x8bdc('0x3'));var express=require(_0x8bdc('0x4'));var router=express['Router']();var auth=require(_0x8bdc('0x5'));var interaction=require(_0x8bdc('0x6'));var config=require('../../config/environment');var controller=require(_0x8bdc('0x7'));router[_0x8bdc('0x8')]('/',auth[_0x8bdc('0x9')](),controller['index']);router[_0x8bdc('0x8')](_0x8bdc('0xa'),auth[_0x8bdc('0x9')](),controller[_0x8bdc('0xb')]);router[_0x8bdc('0x8')](_0x8bdc('0xc'),auth[_0x8bdc('0x9')](),controller[_0x8bdc('0xd')]);router[_0x8bdc('0xe')]('/',auth['isAuthenticated'](),interaction['tracked'](_0x8bdc('0xf'),_0x8bdc('0x10')),controller[_0x8bdc('0x11')]);router[_0x8bdc('0x12')](_0x8bdc('0xc'),controller[_0x8bdc('0x13')]);router['put'](_0x8bdc('0x14'),auth['isAuthenticated'](),controller[_0x8bdc('0x15')]);router[_0x8bdc('0x12')](_0x8bdc('0x16'),auth[_0x8bdc('0x9')](),controller[_0x8bdc('0x17')]);router[_0x8bdc('0x18')]('/:id',auth['isAuthenticated'](),controller[_0x8bdc('0x19')]);module[_0x8bdc('0x1a')]=router;
\ No newline at end of file
diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js
index 0c6b8be..21a0431 100644
--- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js
+++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x938f=['TEXT','sequelize','exports'];(function(_0x5d82d9,_0x3d7694){var _0x3dfd86=function(_0x53735e){while(--_0x53735e){_0x5d82d9['push'](_0x5d82d9['shift']());}};_0x3dfd86(++_0x3d7694);}(_0x938f,0x13c));var _0xf938=function(_0x34d6bd,_0x55b744){_0x34d6bd=_0x34d6bd-0x0;var _0x248396=_0x938f[_0x34d6bd];return _0x248396;};'use strict';var Sequelize=require(_0xf938('0x0'));module[_0xf938('0x1')]={'body':{'type':Sequelize[_0xf938('0x2')]('medium'),'allowNull':![]}};
\ No newline at end of file
+var _0x9450=['exports','medium','sequelize'];(function(_0x42bc91,_0x41f40a){var _0x3f5507=function(_0x20cfaf){while(--_0x20cfaf){_0x42bc91['push'](_0x42bc91['shift']());}};_0x3f5507(++_0x41f40a);}(_0x9450,0x15b));var _0x0945=function(_0x45483d,_0x4742c7){_0x45483d=_0x45483d-0x0;var _0x5148b1=_0x9450[_0x45483d];return _0x5148b1;};'use strict';var Sequelize=require(_0x0945('0x0'));module[_0x0945('0x1')]={'body':{'type':Sequelize['TEXT'](_0x0945('0x2')),'allowNull':![]}};
\ No newline at end of file
diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js
index b904549..33b5406 100644
--- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js
+++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa794=['find','body','destroy','catch','describe','html-pdf','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','lodash','squel','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','json','offset','limit','set','Content-Range','apply','reject','update','then','end','error','stack','name','send','index','map','ChatOfflineMessage','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','pick','filter','merge','where','VIRTUAL','count','includeAll','include','rows','show','params'];(function(_0x5eca50,_0xc1e3f8){var _0x41fb84=function(_0x4ce3f3){while(--_0x4ce3f3){_0x5eca50['push'](_0x5eca50['shift']());}};_0x41fb84(++_0xc1e3f8);}(_0xa794,0x168));var _0x4a79=function(_0x413d87,_0x1224cf){_0x413d87=_0x413d87-0x0;var _0x54f2d6=_0xa794[_0x413d87];return _0x54f2d6;};'use strict';var pdf=require(_0x4a79('0x0'));var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0x4a79('0x1'));var rp=require(_0x4a79('0x2'));var moment=require(_0x4a79('0x3'));var BPromise=require('bluebird');var Mustache=require(_0x4a79('0x4'));var util=require(_0x4a79('0x5'));var path=require(_0x4a79('0x6'));var sox=require(_0x4a79('0x7'));var csv=require(_0x4a79('0x8'));var ejs=require(_0x4a79('0x9'));var fs=require('fs');var _=require(_0x4a79('0xa'));var squel=require(_0x4a79('0xb'));var crypto=require('crypto');var jsforce=require(_0x4a79('0xc'));var deskjs=require(_0x4a79('0xd'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x4a79('0xe'));var Redis=require('ioredis');var authService=require(_0x4a79('0xf'));var qs=require(_0x4a79('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x4a79('0x11'));var logger=require('../../config/logger')(_0x4a79('0x12'));var utils=require(_0x4a79('0x13'));var config=require(_0x4a79('0x14'));var db=require(_0x4a79('0x15'))['db'];function respondWithStatusCode(_0x30f56b,_0x2d08ce){_0x2d08ce=_0x2d08ce||0xcc;return function(_0xc5096b){if(_0xc5096b){return _0x30f56b[_0x4a79('0x16')](_0x2d08ce);}return _0x30f56b['status'](_0x2d08ce)['end']();};}function respondWithResult(_0x193d94,_0x4666d7){_0x4666d7=_0x4666d7||0xc8;return function(_0x310d4c){if(_0x310d4c){return _0x193d94[_0x4a79('0x17')](_0x4666d7)[_0x4a79('0x18')](_0x310d4c);}};}function respondWithFilteredResult(_0x152804,_0x588d37){return function(_0x325068){if(_0x325068){var _0x3e453e=_0x325068['count'],_0x48abc5=_0x588d37[_0x4a79('0x19')],_0x5bf0ba=_0x588d37[_0x4a79('0x19')]+_0x588d37[_0x4a79('0x1a')],_0x27e98a;if(_0x5bf0ba>=_0x3e453e){_0x5bf0ba=_0x3e453e;_0x27e98a=0xc8;}else{_0x27e98a=0xce;}_0x152804[_0x4a79('0x17')](_0x27e98a);return _0x152804[_0x4a79('0x1b')](_0x4a79('0x1c'),_0x48abc5+'-'+_0x5bf0ba+'/'+_0x3e453e)[_0x4a79('0x18')](_0x325068);}return null;};}function patchUpdates(_0x55cc21){return function(_0x24faab){try{jsonpatch[_0x4a79('0x1d')](_0x24faab,_0x55cc21,!![]);}catch(_0x444274){return BPromise[_0x4a79('0x1e')](_0x444274);}return _0x24faab['save']();};}function saveUpdates(_0x2aa20b,_0x56dc29){return function(_0xdc59dc){if(_0xdc59dc){return _0xdc59dc[_0x4a79('0x1f')](_0x2aa20b)[_0x4a79('0x20')](function(_0x1f1f5d){return _0x1f1f5d;});}return null;};}function removeEntity(_0x11467b,_0x2ea1a2){return function(_0x51f9d7){if(_0x51f9d7){return _0x51f9d7['destroy']()[_0x4a79('0x20')](function(){_0x11467b[_0x4a79('0x17')](0xcc)[_0x4a79('0x21')]();});}};}function handleEntityNotFound(_0xbb8d25,_0x1eaf4e){return function(_0x3fe20f){if(!_0x3fe20f){_0xbb8d25['sendStatus'](0x194);}return _0x3fe20f;};}function handleError(_0x4d8e17,_0x3cfa1f){_0x3cfa1f=_0x3cfa1f||0x1f4;return function(_0x247c4e){logger[_0x4a79('0x22')](_0x247c4e[_0x4a79('0x23')]);if(_0x247c4e[_0x4a79('0x24')]){delete _0x247c4e[_0x4a79('0x24')];}_0x4d8e17[_0x4a79('0x17')](_0x3cfa1f)[_0x4a79('0x25')](_0x247c4e);};}exports[_0x4a79('0x26')]=function(_0x2822f8,_0xdfd0c8){var _0x5dfb9e={},_0x33cfd2={},_0x5c3c88={'count':0x0,'rows':[]};var _0x2698a6=_[_0x4a79('0x27')](db[_0x4a79('0x28')][_0x4a79('0x29')],function(_0x235f93){return{'name':_0x235f93['fieldName'],'type':_0x235f93[_0x4a79('0x2a')][_0x4a79('0x2b')]};});_0x33cfd2[_0x4a79('0x2c')]=_['map'](_0x2698a6,_0x4a79('0x24'));_0x33cfd2[_0x4a79('0x2d')]=_[_0x4a79('0x2e')](_0x2822f8[_0x4a79('0x2d')]);_0x33cfd2[_0x4a79('0x2f')]=_[_0x4a79('0x30')](_0x33cfd2[_0x4a79('0x2c')],_0x33cfd2[_0x4a79('0x2d')]);_0x5dfb9e[_0x4a79('0x31')]=_['intersection'](_0x33cfd2['model'],qs[_0x4a79('0x32')](_0x2822f8[_0x4a79('0x2d')][_0x4a79('0x32')]));_0x5dfb9e['attributes']=_0x5dfb9e[_0x4a79('0x31')][_0x4a79('0x33')]?_0x5dfb9e['attributes']:_0x33cfd2[_0x4a79('0x2c')];if(!_0x2822f8[_0x4a79('0x2d')][_0x4a79('0x34')]('nolimit')){_0x5dfb9e[_0x4a79('0x1a')]=qs[_0x4a79('0x1a')](_0x2822f8[_0x4a79('0x2d')][_0x4a79('0x1a')]);_0x5dfb9e['offset']=qs[_0x4a79('0x19')](_0x2822f8['query'][_0x4a79('0x19')]);}_0x5dfb9e[_0x4a79('0x35')]=qs[_0x4a79('0x36')](_0x2822f8['query'][_0x4a79('0x36')]);_0x5dfb9e['where']=qs['filters'](_[_0x4a79('0x37')](_0x2822f8[_0x4a79('0x2d')],_0x33cfd2[_0x4a79('0x2f')]));if(_0x2822f8['query'][_0x4a79('0x38')]){_0x5dfb9e['where']=_[_0x4a79('0x39')](_0x5dfb9e[_0x4a79('0x3a')],{'$or':_[_0x4a79('0x27')](_0x2698a6,function(_0x3c37af){if(_0x3c37af[_0x4a79('0x2a')]!==_0x4a79('0x3b')){var _0x4d0b0a={};_0x4d0b0a[_0x3c37af['name']]={'$like':'%'+_0x2822f8[_0x4a79('0x2d')][_0x4a79('0x38')]+'%'};return _0x4d0b0a;}})});}_0x5dfb9e=_[_0x4a79('0x39')]({},_0x5dfb9e,_0x2822f8['options']);var _0x963fcf={'where':_0x5dfb9e[_0x4a79('0x3a')]};return db['ChatOfflineMessage'][_0x4a79('0x3c')](_0x963fcf)[_0x4a79('0x20')](function(_0x104b04){_0x5c3c88['count']=_0x104b04;if(_0x2822f8[_0x4a79('0x2d')][_0x4a79('0x3d')]){_0x5dfb9e[_0x4a79('0x3e')]=[{'all':!![]}];}return db[_0x4a79('0x28')]['findAll'](_0x5dfb9e);})[_0x4a79('0x20')](function(_0x29777a){_0x5c3c88[_0x4a79('0x3f')]=_0x29777a;return _0x5c3c88;})[_0x4a79('0x20')](respondWithFilteredResult(_0xdfd0c8,_0x5dfb9e))['catch'](handleError(_0xdfd0c8,null));};exports[_0x4a79('0x40')]=function(_0x4bd51e,_0x509648){var _0x1d10a1={'raw':!![],'where':{'id':_0x4bd51e[_0x4a79('0x41')]['id']}},_0xbf97f9={};_0xbf97f9[_0x4a79('0x2c')]=_[_0x4a79('0x2e')](db[_0x4a79('0x28')][_0x4a79('0x29')]);_0xbf97f9[_0x4a79('0x2d')]=_['keys'](_0x4bd51e[_0x4a79('0x2d')]);_0xbf97f9[_0x4a79('0x2f')]=_['intersection'](_0xbf97f9['model'],_0xbf97f9['query']);_0x1d10a1['attributes']=_['intersection'](_0xbf97f9[_0x4a79('0x2c')],qs[_0x4a79('0x32')](_0x4bd51e['query'][_0x4a79('0x32')]));_0x1d10a1['attributes']=_0x1d10a1[_0x4a79('0x31')][_0x4a79('0x33')]?_0x1d10a1[_0x4a79('0x31')]:_0xbf97f9[_0x4a79('0x2c')];if(_0x4bd51e['query']['includeAll']){_0x1d10a1[_0x4a79('0x3e')]=[{'all':!![]}];}_0x1d10a1=_[_0x4a79('0x39')]({},_0x1d10a1,_0x4bd51e['options']);return db['ChatOfflineMessage'][_0x4a79('0x42')](_0x1d10a1)[_0x4a79('0x20')](handleEntityNotFound(_0x509648,null))[_0x4a79('0x20')](respondWithResult(_0x509648,null))['catch'](handleError(_0x509648,null));};exports['create']=function(_0x23163a,_0xe81b74){return db[_0x4a79('0x28')]['create'](_0x23163a['body'],{})[_0x4a79('0x20')](respondWithResult(_0xe81b74,0xc9))['catch'](handleError(_0xe81b74,null));};exports[_0x4a79('0x1f')]=function(_0x40415c,_0x5741da){if(_0x40415c[_0x4a79('0x43')]['id']){delete _0x40415c[_0x4a79('0x43')]['id'];}return db[_0x4a79('0x28')][_0x4a79('0x42')]({'where':{'id':_0x40415c[_0x4a79('0x41')]['id']}})[_0x4a79('0x20')](handleEntityNotFound(_0x5741da,null))[_0x4a79('0x20')](saveUpdates(_0x40415c[_0x4a79('0x43')],null))[_0x4a79('0x20')](respondWithResult(_0x5741da,null))['catch'](handleError(_0x5741da,null));};exports[_0x4a79('0x44')]=function(_0x1babe1,_0x292bd5){return db['ChatOfflineMessage'][_0x4a79('0x42')]({'where':{'id':_0x1babe1[_0x4a79('0x41')]['id']}})['then'](handleEntityNotFound(_0x292bd5,null))['then'](removeEntity(_0x292bd5,null))[_0x4a79('0x45')](handleError(_0x292bd5,null));};exports[_0x4a79('0x46')]=function(_0xd609f9,_0x1794d0){return db[_0x4a79('0x28')][_0x4a79('0x46')]()[_0x4a79('0x20')](respondWithResult(_0x1794d0,null))[_0x4a79('0x45')](handleError(_0x1794d0,null));};
\ No newline at end of file
+var _0x31ea=['find','create','body','catch','describe','rimraf','zip-dir','fast-json-patch','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','status','json','offset','limit','set','Content-Range','reject','save','update','destroy','stack','name','send','index','ChatOfflineMessage','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','fields','length','hasOwnProperty','order','sort','where','merge','map','VIRTUAL','filter','count','then','includeAll','include','findAll','rows','params','intersection','options'];(function(_0x385cac,_0x196617){var _0xc0e067=function(_0x1bd36f){while(--_0x1bd36f){_0x385cac['push'](_0x385cac['shift']());}};_0xc0e067(++_0x196617);}(_0x31ea,0x17c));var _0xa31e=function(_0x511979,_0x3c8984){_0x511979=_0x511979-0x0;var _0x312853=_0x31ea[_0x511979];return _0x312853;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0xa31e('0x0'));var zipdir=require(_0xa31e('0x1'));var jsonpatch=require(_0xa31e('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0xa31e('0x3'));var Mustache=require(_0xa31e('0x4'));var util=require(_0xa31e('0x5'));var path=require(_0xa31e('0x6'));var sox=require(_0xa31e('0x7'));var csv=require(_0xa31e('0x8'));var ejs=require(_0xa31e('0x9'));var fs=require('fs');var _=require(_0xa31e('0xa'));var squel=require(_0xa31e('0xb'));var crypto=require(_0xa31e('0xc'));var jsforce=require(_0xa31e('0xd'));var deskjs=require(_0xa31e('0xe'));var toCsv=require(_0xa31e('0x8'));var querystring=require(_0xa31e('0xf'));var Papa=require('papaparse');var Redis=require(_0xa31e('0x10'));var authService=require(_0xa31e('0x11'));var qs=require(_0xa31e('0x12'));var as=require(_0xa31e('0x13'));var hardwareService=require(_0xa31e('0x14'));var logger=require('../../config/logger')(_0xa31e('0x15'));var utils=require(_0xa31e('0x16'));var config=require(_0xa31e('0x17'));var db=require(_0xa31e('0x18'))['db'];function respondWithStatusCode(_0x10b9de,_0x1ea971){_0x1ea971=_0x1ea971||0xcc;return function(_0x1131cf){if(_0x1131cf){return _0x10b9de[_0xa31e('0x19')](_0x1ea971);}return _0x10b9de['status'](_0x1ea971)[_0xa31e('0x1a')]();};}function respondWithResult(_0x4e1689,_0x5ae539){_0x5ae539=_0x5ae539||0xc8;return function(_0x2c5230){if(_0x2c5230){return _0x4e1689[_0xa31e('0x1b')](_0x5ae539)[_0xa31e('0x1c')](_0x2c5230);}};}function respondWithFilteredResult(_0x5d4a99,_0x5db2a6){return function(_0x4b5294){if(_0x4b5294){var _0x546313=_0x4b5294['count'],_0x61d1fb=_0x5db2a6[_0xa31e('0x1d')],_0x170aaa=_0x5db2a6['offset']+_0x5db2a6[_0xa31e('0x1e')],_0x3cb8f0;if(_0x170aaa>=_0x546313){_0x170aaa=_0x546313;_0x3cb8f0=0xc8;}else{_0x3cb8f0=0xce;}_0x5d4a99[_0xa31e('0x1b')](_0x3cb8f0);return _0x5d4a99[_0xa31e('0x1f')](_0xa31e('0x20'),_0x61d1fb+'-'+_0x170aaa+'/'+_0x546313)['json'](_0x4b5294);}return null;};}function patchUpdates(_0x3b6a81){return function(_0x4421d){try{jsonpatch['apply'](_0x4421d,_0x3b6a81,!![]);}catch(_0x4c72ab){return BPromise[_0xa31e('0x21')](_0x4c72ab);}return _0x4421d[_0xa31e('0x22')]();};}function saveUpdates(_0x504b59,_0x33b216){return function(_0x49266c){if(_0x49266c){return _0x49266c[_0xa31e('0x23')](_0x504b59)['then'](function(_0x1f9e38){return _0x1f9e38;});}return null;};}function removeEntity(_0x446e40,_0x5beb4f){return function(_0x5a6bfc){if(_0x5a6bfc){return _0x5a6bfc[_0xa31e('0x24')]()['then'](function(){_0x446e40[_0xa31e('0x1b')](0xcc)[_0xa31e('0x1a')]();});}};}function handleEntityNotFound(_0xe89ee,_0x24456f){return function(_0x462aff){if(!_0x462aff){_0xe89ee[_0xa31e('0x19')](0x194);}return _0x462aff;};}function handleError(_0xb9dc99,_0x3f0d9c){_0x3f0d9c=_0x3f0d9c||0x1f4;return function(_0xcb4fbf){logger['error'](_0xcb4fbf[_0xa31e('0x25')]);if(_0xcb4fbf[_0xa31e('0x26')]){delete _0xcb4fbf['name'];}_0xb9dc99[_0xa31e('0x1b')](_0x3f0d9c)[_0xa31e('0x27')](_0xcb4fbf);};}exports[_0xa31e('0x28')]=function(_0x4cf18c,_0x2c1d18){var _0x3274b8={},_0x4998a7={},_0x303873={'count':0x0,'rows':[]};var _0x2bb34d=_['map'](db[_0xa31e('0x29')][_0xa31e('0x2a')],function(_0x339e17){return{'name':_0x339e17[_0xa31e('0x2b')],'type':_0x339e17[_0xa31e('0x2c')][_0xa31e('0x2d')]};});_0x4998a7[_0xa31e('0x2e')]=_['map'](_0x2bb34d,_0xa31e('0x26'));_0x4998a7[_0xa31e('0x2f')]=_[_0xa31e('0x30')](_0x4cf18c['query']);_0x4998a7[_0xa31e('0x31')]=_['intersection'](_0x4998a7[_0xa31e('0x2e')],_0x4998a7[_0xa31e('0x2f')]);_0x3274b8[_0xa31e('0x32')]=_['intersection'](_0x4998a7[_0xa31e('0x2e')],qs[_0xa31e('0x33')](_0x4cf18c[_0xa31e('0x2f')][_0xa31e('0x33')]));_0x3274b8[_0xa31e('0x32')]=_0x3274b8[_0xa31e('0x32')][_0xa31e('0x34')]?_0x3274b8[_0xa31e('0x32')]:_0x4998a7[_0xa31e('0x2e')];if(!_0x4cf18c[_0xa31e('0x2f')][_0xa31e('0x35')]('nolimit')){_0x3274b8[_0xa31e('0x1e')]=qs[_0xa31e('0x1e')](_0x4cf18c[_0xa31e('0x2f')][_0xa31e('0x1e')]);_0x3274b8[_0xa31e('0x1d')]=qs[_0xa31e('0x1d')](_0x4cf18c[_0xa31e('0x2f')][_0xa31e('0x1d')]);}_0x3274b8[_0xa31e('0x36')]=qs[_0xa31e('0x37')](_0x4cf18c['query'][_0xa31e('0x37')]);_0x3274b8['where']=qs[_0xa31e('0x31')](_['pick'](_0x4cf18c[_0xa31e('0x2f')],_0x4998a7['filters']));if(_0x4cf18c[_0xa31e('0x2f')]['filter']){_0x3274b8[_0xa31e('0x38')]=_[_0xa31e('0x39')](_0x3274b8[_0xa31e('0x38')],{'$or':_[_0xa31e('0x3a')](_0x2bb34d,function(_0xf12cc2){if(_0xf12cc2[_0xa31e('0x2c')]!==_0xa31e('0x3b')){var _0x30ae7d={};_0x30ae7d[_0xf12cc2['name']]={'$like':'%'+_0x4cf18c['query'][_0xa31e('0x3c')]+'%'};return _0x30ae7d;}})});}_0x3274b8=_[_0xa31e('0x39')]({},_0x3274b8,_0x4cf18c['options']);var _0x1cb5c5={'where':_0x3274b8[_0xa31e('0x38')]};return db[_0xa31e('0x29')][_0xa31e('0x3d')](_0x1cb5c5)[_0xa31e('0x3e')](function(_0x54912a){_0x303873[_0xa31e('0x3d')]=_0x54912a;if(_0x4cf18c[_0xa31e('0x2f')][_0xa31e('0x3f')]){_0x3274b8[_0xa31e('0x40')]=[{'all':!![]}];}return db[_0xa31e('0x29')][_0xa31e('0x41')](_0x3274b8);})['then'](function(_0x2566eb){_0x303873[_0xa31e('0x42')]=_0x2566eb;return _0x303873;})[_0xa31e('0x3e')](respondWithFilteredResult(_0x2c1d18,_0x3274b8))['catch'](handleError(_0x2c1d18,null));};exports['show']=function(_0x20407b,_0x259d35){var _0x54d797={'raw':!![],'where':{'id':_0x20407b[_0xa31e('0x43')]['id']}},_0xdd06c={};_0xdd06c[_0xa31e('0x2e')]=_[_0xa31e('0x30')](db[_0xa31e('0x29')][_0xa31e('0x2a')]);_0xdd06c[_0xa31e('0x2f')]=_[_0xa31e('0x30')](_0x20407b[_0xa31e('0x2f')]);_0xdd06c['filters']=_[_0xa31e('0x44')](_0xdd06c[_0xa31e('0x2e')],_0xdd06c['query']);_0x54d797[_0xa31e('0x32')]=_[_0xa31e('0x44')](_0xdd06c['model'],qs[_0xa31e('0x33')](_0x20407b['query'][_0xa31e('0x33')]));_0x54d797[_0xa31e('0x32')]=_0x54d797[_0xa31e('0x32')][_0xa31e('0x34')]?_0x54d797['attributes']:_0xdd06c[_0xa31e('0x2e')];if(_0x20407b[_0xa31e('0x2f')][_0xa31e('0x3f')]){_0x54d797[_0xa31e('0x40')]=[{'all':!![]}];}_0x54d797=_['merge']({},_0x54d797,_0x20407b[_0xa31e('0x45')]);return db[_0xa31e('0x29')][_0xa31e('0x46')](_0x54d797)[_0xa31e('0x3e')](handleEntityNotFound(_0x259d35,null))[_0xa31e('0x3e')](respondWithResult(_0x259d35,null))['catch'](handleError(_0x259d35,null));};exports[_0xa31e('0x47')]=function(_0x3d85d5,_0x497008){return db[_0xa31e('0x29')][_0xa31e('0x47')](_0x3d85d5[_0xa31e('0x48')],{})['then'](respondWithResult(_0x497008,0xc9))['catch'](handleError(_0x497008,null));};exports[_0xa31e('0x23')]=function(_0x3dcbbc,_0x2d7537){if(_0x3dcbbc[_0xa31e('0x48')]['id']){delete _0x3dcbbc['body']['id'];}return db['ChatOfflineMessage'][_0xa31e('0x46')]({'where':{'id':_0x3dcbbc[_0xa31e('0x43')]['id']}})['then'](handleEntityNotFound(_0x2d7537,null))[_0xa31e('0x3e')](saveUpdates(_0x3dcbbc[_0xa31e('0x48')],null))[_0xa31e('0x3e')](respondWithResult(_0x2d7537,null))[_0xa31e('0x49')](handleError(_0x2d7537,null));};exports[_0xa31e('0x24')]=function(_0x437193,_0xc68a8c){return db[_0xa31e('0x29')]['find']({'where':{'id':_0x437193[_0xa31e('0x43')]['id']}})['then'](handleEntityNotFound(_0xc68a8c,null))[_0xa31e('0x3e')](removeEntity(_0xc68a8c,null))[_0xa31e('0x49')](handleError(_0xc68a8c,null));};exports['describe']=function(_0x2ce843,_0x28680b){return db[_0xa31e('0x29')][_0xa31e('0x4a')]()['then'](respondWithResult(_0x28680b,null))['catch'](handleError(_0x28680b,null));};
\ No newline at end of file
diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js
index 74f3654..d4d354d 100644
--- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js
+++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0b78=['moment','request-promise','rimraf','../../config/environment','./chatOfflineMessage.attributes','ChatOfflineMessage','chat_offline_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','api'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x0b78,0x1ad));var _0x80b7=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x0b78[_0x42cae2];return _0x5f256f;};'use strict';var _=require(_0x80b7('0x0'));var util=require(_0x80b7('0x1'));var logger=require('../../config/logger')(_0x80b7('0x2'));var moment=require(_0x80b7('0x3'));var BPromise=require('bluebird');var rp=require(_0x80b7('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x80b7('0x5'));var config=require(_0x80b7('0x6'));var attributes=require(_0x80b7('0x7'));module['exports']=function(_0x49bc7f,_0x167ddd){return _0x49bc7f['define'](_0x80b7('0x8'),attributes,{'tableName':_0x80b7('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x80b7('0xa'),'collate':_0x80b7('0xb')});};
\ No newline at end of file
+var _0xb4e6=['bluebird','request-promise','path','rimraf','./chatOfflineMessage.attributes','exports','define','utf8mb4','lodash','../../config/logger','api','moment'];(function(_0x3947c9,_0x4d6c97){var _0x2e7871=function(_0x1236cc){while(--_0x1236cc){_0x3947c9['push'](_0x3947c9['shift']());}};_0x2e7871(++_0x4d6c97);}(_0xb4e6,0x1f4));var _0x6b4e=function(_0x4996d5,_0x123daf){_0x4996d5=_0x4996d5-0x0;var _0x4793f9=_0xb4e6[_0x4996d5];return _0x4793f9;};'use strict';var _=require(_0x6b4e('0x0'));var util=require('util');var logger=require(_0x6b4e('0x1'))(_0x6b4e('0x2'));var moment=require(_0x6b4e('0x3'));var BPromise=require(_0x6b4e('0x4'));var rp=require(_0x6b4e('0x5'));var fs=require('fs');var path=require(_0x6b4e('0x6'));var rimraf=require(_0x6b4e('0x7'));var config=require('../../config/environment');var attributes=require(_0x6b4e('0x8'));module[_0x6b4e('0x9')]=function(_0x1f67a2,_0x49de51){return _0x1f67a2[_0x6b4e('0xa')]('ChatOfflineMessage',attributes,{'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x6b4e('0xb'),'collate':'utf8mb4_unicode_ci'});};
\ No newline at end of file
diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.rpc.js b/server/api/chatOfflineMessage/chatOfflineMessage.rpc.js
index 48b1608..f27b313 100644
--- a/server/api/chatOfflineMessage/chatOfflineMessage.rpc.js
+++ b/server/api/chatOfflineMessage/chatOfflineMessage.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x8bb5=['catch','util','bluebird','randomstring','../../mysqldb','../../config/utils','rpc','jayson/promise','client','http','request','then','ChatOfflineMessage,\x20%s,\x20%s','request\x20sent','stringify','error','message','info','result'];(function(_0x49c66b,_0x3f0237){var _0x52f3d5=function(_0x3f090a){while(--_0x3f090a){_0x49c66b['push'](_0x49c66b['shift']());}};_0x52f3d5(++_0x3f0237);}(_0x8bb5,0x17d));var _0x58bb=function(_0x61e46e,_0x502db8){_0x61e46e=_0x61e46e-0x0;var _0x40ee1a=_0x8bb5[_0x61e46e];return _0x40ee1a;};'use strict';var _=require('lodash');var util=require(_0x58bb('0x0'));var moment=require('moment');var BPromise=require(_0x58bb('0x1'));var rs=require(_0x58bb('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x58bb('0x3'))['db'];var utils=require(_0x58bb('0x4'));var logger=require('../../config/logger')(_0x58bb('0x5'));var config=require('../../config/environment');var jayson=require(_0x58bb('0x6'));var client=jayson[_0x58bb('0x7')][_0x58bb('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x3ec72b,_0x520c1f,_0x9b6bde){return new BPromise(function(_0x25ead5,_0x5a648f){return client[_0x58bb('0x9')](_0x3ec72b,_0x9b6bde)[_0x58bb('0xa')](function(_0x51a881){logger['info'](_0x58bb('0xb'),_0x520c1f,_0x58bb('0xc'));logger['debug']('ChatOfflineMessage,\x20%s,\x20%s,\x20%s',_0x520c1f,_0x58bb('0xc'),JSON[_0x58bb('0xd')](_0x51a881));if(_0x51a881[_0x58bb('0xe')]){if(_0x51a881[_0x58bb('0xe')]['code']===0x1f4){logger[_0x58bb('0xe')](_0x58bb('0xb'),_0x520c1f,_0x51a881[_0x58bb('0xe')][_0x58bb('0xf')]);return _0x5a648f(_0x51a881['error']['message']);}logger[_0x58bb('0xe')](_0x58bb('0xb'),_0x520c1f,_0x51a881[_0x58bb('0xe')][_0x58bb('0xf')]);return _0x25ead5(_0x51a881[_0x58bb('0xe')]['message']);}else{logger[_0x58bb('0x10')](_0x58bb('0xb'),_0x520c1f,_0x58bb('0xc'));_0x25ead5(_0x51a881[_0x58bb('0x11')][_0x58bb('0xf')]);}})[_0x58bb('0x12')](function(_0x30681e){logger['error']('ChatOfflineMessage,\x20%s,\x20%s',_0x520c1f,_0x30681e);_0x5a648f(_0x30681e);});});}
\ No newline at end of file
+var _0xd0e9=['bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','jayson/promise','client','http','request','then','info','ChatOfflineMessage,\x20%s,\x20%s','request\x20sent','debug','ChatOfflineMessage,\x20%s,\x20%s,\x20%s','stringify','error','message','catch','lodash','util','moment'];(function(_0x4b5409,_0x472b71){var _0x90b623=function(_0x596445){while(--_0x596445){_0x4b5409['push'](_0x4b5409['shift']());}};_0x90b623(++_0x472b71);}(_0xd0e9,0x19b));var _0x9d0e=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd0e9[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x9d0e('0x0'));var util=require(_0x9d0e('0x1'));var moment=require(_0x9d0e('0x2'));var BPromise=require(_0x9d0e('0x3'));var rs=require(_0x9d0e('0x4'));var fs=require('fs');var Redis=require(_0x9d0e('0x5'));var db=require(_0x9d0e('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x9d0e('0x7'))(_0x9d0e('0x8'));var config=require('../../config/environment');var jayson=require(_0x9d0e('0x9'));var client=jayson[_0x9d0e('0xa')][_0x9d0e('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x1d7ca4,_0x564979,_0xf6f12a){return new BPromise(function(_0x4f6cc5,_0x29c618){return client[_0x9d0e('0xc')](_0x1d7ca4,_0xf6f12a)[_0x9d0e('0xd')](function(_0x11f9d2){logger[_0x9d0e('0xe')](_0x9d0e('0xf'),_0x564979,_0x9d0e('0x10'));logger[_0x9d0e('0x11')](_0x9d0e('0x12'),_0x564979,'request\x20sent',JSON[_0x9d0e('0x13')](_0x11f9d2));if(_0x11f9d2['error']){if(_0x11f9d2[_0x9d0e('0x14')]['code']===0x1f4){logger[_0x9d0e('0x14')](_0x9d0e('0xf'),_0x564979,_0x11f9d2[_0x9d0e('0x14')]['message']);return _0x29c618(_0x11f9d2[_0x9d0e('0x14')]['message']);}logger[_0x9d0e('0x14')](_0x9d0e('0xf'),_0x564979,_0x11f9d2[_0x9d0e('0x14')][_0x9d0e('0x15')]);return _0x4f6cc5(_0x11f9d2[_0x9d0e('0x14')][_0x9d0e('0x15')]);}else{logger[_0x9d0e('0xe')]('ChatOfflineMessage,\x20%s,\x20%s',_0x564979,_0x9d0e('0x10'));_0x4f6cc5(_0x11f9d2['result'][_0x9d0e('0x15')]);}})[_0x9d0e('0x16')](function(_0x4bdb35){logger['error'](_0x9d0e('0xf'),_0x564979,_0x4bdb35);_0x29c618(_0x4bdb35);});});}
\ No newline at end of file
diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js
index fbd060e..41b5454 100644
--- a/server/api/chatOfflineMessage/index.js
+++ b/server/api/chatOfflineMessage/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x35b3=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatOfflineMessage.controller','get','isAuthenticated','/describe','describe','show','post','create','put','/:id','update','delete','destroy','exports'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x35b3,0x142));var _0x335b=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x35b3[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x335b('0x0'));var util=require(_0x335b('0x1'));var path=require(_0x335b('0x2'));var timeout=require(_0x335b('0x3'));var express=require(_0x335b('0x4'));var router=express[_0x335b('0x5')]();var auth=require(_0x335b('0x6'));var interaction=require(_0x335b('0x7'));var config=require(_0x335b('0x8'));var controller=require(_0x335b('0x9'));router[_0x335b('0xa')]('/',auth[_0x335b('0xb')](),controller['index']);router[_0x335b('0xa')](_0x335b('0xc'),auth[_0x335b('0xb')](),controller[_0x335b('0xd')]);router['get']('/:id',auth[_0x335b('0xb')](),controller[_0x335b('0xe')]);router[_0x335b('0xf')]('/',auth['isAuthenticated'](),controller[_0x335b('0x10')]);router[_0x335b('0x11')](_0x335b('0x12'),auth[_0x335b('0xb')](),controller[_0x335b('0x13')]);router[_0x335b('0x14')](_0x335b('0x12'),auth[_0x335b('0xb')](),controller[_0x335b('0x15')]);module[_0x335b('0x16')]=router;
\ No newline at end of file
+var _0x0123=['create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','isAuthenticated','index','/describe','describe','get','/:id','show','post'];(function(_0x291b93,_0x44b715){var _0x4183c8=function(_0x228c59){while(--_0x228c59){_0x291b93['push'](_0x291b93['shift']());}};_0x4183c8(++_0x44b715);}(_0x0123,0x6a));var _0x3012=function(_0x33b634,_0x402501){_0x33b634=_0x33b634-0x0;var _0x27b7f8=_0x0123[_0x33b634];return _0x27b7f8;};'use strict';var multer=require(_0x3012('0x0'));var util=require(_0x3012('0x1'));var path=require(_0x3012('0x2'));var timeout=require(_0x3012('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0x3012('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x3012('0x5'));var controller=require('./chatOfflineMessage.controller');router['get']('/',auth[_0x3012('0x6')](),controller[_0x3012('0x7')]);router['get'](_0x3012('0x8'),auth[_0x3012('0x6')](),controller[_0x3012('0x9')]);router[_0x3012('0xa')](_0x3012('0xb'),auth[_0x3012('0x6')](),controller[_0x3012('0xc')]);router[_0x3012('0xd')]('/',auth[_0x3012('0x6')](),controller[_0x3012('0xe')]);router[_0x3012('0xf')](_0x3012('0xb'),auth[_0x3012('0x6')](),controller[_0x3012('0x10')]);router[_0x3012('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x3012('0x12')]);module[_0x3012('0x13')]=router;
\ No newline at end of file
diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js
index e129c47..6f1a3e9 100644
--- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js
+++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x15f7=['mouseOver','sequelize','STRING','ENUM','timeout'];(function(_0x46638b,_0x4f2598){var _0x6a157b=function(_0x14d213){while(--_0x14d213){_0x46638b['push'](_0x46638b['shift']());}};_0x6a157b(++_0x4f2598);}(_0x15f7,0x65));var _0x715f=function(_0x306646,_0xdc2e1b){_0x306646=_0x306646-0x0;var _0x40bd8d=_0x15f7[_0x306646];return _0x40bd8d;};'use strict';var Sequelize=require(_0x715f('0x0'));module['exports']={'name':{'type':Sequelize[_0x715f('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x715f('0x2')]('mouseOver',_0x715f('0x3')),'defaultValue':_0x715f('0x4')},'selector':{'type':Sequelize[_0x715f('0x1')]},'timeout':{'type':Sequelize['INTEGER']}};
\ No newline at end of file
+var _0x07ad=['exports','STRING','mouseOver','INTEGER'];(function(_0x19c667,_0x367861){var _0x4542d4=function(_0x3eccea){while(--_0x3eccea){_0x19c667['push'](_0x19c667['shift']());}};_0x4542d4(++_0x367861);}(_0x07ad,0xbc));var _0xd07a=function(_0x55fd5c,_0x7db0da){_0x55fd5c=_0x55fd5c-0x0;var _0x5b21e5=_0x07ad[_0x55fd5c];return _0x5b21e5;};'use strict';var Sequelize=require('sequelize');module[_0xd07a('0x0')]={'name':{'type':Sequelize[_0xd07a('0x1')],'allowNull':![]},'type':{'type':Sequelize['ENUM']('mouseOver','timeout'),'defaultValue':_0xd07a('0x2')},'selector':{'type':Sequelize[_0xd07a('0x1')]},'timeout':{'type':Sequelize[_0xd07a('0x3')]}};
\ No newline at end of file
diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js
index 5a31131..340095f 100644
--- a/server/api/chatProactiveAction/chatProactiveAction.controller.js
+++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xe706=['../../config/environment','../../mysqldb','sendStatus','status','end','count','limit','set','Content-Range','apply','reject','save','update','then','stack','name','send','show','params','model','keys','rawAttributes','query','filters','intersection','attributes','fields','length','includeAll','merge','options','find','catch','create','ChatProactiveAction','body','destroy','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger'];(function(_0x49c9a,_0x34313c){var _0x19650e=function(_0x25ce01){while(--_0x25ce01){_0x49c9a['push'](_0x49c9a['shift']());}};_0x19650e(++_0x34313c);}(_0xe706,0xa3));var _0x6e70=function(_0x211bc3,_0x5860c8){_0x211bc3=_0x211bc3-0x0;var _0x34c9a2=_0xe706[_0x211bc3];return _0x34c9a2;};'use strict';var pdf=require(_0x6e70('0x0'));var emlformat=require(_0x6e70('0x1'));var rimraf=require(_0x6e70('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x6e70('0x3'));var rp=require(_0x6e70('0x4'));var moment=require(_0x6e70('0x5'));var BPromise=require(_0x6e70('0x6'));var Mustache=require(_0x6e70('0x7'));var util=require(_0x6e70('0x8'));var path=require(_0x6e70('0x9'));var sox=require(_0x6e70('0xa'));var csv=require(_0x6e70('0xb'));var ejs=require(_0x6e70('0xc'));var fs=require('fs');var _=require(_0x6e70('0xd'));var squel=require(_0x6e70('0xe'));var crypto=require(_0x6e70('0xf'));var jsforce=require(_0x6e70('0x10'));var deskjs=require(_0x6e70('0x11'));var toCsv=require(_0x6e70('0xb'));var querystring=require(_0x6e70('0x12'));var Papa=require(_0x6e70('0x13'));var Redis=require(_0x6e70('0x14'));var authService=require(_0x6e70('0x15'));var qs=require(_0x6e70('0x16'));var as=require(_0x6e70('0x17'));var hardwareService=require(_0x6e70('0x18'));var logger=require(_0x6e70('0x19'))('api');var utils=require('../../config/utils');var config=require(_0x6e70('0x1a'));var db=require(_0x6e70('0x1b'))['db'];function respondWithStatusCode(_0x18cf27,_0x27dd9b){_0x27dd9b=_0x27dd9b||0xcc;return function(_0x3b38f3){if(_0x3b38f3){return _0x18cf27[_0x6e70('0x1c')](_0x27dd9b);}return _0x18cf27[_0x6e70('0x1d')](_0x27dd9b)[_0x6e70('0x1e')]();};}function respondWithResult(_0x5dfbaa,_0x52737e){_0x52737e=_0x52737e||0xc8;return function(_0x48bc72){if(_0x48bc72){return _0x5dfbaa[_0x6e70('0x1d')](_0x52737e)['json'](_0x48bc72);}};}function respondWithFilteredResult(_0x53aed0,_0x304716){return function(_0x22c50c){if(_0x22c50c){var _0x5d9263=_0x22c50c[_0x6e70('0x1f')],_0x24f3ac=_0x304716['offset'],_0x5c3fe7=_0x304716['offset']+_0x304716[_0x6e70('0x20')],_0x2efc0f;if(_0x5c3fe7>=_0x5d9263){_0x5c3fe7=_0x5d9263;_0x2efc0f=0xc8;}else{_0x2efc0f=0xce;}_0x53aed0['status'](_0x2efc0f);return _0x53aed0[_0x6e70('0x21')](_0x6e70('0x22'),_0x24f3ac+'-'+_0x5c3fe7+'/'+_0x5d9263)['json'](_0x22c50c);}return null;};}function patchUpdates(_0x497d61){return function(_0xc238ba){try{jsonpatch[_0x6e70('0x23')](_0xc238ba,_0x497d61,!![]);}catch(_0x2368eb){return BPromise[_0x6e70('0x24')](_0x2368eb);}return _0xc238ba[_0x6e70('0x25')]();};}function saveUpdates(_0xcdf9f2,_0x1b2453){return function(_0x44a49f){if(_0x44a49f){return _0x44a49f[_0x6e70('0x26')](_0xcdf9f2)[_0x6e70('0x27')](function(_0x4a0cfe){return _0x4a0cfe;});}return null;};}function removeEntity(_0x228350,_0x344b65){return function(_0x27b294){if(_0x27b294){return _0x27b294['destroy']()[_0x6e70('0x27')](function(){_0x228350[_0x6e70('0x1d')](0xcc)[_0x6e70('0x1e')]();});}};}function handleEntityNotFound(_0x50da2c,_0x10fc91){return function(_0x538b9c){if(!_0x538b9c){_0x50da2c['sendStatus'](0x194);}return _0x538b9c;};}function handleError(_0x4e97c7,_0x41e352){_0x41e352=_0x41e352||0x1f4;return function(_0x19c5ae){logger['error'](_0x19c5ae[_0x6e70('0x28')]);if(_0x19c5ae[_0x6e70('0x29')]){delete _0x19c5ae['name'];}_0x4e97c7[_0x6e70('0x1d')](_0x41e352)[_0x6e70('0x2a')](_0x19c5ae);};}exports[_0x6e70('0x2b')]=function(_0x4a67ac,_0x54a5fe){var _0x2c4d37={'raw':!![],'where':{'id':_0x4a67ac[_0x6e70('0x2c')]['id']}},_0x3af17f={};_0x3af17f[_0x6e70('0x2d')]=_[_0x6e70('0x2e')](db['ChatProactiveAction'][_0x6e70('0x2f')]);_0x3af17f[_0x6e70('0x30')]=_[_0x6e70('0x2e')](_0x4a67ac[_0x6e70('0x30')]);_0x3af17f[_0x6e70('0x31')]=_[_0x6e70('0x32')](_0x3af17f[_0x6e70('0x2d')],_0x3af17f[_0x6e70('0x30')]);_0x2c4d37[_0x6e70('0x33')]=_[_0x6e70('0x32')](_0x3af17f['model'],qs[_0x6e70('0x34')](_0x4a67ac['query'][_0x6e70('0x34')]));_0x2c4d37['attributes']=_0x2c4d37[_0x6e70('0x33')][_0x6e70('0x35')]?_0x2c4d37[_0x6e70('0x33')]:_0x3af17f['model'];if(_0x4a67ac[_0x6e70('0x30')][_0x6e70('0x36')]){_0x2c4d37['include']=[{'all':!![]}];}_0x2c4d37=_[_0x6e70('0x37')]({},_0x2c4d37,_0x4a67ac[_0x6e70('0x38')]);return db['ChatProactiveAction'][_0x6e70('0x39')](_0x2c4d37)[_0x6e70('0x27')](handleEntityNotFound(_0x54a5fe,null))[_0x6e70('0x27')](respondWithResult(_0x54a5fe,null))[_0x6e70('0x3a')](handleError(_0x54a5fe,null));};exports[_0x6e70('0x3b')]=function(_0x1e3e76,_0x44b19d){return db[_0x6e70('0x3c')][_0x6e70('0x3b')](_0x1e3e76[_0x6e70('0x3d')],{})['then'](respondWithResult(_0x44b19d,0xc9))[_0x6e70('0x3a')](handleError(_0x44b19d,null));};exports['update']=function(_0x23cd1a,_0x3222a2){if(_0x23cd1a[_0x6e70('0x3d')]['id']){delete _0x23cd1a[_0x6e70('0x3d')]['id'];}return db[_0x6e70('0x3c')][_0x6e70('0x39')]({'where':{'id':_0x23cd1a[_0x6e70('0x2c')]['id']}})[_0x6e70('0x27')](handleEntityNotFound(_0x3222a2,null))[_0x6e70('0x27')](saveUpdates(_0x23cd1a[_0x6e70('0x3d')],null))[_0x6e70('0x27')](respondWithResult(_0x3222a2,null))[_0x6e70('0x3a')](handleError(_0x3222a2,null));};exports[_0x6e70('0x3e')]=function(_0x501b53,_0x5446a2){return db['ChatProactiveAction'][_0x6e70('0x39')]({'where':{'id':_0x501b53[_0x6e70('0x2c')]['id']}})[_0x6e70('0x27')](handleEntityNotFound(_0x5446a2,null))[_0x6e70('0x27')](removeEntity(_0x5446a2,null))[_0x6e70('0x3a')](handleError(_0x5446a2,null));};
\ No newline at end of file
+var _0x0713=['update','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','end','json','count','offset','limit','status','set','Content-Range','apply','reject','save','then','destroy','error','stack','name','send','show','params','model','keys','ChatProactiveAction','rawAttributes','query','attributes','intersection','fields','includeAll','include','merge','options','find','catch','create','body'];(function(_0x342667,_0x55b8f3){var _0x40c277=function(_0x32693c){while(--_0x32693c){_0x342667['push'](_0x342667['shift']());}};_0x40c277(++_0x55b8f3);}(_0x0713,0x1ba));var _0x3071=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0713[_0x3dd15e];return _0x231fd0;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0x3071('0x0'));var zipdir=require(_0x3071('0x1'));var jsonpatch=require(_0x3071('0x2'));var rp=require(_0x3071('0x3'));var moment=require(_0x3071('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x3071('0x5'));var util=require(_0x3071('0x6'));var path=require(_0x3071('0x7'));var sox=require(_0x3071('0x8'));var csv=require(_0x3071('0x9'));var ejs=require(_0x3071('0xa'));var fs=require('fs');var _=require(_0x3071('0xb'));var squel=require(_0x3071('0xc'));var crypto=require(_0x3071('0xd'));var jsforce=require(_0x3071('0xe'));var deskjs=require(_0x3071('0xf'));var toCsv=require(_0x3071('0x9'));var querystring=require(_0x3071('0x10'));var Papa=require('papaparse');var Redis=require(_0x3071('0x11'));var authService=require(_0x3071('0x12'));var qs=require(_0x3071('0x13'));var as=require(_0x3071('0x14'));var hardwareService=require(_0x3071('0x15'));var logger=require('../../config/logger')(_0x3071('0x16'));var utils=require(_0x3071('0x17'));var config=require(_0x3071('0x18'));var db=require(_0x3071('0x19'))['db'];function respondWithStatusCode(_0xa0c1,_0x4a8cc7){_0x4a8cc7=_0x4a8cc7||0xcc;return function(_0x5330a8){if(_0x5330a8){return _0xa0c1[_0x3071('0x1a')](_0x4a8cc7);}return _0xa0c1['status'](_0x4a8cc7)[_0x3071('0x1b')]();};}function respondWithResult(_0x44fbae,_0x5d4883){_0x5d4883=_0x5d4883||0xc8;return function(_0x104e73){if(_0x104e73){return _0x44fbae['status'](_0x5d4883)[_0x3071('0x1c')](_0x104e73);}};}function respondWithFilteredResult(_0x45c93b,_0x1271d0){return function(_0x1f14e1){if(_0x1f14e1){var _0x1caa5d=_0x1f14e1[_0x3071('0x1d')],_0x2a6a4b=_0x1271d0[_0x3071('0x1e')],_0x157a47=_0x1271d0['offset']+_0x1271d0[_0x3071('0x1f')],_0x11bdc9;if(_0x157a47>=_0x1caa5d){_0x157a47=_0x1caa5d;_0x11bdc9=0xc8;}else{_0x11bdc9=0xce;}_0x45c93b[_0x3071('0x20')](_0x11bdc9);return _0x45c93b[_0x3071('0x21')](_0x3071('0x22'),_0x2a6a4b+'-'+_0x157a47+'/'+_0x1caa5d)[_0x3071('0x1c')](_0x1f14e1);}return null;};}function patchUpdates(_0x17aee2){return function(_0x105bbb){try{jsonpatch[_0x3071('0x23')](_0x105bbb,_0x17aee2,!![]);}catch(_0x502a16){return BPromise[_0x3071('0x24')](_0x502a16);}return _0x105bbb[_0x3071('0x25')]();};}function saveUpdates(_0xd3e23d,_0x56c267){return function(_0xb8f4e3){if(_0xb8f4e3){return _0xb8f4e3['update'](_0xd3e23d)[_0x3071('0x26')](function(_0x43128c){return _0x43128c;});}return null;};}function removeEntity(_0x3762d8,_0x457b57){return function(_0x33090c){if(_0x33090c){return _0x33090c[_0x3071('0x27')]()[_0x3071('0x26')](function(){_0x3762d8[_0x3071('0x20')](0xcc)['end']();});}};}function handleEntityNotFound(_0x481a51,_0x2ce48a){return function(_0xb05b1d){if(!_0xb05b1d){_0x481a51[_0x3071('0x1a')](0x194);}return _0xb05b1d;};}function handleError(_0x13df9f,_0x2793ef){_0x2793ef=_0x2793ef||0x1f4;return function(_0x44b45f){logger[_0x3071('0x28')](_0x44b45f[_0x3071('0x29')]);if(_0x44b45f[_0x3071('0x2a')]){delete _0x44b45f['name'];}_0x13df9f[_0x3071('0x20')](_0x2793ef)[_0x3071('0x2b')](_0x44b45f);};}exports[_0x3071('0x2c')]=function(_0x4d5c4b,_0x4fb1ca){var _0x28792d={'raw':!![],'where':{'id':_0x4d5c4b[_0x3071('0x2d')]['id']}},_0x163604={};_0x163604[_0x3071('0x2e')]=_[_0x3071('0x2f')](db[_0x3071('0x30')][_0x3071('0x31')]);_0x163604[_0x3071('0x32')]=_[_0x3071('0x2f')](_0x4d5c4b[_0x3071('0x32')]);_0x163604['filters']=_['intersection'](_0x163604[_0x3071('0x2e')],_0x163604[_0x3071('0x32')]);_0x28792d[_0x3071('0x33')]=_[_0x3071('0x34')](_0x163604[_0x3071('0x2e')],qs[_0x3071('0x35')](_0x4d5c4b[_0x3071('0x32')][_0x3071('0x35')]));_0x28792d['attributes']=_0x28792d['attributes']['length']?_0x28792d[_0x3071('0x33')]:_0x163604[_0x3071('0x2e')];if(_0x4d5c4b['query'][_0x3071('0x36')]){_0x28792d[_0x3071('0x37')]=[{'all':!![]}];}_0x28792d=_[_0x3071('0x38')]({},_0x28792d,_0x4d5c4b[_0x3071('0x39')]);return db['ChatProactiveAction'][_0x3071('0x3a')](_0x28792d)[_0x3071('0x26')](handleEntityNotFound(_0x4fb1ca,null))[_0x3071('0x26')](respondWithResult(_0x4fb1ca,null))[_0x3071('0x3b')](handleError(_0x4fb1ca,null));};exports[_0x3071('0x3c')]=function(_0x2068ce,_0x3c55c){return db[_0x3071('0x30')]['create'](_0x2068ce[_0x3071('0x3d')],{})['then'](respondWithResult(_0x3c55c,0xc9))['catch'](handleError(_0x3c55c,null));};exports[_0x3071('0x3e')]=function(_0xa3a7ae,_0x54d9c3){if(_0xa3a7ae[_0x3071('0x3d')]['id']){delete _0xa3a7ae[_0x3071('0x3d')]['id'];}return db[_0x3071('0x30')][_0x3071('0x3a')]({'where':{'id':_0xa3a7ae[_0x3071('0x2d')]['id']}})[_0x3071('0x26')](handleEntityNotFound(_0x54d9c3,null))['then'](saveUpdates(_0xa3a7ae[_0x3071('0x3d')],null))[_0x3071('0x26')](respondWithResult(_0x54d9c3,null))['catch'](handleError(_0x54d9c3,null));};exports[_0x3071('0x27')]=function(_0x5b1392,_0x28f855){return db[_0x3071('0x30')]['find']({'where':{'id':_0x5b1392['params']['id']}})[_0x3071('0x26')](handleEntityNotFound(_0x28f855,null))[_0x3071('0x26')](removeEntity(_0x28f855,null))[_0x3071('0x3b')](handleError(_0x28f855,null));};
\ No newline at end of file
diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js
index fc3a2e7..8f770f1 100644
--- a/server/api/chatProactiveAction/chatProactiveAction.model.js
+++ b/server/api/chatProactiveAction/chatProactiveAction.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4753=['../../config/logger','api','moment','path','rimraf','../../config/environment','exports','define','ChatProactiveAction','chat_proactive_actions','lodash'];(function(_0x50c619,_0x16a7e5){var _0x2aec50=function(_0x38ca82){while(--_0x38ca82){_0x50c619['push'](_0x50c619['shift']());}};_0x2aec50(++_0x16a7e5);}(_0x4753,0x16a));var _0x3475=function(_0x4651f2,_0x1bc574){_0x4651f2=_0x4651f2-0x0;var _0x11d828=_0x4753[_0x4651f2];return _0x11d828;};'use strict';var _=require(_0x3475('0x0'));var util=require('util');var logger=require(_0x3475('0x1'))(_0x3475('0x2'));var moment=require(_0x3475('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3475('0x4'));var rimraf=require(_0x3475('0x5'));var config=require(_0x3475('0x6'));var attributes=require('./chatProactiveAction.attributes');module[_0x3475('0x7')]=function(_0x4990b4,_0x5ad0a5){return _0x4990b4[_0x3475('0x8')](_0x3475('0x9'),attributes,{'tableName':_0x3475('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xf22e=['api','moment','bluebird','request-promise','../../config/environment','exports','define','ChatProactiveAction','chat_proactive_actions','../../config/logger'];(function(_0x449bc2,_0x5d1de9){var _0x27453a=function(_0x1ad6e3){while(--_0x1ad6e3){_0x449bc2['push'](_0x449bc2['shift']());}};_0x27453a(++_0x5d1de9);}(_0xf22e,0x1b7));var _0xef22=function(_0xffa3f5,_0x115c05){_0xffa3f5=_0xffa3f5-0x0;var _0x2b8cfb=_0xf22e[_0xffa3f5];return _0x2b8cfb;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xef22('0x0'))(_0xef22('0x1'));var moment=require(_0xef22('0x2'));var BPromise=require(_0xef22('0x3'));var rp=require(_0xef22('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xef22('0x5'));var attributes=require('./chatProactiveAction.attributes');module[_0xef22('0x6')]=function(_0x39f2c0,_0xeee062){return _0x39f2c0[_0xef22('0x7')](_0xef22('0x8'),attributes,{'tableName':_0xef22('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatProactiveAction/chatProactiveAction.rpc.js b/server/api/chatProactiveAction/chatProactiveAction.rpc.js
index 5a2295a..addd18e 100644
--- a/server/api/chatProactiveAction/chatProactiveAction.rpc.js
+++ b/server/api/chatProactiveAction/chatProactiveAction.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x75fe=['error','code','message','result','catch','util','moment','bluebird','ioredis','../../config/logger','rpc','jayson/promise','client','http','then','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','debug','ChatProactiveAction,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x75fe,0x11d));var _0xe75f=function(_0x3e98c3,_0x598349){_0x3e98c3=_0x3e98c3-0x0;var _0x5d750c=_0x75fe[_0x3e98c3];return _0x5d750c;};'use strict';var _=require('lodash');var util=require(_0xe75f('0x0'));var moment=require(_0xe75f('0x1'));var BPromise=require(_0xe75f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xe75f('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xe75f('0x4'))(_0xe75f('0x5'));var config=require('../../config/environment');var jayson=require(_0xe75f('0x6'));var client=jayson[_0xe75f('0x7')][_0xe75f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x2523cc,_0xc6a839,_0x6549f1){return new BPromise(function(_0x56e349,_0x20ab23){return client['request'](_0x2523cc,_0x6549f1)[_0xe75f('0x9')](function(_0x361934){logger['info'](_0xe75f('0xa'),_0xc6a839,_0xe75f('0xb'));logger[_0xe75f('0xc')](_0xe75f('0xd'),_0xc6a839,_0xe75f('0xb'),JSON[_0xe75f('0xe')](_0x361934));if(_0x361934[_0xe75f('0xf')]){if(_0x361934[_0xe75f('0xf')][_0xe75f('0x10')]===0x1f4){logger['error'](_0xe75f('0xa'),_0xc6a839,_0x361934['error'][_0xe75f('0x11')]);return _0x20ab23(_0x361934[_0xe75f('0xf')]['message']);}logger[_0xe75f('0xf')](_0xe75f('0xa'),_0xc6a839,_0x361934[_0xe75f('0xf')][_0xe75f('0x11')]);return _0x56e349(_0x361934[_0xe75f('0xf')]['message']);}else{logger['info'](_0xe75f('0xa'),_0xc6a839,'request\x20sent');_0x56e349(_0x361934[_0xe75f('0x12')][_0xe75f('0x11')]);}})[_0xe75f('0x13')](function(_0xc22c0b){logger[_0xe75f('0xf')]('ChatProactiveAction,\x20%s,\x20%s',_0xc6a839,_0xc22c0b);_0x20ab23(_0xc22c0b);});});}
\ No newline at end of file
+var _0x5835=['then','info','ChatProactiveAction,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x4546f9,_0x2fa4d6){var _0x3510fd=function(_0x31a947){while(--_0x31a947){_0x4546f9['push'](_0x4546f9['shift']());}};_0x3510fd(++_0x2fa4d6);}(_0x5835,0xfb));var _0x5583=function(_0x36102e,_0x43e9ad){_0x36102e=_0x36102e-0x0;var _0x5366b9=_0x5835[_0x36102e];return _0x5366b9;};'use strict';var _=require(_0x5583('0x0'));var util=require(_0x5583('0x1'));var moment=require('moment');var BPromise=require(_0x5583('0x2'));var rs=require(_0x5583('0x3'));var fs=require('fs');var Redis=require(_0x5583('0x4'));var db=require(_0x5583('0x5'))['db'];var utils=require(_0x5583('0x6'));var logger=require('../../config/logger')(_0x5583('0x7'));var config=require(_0x5583('0x8'));var jayson=require(_0x5583('0x9'));var client=jayson[_0x5583('0xa')][_0x5583('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x4e07bc,_0x8f222d,_0x561308){return new BPromise(function(_0x4223ca,_0x516846){return client[_0x5583('0xc')](_0x4e07bc,_0x561308)[_0x5583('0xd')](function(_0x459e5b){logger[_0x5583('0xe')](_0x5583('0xf'),_0x8f222d,_0x5583('0x10'));logger['debug']('ChatProactiveAction,\x20%s,\x20%s,\x20%s',_0x8f222d,_0x5583('0x10'),JSON['stringify'](_0x459e5b));if(_0x459e5b[_0x5583('0x11')]){if(_0x459e5b[_0x5583('0x11')][_0x5583('0x12')]===0x1f4){logger[_0x5583('0x11')](_0x5583('0xf'),_0x8f222d,_0x459e5b[_0x5583('0x11')][_0x5583('0x13')]);return _0x516846(_0x459e5b['error']['message']);}logger['error'](_0x5583('0xf'),_0x8f222d,_0x459e5b[_0x5583('0x11')][_0x5583('0x13')]);return _0x4223ca(_0x459e5b['error'][_0x5583('0x13')]);}else{logger['info'](_0x5583('0xf'),_0x8f222d,_0x5583('0x10'));_0x4223ca(_0x459e5b[_0x5583('0x14')][_0x5583('0x13')]);}})[_0x5583('0x15')](function(_0x40f869){logger[_0x5583('0x11')]('ChatProactiveAction,\x20%s,\x20%s',_0x8f222d,_0x40f869);_0x516846(_0x40f869);});});}
\ No newline at end of file
diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js
index e4c4bb5..8428c0c 100644
--- a/server/api/chatProactiveAction/index.js
+++ b/server/api/chatProactiveAction/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xca9a=['../../config/environment','./chatProactiveAction.controller','get','/:id','isAuthenticated','show','post','put','update','delete','exports','multer','util','path','express','Router','../../components/interaction/service'];(function(_0x48a184,_0x543a72){var _0x1aee29=function(_0x43d1d8){while(--_0x43d1d8){_0x48a184['push'](_0x48a184['shift']());}};_0x1aee29(++_0x543a72);}(_0xca9a,0x181));var _0xaca9=function(_0x2c887f,_0x22b378){_0x2c887f=_0x2c887f-0x0;var _0x4a18c8=_0xca9a[_0x2c887f];return _0x4a18c8;};'use strict';var multer=require(_0xaca9('0x0'));var util=require(_0xaca9('0x1'));var path=require(_0xaca9('0x2'));var timeout=require('connect-timeout');var express=require(_0xaca9('0x3'));var router=express[_0xaca9('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xaca9('0x5'));var config=require(_0xaca9('0x6'));var controller=require(_0xaca9('0x7'));router[_0xaca9('0x8')](_0xaca9('0x9'),auth[_0xaca9('0xa')](),controller[_0xaca9('0xb')]);router[_0xaca9('0xc')]('/',auth[_0xaca9('0xa')](),controller['create']);router[_0xaca9('0xd')](_0xaca9('0x9'),auth['isAuthenticated'](),controller[_0xaca9('0xe')]);router[_0xaca9('0xf')](_0xaca9('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0xaca9('0x10')]=router;
\ No newline at end of file
+var _0x3954=['/:id','post','isAuthenticated','create','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatProactiveAction.controller','get'];(function(_0xa60623,_0x2d4e4f){var _0x4a6487=function(_0xba6cbe){while(--_0xba6cbe){_0xa60623['push'](_0xa60623['shift']());}};_0x4a6487(++_0x2d4e4f);}(_0x3954,0x16d));var _0x4395=function(_0x2d7710,_0x153f6f){_0x2d7710=_0x2d7710-0x0;var _0x35d904=_0x3954[_0x2d7710];return _0x35d904;};'use strict';var multer=require(_0x4395('0x0'));var util=require(_0x4395('0x1'));var path=require('path');var timeout=require(_0x4395('0x2'));var express=require('express');var router=express[_0x4395('0x3')]();var auth=require(_0x4395('0x4'));var interaction=require(_0x4395('0x5'));var config=require(_0x4395('0x6'));var controller=require(_0x4395('0x7'));router[_0x4395('0x8')](_0x4395('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x4395('0xa')]('/',auth[_0x4395('0xb')](),controller[_0x4395('0xc')]);router['put'](_0x4395('0x9'),auth[_0x4395('0xb')](),controller[_0x4395('0xd')]);router[_0x4395('0xe')](_0x4395('0x9'),auth[_0x4395('0xb')](),controller[_0x4395('0xf')]);module[_0x4395('0x10')]=router;
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js
index c9c0095..505dea7 100644
--- a/server/api/chatQueue/chatQueue.attributes.js
+++ b/server/api/chatQueue/chatQueue.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x838e=['sequelize','exports','STRING','name','ENUM','beepall'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0x838e,0x102));var _0xe838=function(_0x5bb226,_0x25fbc0){_0x5bb226=_0x5bb226-0x0;var _0x161d69=_0x838e[_0x5bb226];return _0x161d69;};'use strict';var Sequelize=require(_0xe838('0x0'));module[_0xe838('0x1')]={'name':{'type':Sequelize[_0xe838('0x2')],'unique':_0xe838('0x3'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9\.\_]+$/i}},'description':{'type':Sequelize[_0xe838('0x2')]},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0xe838('0x4')]('rrmemory',_0xe838('0x5'),'roundrobin')}};
\ No newline at end of file
+var _0x3951=['name','INTEGER','ENUM','rrmemory','beepall','roundrobin','exports','STRING'];(function(_0x34efa6,_0x343fe2){var _0x469490=function(_0xc1d725){while(--_0xc1d725){_0x34efa6['push'](_0x34efa6['shift']());}};_0x469490(++_0x343fe2);}(_0x3951,0xf6));var _0x1395=function(_0x5eda4e,_0x40e530){_0x5eda4e=_0x5eda4e-0x0;var _0x22e9c6=_0x3951[_0x5eda4e];return _0x22e9c6;};'use strict';var Sequelize=require('sequelize');module[_0x1395('0x0')]={'name':{'type':Sequelize[_0x1395('0x1')],'unique':_0x1395('0x2'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9\.\_]+$/i}},'description':{'type':Sequelize[_0x1395('0x1')]},'timeout':{'type':Sequelize[_0x1395('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1395('0x4')](_0x1395('0x5'),_0x1395('0x6'),_0x1395('0x7'))}};
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js
index d59992f..f459053 100644
--- a/server/api/chatQueue/chatQueue.controller.js
+++ b/server/api/chatQueue/chatQueue.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1561=['emit','userChatQueue:remove','addAgents','omit','spread','isArray','getAgents','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','ejs','squel','crypto','jsforce','desk.js','to-csv','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../mysqldb','redis','localhost','./chatQueue.socket','client','http','test','Sequelize','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~!@#$%^&-_=+[{]}.','request','then','ChatQueue,\x20%s,\x20%s','request\x20sent','debug','ChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','sendStatus','status','end','json','offset','set','apply','save','update','get','UserProfileResource','destroy','name','send','map','ChatQueue','type','query','keys','filters','model','attributes','intersection','fields','limit','sort','where','pick','filter','merge','options','count','includeAll','include','findAll','rows','show','params','rawAttributes','length','create','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','ChatQueues','UserProfileSection','find','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','body','describe','getMembers','findOne','UserChatQueue','nolimit','order','ChatQueueId','User','agent','createdAt','format','%s/%s','chatPause','updatedAt','Team','getTeams','hasOwnProperty','online','interface','Agents','transaction','addTeams','each','findOrCreate','userChatQueue:save','removeTeams','ids','select','field','tq.TeamId','user_has_teams','ut.TeamId\x20=\x20tq.TeamId','ChatQueueId\x20=\x20?','clone','ut.UserId\x20=\x20?','push','QueryTypes','SELECT','every','TeamId','all','union','compact','value','sequelize','isEmpty','removeAgents','forEach'];(function(_0x43d0f2,_0x502fab){var _0x258cf2=function(_0x545f57){while(--_0x545f57){_0x43d0f2['push'](_0x43d0f2['shift']());}};_0x258cf2(++_0x502fab);}(_0x1561,0x1bd));var _0x1156=function(_0x4a96d2,_0x2ad5ee){_0x4a96d2=_0x4a96d2-0x0;var _0x354779=_0x1561[_0x4a96d2];return _0x354779;};'use strict';var pdf=require('html-pdf');var emlformat=require('eml-format');var rimraf=require(_0x1156('0x0'));var zipdir=require(_0x1156('0x1'));var jsonpatch=require(_0x1156('0x2'));var rp=require(_0x1156('0x3'));var moment=require(_0x1156('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x1156('0x5'));var util=require(_0x1156('0x6'));var path=require(_0x1156('0x7'));var sox=require(_0x1156('0x8'));var csv=require('to-csv');var ejs=require(_0x1156('0x9'));var fs=require('fs');var _=require('lodash');var squel=require(_0x1156('0xa'));var crypto=require(_0x1156('0xb'));var jsforce=require(_0x1156('0xc'));var deskjs=require(_0x1156('0xd'));var toCsv=require(_0x1156('0xe'));var querystring=require('querystring');var Papa=require(_0x1156('0xf'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x1156('0x10'));var as=require(_0x1156('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x1156('0x12'))('api');var utils=require(_0x1156('0x13'));var config=require('../../config/environment');var db=require(_0x1156('0x14'))['db'];config[_0x1156('0x15')]=_['defaults'](config['redis'],{'host':_0x1156('0x16'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0x1156('0x15')]));require(_0x1156('0x17'))['register'](socket);var jayson=require('jayson/promise');var client=jayson[_0x1156('0x18')][_0x1156('0x19')]({'port':0x232a});function checkPasswordPattern(_0x9673ef,_0x546990,_0x54b633){if(_0x54b633){var _0xb1b48b=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0xb1b48b[_0x1156('0x1a')](_0x546990)){return _0x9673ef;}else{throw new db[(_0x1156('0x1b'))][(_0x1156('0x1c'))](_0x1156('0x1d'));}}else{return _0x9673ef;}}function respondWithRpcPromise(_0x230b78,_0x2c1ff5,_0x6dd20,_0x2d820d){return new BPromise(function(_0x211e6b,_0x2582cb){var _0x4ab172=_0x2d820d||client;return _0x4ab172[_0x1156('0x1e')](_0x230b78,_0x6dd20)[_0x1156('0x1f')](function(_0x40eab4){logger['info'](_0x1156('0x20'),_0x2c1ff5,_0x1156('0x21'));logger[_0x1156('0x22')](_0x1156('0x23'),_0x2c1ff5,_0x1156('0x21'),JSON[_0x1156('0x24')](_0x40eab4));if(_0x40eab4[_0x1156('0x25')]){if(_0x40eab4[_0x1156('0x25')]['code']===0x1f4){logger[_0x1156('0x25')]('ChatQueue,\x20%s,\x20%s',_0x2c1ff5,_0x40eab4[_0x1156('0x25')][_0x1156('0x26')]);return _0x2582cb(_0x40eab4[_0x1156('0x25')]['message']);}logger[_0x1156('0x25')](_0x1156('0x20'),_0x2c1ff5,_0x40eab4[_0x1156('0x25')][_0x1156('0x26')]);return _0x211e6b(_0x40eab4[_0x1156('0x25')][_0x1156('0x26')]);}else{logger['info'](_0x1156('0x20'),_0x2c1ff5,_0x1156('0x21'));_0x211e6b(_0x40eab4[_0x1156('0x27')][_0x1156('0x26')]);}})[_0x1156('0x28')](function(_0x215978){logger[_0x1156('0x25')](_0x1156('0x20'),_0x2c1ff5,_0x215978);_0x2582cb(_0x215978);});});}function respondWithStatusCode(_0x195aef,_0x2826e9){_0x2826e9=_0x2826e9||0xcc;return function(_0x225502){if(_0x225502){return _0x195aef[_0x1156('0x29')](_0x2826e9);}return _0x195aef[_0x1156('0x2a')](_0x2826e9)[_0x1156('0x2b')]();};}function respondWithResult(_0x4f5c32,_0x415bb1){_0x415bb1=_0x415bb1||0xc8;return function(_0xca0e08){if(_0xca0e08){return _0x4f5c32['status'](_0x415bb1)[_0x1156('0x2c')](_0xca0e08);}};}function respondWithFilteredResult(_0x332924,_0x5db695){return function(_0x18f912){if(_0x18f912){var _0x3e4cc3=_0x18f912['count'],_0x5299d3=_0x5db695[_0x1156('0x2d')],_0x12a68e=_0x5db695[_0x1156('0x2d')]+_0x5db695['limit'],_0x265406;if(_0x12a68e>=_0x3e4cc3){_0x12a68e=_0x3e4cc3;_0x265406=0xc8;}else{_0x265406=0xce;}_0x332924[_0x1156('0x2a')](_0x265406);return _0x332924[_0x1156('0x2e')]('Content-Range',_0x5299d3+'-'+_0x12a68e+'/'+_0x3e4cc3)[_0x1156('0x2c')](_0x18f912);}return null;};}function patchUpdates(_0x275eb6){return function(_0x1e7558){try{jsonpatch[_0x1156('0x2f')](_0x1e7558,_0x275eb6,!![]);}catch(_0x56269e){return BPromise['reject'](_0x56269e);}return _0x1e7558[_0x1156('0x30')]();};}function saveUpdates(_0x9bbec1,_0x207d78){return function(_0x26a0bf){if(_0x26a0bf){return _0x26a0bf[_0x1156('0x31')](_0x9bbec1)[_0x1156('0x1f')](function(_0x3172f8){return _0x3172f8;});}return null;};}function removeEntity(_0x8a5098,_0x38ab3d){return function(_0x48d52d){if(_0x48d52d){return _0x48d52d['destroy']()[_0x1156('0x1f')](function(){var _0x48a527=_0x48d52d[_0x1156('0x32')]({'plain':!![]});var _0x96f2fd='ChatQueues';return db[_0x1156('0x33')][_0x1156('0x34')]({'where':{'type':_0x96f2fd,'resourceId':_0x48a527['id']}})[_0x1156('0x1f')](function(){return _0x48d52d;});})[_0x1156('0x1f')](function(){_0x8a5098['status'](0xcc)[_0x1156('0x2b')]();});}};}function handleEntityNotFound(_0xa68f3d,_0x493a43){return function(_0x129d43){if(!_0x129d43){_0xa68f3d[_0x1156('0x29')](0x194);}return _0x129d43;};}function handleError(_0x32ded9,_0x35b2f8){_0x35b2f8=_0x35b2f8||0x1f4;return function(_0x5dab6e){logger[_0x1156('0x25')](_0x5dab6e['stack']);if(_0x5dab6e['name']){delete _0x5dab6e[_0x1156('0x35')];}_0x32ded9['status'](_0x35b2f8)[_0x1156('0x36')](_0x5dab6e);};}exports['index']=function(_0x491a85,_0x405afb){var _0x9673d4={},_0x362eb1={},_0x20d50c={'count':0x0,'rows':[]};var _0x3d60f6=_[_0x1156('0x37')](db[_0x1156('0x38')]['rawAttributes'],function(_0x231ad6){return{'name':_0x231ad6['fieldName'],'type':_0x231ad6[_0x1156('0x39')]['key']};});_0x362eb1['model']=_[_0x1156('0x37')](_0x3d60f6,_0x1156('0x35'));_0x362eb1[_0x1156('0x3a')]=_[_0x1156('0x3b')](_0x491a85[_0x1156('0x3a')]);_0x362eb1[_0x1156('0x3c')]=_['intersection'](_0x362eb1[_0x1156('0x3d')],_0x362eb1[_0x1156('0x3a')]);_0x9673d4[_0x1156('0x3e')]=_[_0x1156('0x3f')](_0x362eb1[_0x1156('0x3d')],qs[_0x1156('0x40')](_0x491a85[_0x1156('0x3a')]['fields']));_0x9673d4['attributes']=_0x9673d4['attributes']['length']?_0x9673d4[_0x1156('0x3e')]:_0x362eb1[_0x1156('0x3d')];if(!_0x491a85['query']['hasOwnProperty']('nolimit')){_0x9673d4['limit']=qs['limit'](_0x491a85[_0x1156('0x3a')][_0x1156('0x41')]);_0x9673d4[_0x1156('0x2d')]=qs['offset'](_0x491a85[_0x1156('0x3a')]['offset']);}_0x9673d4['order']=qs[_0x1156('0x42')](_0x491a85[_0x1156('0x3a')][_0x1156('0x42')]);_0x9673d4[_0x1156('0x43')]=qs[_0x1156('0x3c')](_[_0x1156('0x44')](_0x491a85[_0x1156('0x3a')],_0x362eb1[_0x1156('0x3c')]));if(_0x491a85['query'][_0x1156('0x45')]){_0x9673d4[_0x1156('0x43')]=_['merge'](_0x9673d4[_0x1156('0x43')],{'$or':_[_0x1156('0x37')](_0x3d60f6,function(_0x58092e){if(_0x58092e[_0x1156('0x39')]!=='VIRTUAL'){var _0x32ef1d={};_0x32ef1d[_0x58092e['name']]={'$like':'%'+_0x491a85['query'][_0x1156('0x45')]+'%'};return _0x32ef1d;}})});}_0x9673d4=_[_0x1156('0x46')]({},_0x9673d4,_0x491a85[_0x1156('0x47')]);var _0x2147e1={'where':_0x9673d4[_0x1156('0x43')]};return db[_0x1156('0x38')]['count'](_0x2147e1)[_0x1156('0x1f')](function(_0x55a5cc){_0x20d50c[_0x1156('0x48')]=_0x55a5cc;if(_0x491a85[_0x1156('0x3a')][_0x1156('0x49')]){_0x9673d4[_0x1156('0x4a')]=[{'all':!![]}];}return db[_0x1156('0x38')][_0x1156('0x4b')](_0x9673d4);})[_0x1156('0x1f')](function(_0x280741){_0x20d50c[_0x1156('0x4c')]=_0x280741;return _0x20d50c;})['then'](respondWithFilteredResult(_0x405afb,_0x9673d4))[_0x1156('0x28')](handleError(_0x405afb,null));};exports[_0x1156('0x4d')]=function(_0x2f4d49,_0x333874){var _0x522740={'raw':!![],'where':{'id':_0x2f4d49[_0x1156('0x4e')]['id']}},_0x1317d2={};_0x1317d2[_0x1156('0x3d')]=_['keys'](db[_0x1156('0x38')][_0x1156('0x4f')]);_0x1317d2[_0x1156('0x3a')]=_[_0x1156('0x3b')](_0x2f4d49[_0x1156('0x3a')]);_0x1317d2[_0x1156('0x3c')]=_['intersection'](_0x1317d2[_0x1156('0x3d')],_0x1317d2['query']);_0x522740['attributes']=_[_0x1156('0x3f')](_0x1317d2[_0x1156('0x3d')],qs[_0x1156('0x40')](_0x2f4d49[_0x1156('0x3a')][_0x1156('0x40')]));_0x522740['attributes']=_0x522740['attributes'][_0x1156('0x50')]?_0x522740[_0x1156('0x3e')]:_0x1317d2['model'];if(_0x2f4d49[_0x1156('0x3a')][_0x1156('0x49')]){_0x522740[_0x1156('0x4a')]=[{'all':!![]}];}_0x522740=_[_0x1156('0x46')]({},_0x522740,_0x2f4d49[_0x1156('0x47')]);return db[_0x1156('0x38')]['find'](_0x522740)[_0x1156('0x1f')](handleEntityNotFound(_0x333874,null))[_0x1156('0x1f')](respondWithResult(_0x333874,null))[_0x1156('0x28')](handleError(_0x333874,null));};exports[_0x1156('0x51')]=function(_0x59de0d,_0x2b58cd){return db['ChatQueue']['create'](_0x59de0d['body'],{})[_0x1156('0x1f')](function(_0x1c1ed3){var _0x16ed77=_0x59de0d[_0x1156('0x52')][_0x1156('0x32')]({'plain':!![]});if(!_0x16ed77)throw new Error(_0x1156('0x53'));if(_0x16ed77[_0x1156('0x54')]==='user'){var _0x54f32a=_0x1c1ed3['get']({'plain':!![]});var _0x2b25a2=_0x1156('0x55');return db[_0x1156('0x56')][_0x1156('0x57')]({'where':{'name':_0x2b25a2,'userProfileId':_0x16ed77[_0x1156('0x58')]},'raw':!![]})[_0x1156('0x1f')](function(_0x3f3b60){if(_0x3f3b60&&_0x3f3b60['autoAssociation']===0x0){return db[_0x1156('0x33')][_0x1156('0x51')]({'name':_0x54f32a['name'],'resourceId':_0x54f32a['id'],'type':_0x3f3b60[_0x1156('0x35')],'sectionId':_0x3f3b60['id']},{})['then'](function(){return _0x1c1ed3;});}else{return _0x1c1ed3;}})[_0x1156('0x28')](function(_0x19a4a6){logger[_0x1156('0x25')](_0x1156('0x59'),_0x19a4a6);throw _0x19a4a6;});}return _0x1c1ed3;})['then'](respondWithResult(_0x2b58cd,0xc9))[_0x1156('0x28')](handleError(_0x2b58cd,null));};exports['update']=function(_0x4d049b,_0x56d2ca){if(_0x4d049b['body']['id']){delete _0x4d049b[_0x1156('0x5a')]['id'];}return db['ChatQueue'][_0x1156('0x57')]({'where':{'id':_0x4d049b[_0x1156('0x4e')]['id']}})[_0x1156('0x1f')](handleEntityNotFound(_0x56d2ca,null))[_0x1156('0x1f')](saveUpdates(_0x4d049b[_0x1156('0x5a')],null))['then'](respondWithResult(_0x56d2ca,null))['catch'](handleError(_0x56d2ca,null));};exports['destroy']=function(_0x5a64a6,_0x160107){return db['ChatQueue'][_0x1156('0x57')]({'where':{'id':_0x5a64a6[_0x1156('0x4e')]['id']}})[_0x1156('0x1f')](handleEntityNotFound(_0x160107,null))[_0x1156('0x1f')](removeEntity(_0x160107,null))[_0x1156('0x28')](handleError(_0x160107,null));};exports[_0x1156('0x5b')]=function(_0x1f9dd9,_0xc43a13){return db[_0x1156('0x38')]['describe']()[_0x1156('0x1f')](respondWithResult(_0xc43a13,null))[_0x1156('0x28')](handleError(_0xc43a13,null));};exports[_0x1156('0x5c')]=function(_0x1e38b2,_0x204e77,_0x392737){var _0x356b4c={'raw':!![],'where':{}},_0x369ce8={},_0x5d859d;return db['ChatQueue'][_0x1156('0x5d')]({'where':{'id':_0x1e38b2[_0x1156('0x4e')]['id']}})[_0x1156('0x1f')](handleEntityNotFound(_0x204e77,null))[_0x1156('0x1f')](function(_0x32c7fd){if(_0x32c7fd){_0x5d859d=_0x32c7fd[_0x1156('0x32')]({'plain':!![]});_0x369ce8[_0x1156('0x3d')]=_[_0x1156('0x3b')](db[_0x1156('0x5e')]['rawAttributes']);_0x369ce8[_0x1156('0x3a')]=_[_0x1156('0x3b')](_0x1e38b2[_0x1156('0x3a')]);_0x369ce8['filters']=_[_0x1156('0x3f')](_0x369ce8[_0x1156('0x3d')],_0x369ce8[_0x1156('0x3a')]);_0x356b4c[_0x1156('0x3e')]=_[_0x1156('0x3f')](_0x369ce8[_0x1156('0x3d')],qs[_0x1156('0x40')](_0x1e38b2[_0x1156('0x3a')]['fields']));_0x356b4c['attributes']=_0x356b4c['attributes'][_0x1156('0x50')]?_0x356b4c[_0x1156('0x3e')]:_0x369ce8[_0x1156('0x3d')];if(!_0x1e38b2['query']['hasOwnProperty'](_0x1156('0x5f'))){_0x356b4c[_0x1156('0x41')]=qs['limit'](_0x1e38b2[_0x1156('0x3a')][_0x1156('0x41')]);_0x356b4c[_0x1156('0x2d')]=qs['offset'](_0x1e38b2[_0x1156('0x3a')]['offset']);}_0x356b4c[_0x1156('0x60')]=qs[_0x1156('0x42')](_0x1e38b2[_0x1156('0x3a')][_0x1156('0x42')]);_0x356b4c[_0x1156('0x43')]=qs[_0x1156('0x3c')](_[_0x1156('0x44')](_0x1e38b2[_0x1156('0x3a')],_0x369ce8[_0x1156('0x3c')]));_0x356b4c[_0x1156('0x43')][_0x1156('0x61')]=_0x32c7fd['id'];if(_0x1e38b2['query'][_0x1156('0x45')]){_0x356b4c['where']=_[_0x1156('0x46')](_0x356b4c[_0x1156('0x43')],{'$or':_[_0x1156('0x37')](_0x356b4c[_0x1156('0x3e')],function(_0x9c1800){var _0x3e5473={};_0x3e5473[_0x9c1800]={'$like':'%'+_0x1e38b2[_0x1156('0x3a')][_0x1156('0x45')]+'%'};return _0x3e5473;})});}_0x356b4c=_[_0x1156('0x46')]({},_0x356b4c,_0x1e38b2[_0x1156('0x47')]);return db[_0x1156('0x5e')][_0x1156('0x4b')](_0x356b4c);}})[_0x1156('0x1f')](function(_0x56db0d){if(_0x56db0d){return db[_0x1156('0x62')]['findAndCountAll']({'where':{'id':_[_0x1156('0x37')](_0x56db0d,'UserId'),'role':_0x1156('0x63')},'attributes':['id',_0x1156('0x35'),'chatPause','updatedAt',_0x1156('0x64')]});}})[_0x1156('0x1f')](function(_0x645eb){if(_0x645eb){return{'count':_0x645eb[_0x1156('0x48')],'rows':_[_0x1156('0x37')](_0x645eb[_0x1156('0x4c')],function(_0x37c98f){return{'membername':_0x37c98f['name'],'UserId':_0x37c98f['id'],'queue_name':_0x5d859d[_0x1156('0x35')],'ChatQueueId':_0x5d859d['id'],'interface':util[_0x1156('0x65')](_0x1156('0x66'),'SIP',_0x37c98f[_0x1156('0x35')]),'penalty':0x0,'paused':_0x37c98f[_0x1156('0x67')],'createdAt':_0x37c98f[_0x1156('0x64')],'updatedAt':_0x37c98f[_0x1156('0x68')]};})};}else{return{'count':0x0,'rows':[]};}})[_0x1156('0x1f')](respondWithFilteredResult(_0x204e77,_0x356b4c))[_0x1156('0x28')](handleError(_0x204e77,null));};exports['getTeams']=function(_0x570495,_0x49c142,_0x5afecd){var _0x243750={};var _0x1dbf64={};var _0x167fbf;var _0x140556;return db[_0x1156('0x38')][_0x1156('0x5d')]({'where':{'id':_0x570495['params']['id']}})[_0x1156('0x1f')](handleEntityNotFound(_0x49c142,null))['then'](function(_0x2f4924){if(_0x2f4924){_0x167fbf=_0x2f4924;_0x1dbf64[_0x1156('0x3d')]=_[_0x1156('0x3b')](db[_0x1156('0x69')][_0x1156('0x4f')]);_0x1dbf64[_0x1156('0x3a')]=_['keys'](_0x570495['query']);_0x1dbf64[_0x1156('0x3c')]=_[_0x1156('0x3f')](_0x1dbf64[_0x1156('0x3d')],_0x1dbf64[_0x1156('0x3a')]);_0x243750[_0x1156('0x3e')]=_[_0x1156('0x3f')](_0x1dbf64[_0x1156('0x3d')],qs['fields'](_0x570495[_0x1156('0x3a')]['fields']));_0x243750['attributes']=_0x243750[_0x1156('0x3e')][_0x1156('0x50')]?_0x243750[_0x1156('0x3e')]:_0x1dbf64['model'];_0x243750[_0x1156('0x60')]=qs['sort'](_0x570495[_0x1156('0x3a')][_0x1156('0x42')]);_0x243750[_0x1156('0x43')]=qs[_0x1156('0x3c')](_[_0x1156('0x44')](_0x570495['query'],_0x1dbf64[_0x1156('0x3c')]));if(_0x570495[_0x1156('0x3a')][_0x1156('0x45')]){_0x243750['where']=_[_0x1156('0x46')](_0x243750[_0x1156('0x43')],{'$or':_[_0x1156('0x37')](_0x243750[_0x1156('0x3e')],function(_0x171897){var _0x3f57da={};_0x3f57da[_0x171897]={'$like':'%'+_0x570495[_0x1156('0x3a')][_0x1156('0x45')]+'%'};return _0x3f57da;})});}_0x243750=_[_0x1156('0x46')]({},_0x243750,_0x570495[_0x1156('0x47')]);return _0x167fbf[_0x1156('0x6a')](_0x243750);}})[_0x1156('0x1f')](function(_0x44fddb){if(_0x44fddb){_0x140556=_0x44fddb[_0x1156('0x50')];if(!_0x570495[_0x1156('0x3a')][_0x1156('0x6b')]('nolimit')){_0x243750['limit']=qs[_0x1156('0x41')](_0x570495[_0x1156('0x3a')][_0x1156('0x41')]);_0x243750[_0x1156('0x2d')]=qs['offset'](_0x570495['query'][_0x1156('0x2d')]);}return _0x167fbf[_0x1156('0x6a')](_0x243750);}})[_0x1156('0x1f')](function(_0x5530c2){if(_0x5530c2){return _0x5530c2?{'count':_0x140556,'rows':_0x5530c2}:null;}})[_0x1156('0x1f')](respondWithResult(_0x49c142,null))[_0x1156('0x28')](handleError(_0x49c142,null));};exports['addTeams']=function(_0xf6d283,_0x181ad7,_0x4ded65){var _0x589f3c=_0xf6d283[_0x1156('0x5a')]['ids'];return db[_0x1156('0x69')][_0x1156('0x4b')]({'where':{'id':_0x589f3c},'attributes':['id'],'include':[{'model':db[_0x1156('0x62')],'as':'Agents','attributes':['id',_0x1156('0x35'),_0x1156('0x6c'),'voicePause',_0x1156('0x6d')],'raw':!![]}]})['then'](function(_0x2b6471){if(_0x2b6471){var _0x57fd0a=_['flatMap'](_0x2b6471,function(_0x4608a5){var _0x4ab871=_0x4608a5[_0x1156('0x32')]({'plain':!![]});return _0x4ab871[_0x1156('0x6e')];});return db[_0x1156('0x38')]['find']({'where':{'id':_0xf6d283['params']['id']}})[_0x1156('0x1f')](function(_0x1b69f8){return db['sequelize'][_0x1156('0x6f')](function(_0x449d28){return _0x1b69f8[_0x1156('0x70')](_0x589f3c,{'transaction':_0x449d28})['then'](function(){return BPromise[_0x1156('0x71')](_0x57fd0a,function(_0x44cfc5){return db['UserChatQueue'][_0x1156('0x72')]({'where':{'UserId':_0x44cfc5['id'],'ChatQueueId':_0xf6d283[_0x1156('0x4e')]['id']},'transaction':_0x449d28});});})[_0x1156('0x1f')](function(){_0x57fd0a['forEach'](function(_0x5c9531){socket['emit'](_0x1156('0x73'),{'UserId':_0x5c9531['id'],'ChatQueueId':_0x1b69f8['id']});});});});});}})[_0x1156('0x1f')](respondWithStatusCode(_0x181ad7,null))[_0x1156('0x28')](handleError(_0x181ad7,null));};exports[_0x1156('0x74')]=function(_0x3a8c04,_0x287fe7,_0x55f93f){return db[_0x1156('0x69')][_0x1156('0x4b')]({'where':{'id':_0x3a8c04[_0x1156('0x3a')][_0x1156('0x75')]},'attributes':['id'],'include':[{'model':db[_0x1156('0x62')],'as':_0x1156('0x6e'),'attributes':['id'],'raw':!![]}]})[_0x1156('0x1f')](handleEntityNotFound(_0x287fe7,null))[_0x1156('0x1f')](function(_0x506d17){var _0xc4a316=_[_0x1156('0x37')](_0x506d17,'id');var _0x42071d=[];var _0x157fb4=[];var _0x2daebb=squel[_0x1156('0x76')]();_0x2daebb[_0x1156('0x77')](_0x1156('0x78'))['from']('team_has_chat_queues','tq')['join'](_0x1156('0x79'),'ut',_0x1156('0x7a'))[_0x1156('0x43')](_0x1156('0x7b'),_0x3a8c04['params']['id']);for(var _0x942cbd=0x0;_0x942cbd<_0x506d17['length'];_0x942cbd+=0x1){let _0x27a41d=_0x506d17[_0x942cbd];for(var _0x4f74b5=0x0;_0x4f74b5<_0x27a41d[_0x1156('0x6e')][_0x1156('0x50')];_0x4f74b5+=0x1){let _0x1398a8=_0x27a41d['Agents'][_0x4f74b5];var _0x205486=_0x2daebb[_0x1156('0x7c')]();_0x205486['where'](_0x1156('0x7d'),_0x1398a8['id']);_0x157fb4[_0x1156('0x7e')](db['sequelize'][_0x1156('0x3a')](_0x205486['toString'](),{'type':db['sequelize'][_0x1156('0x7f')][_0x1156('0x80')]})[_0x1156('0x1f')](function(_0x3a47a4){if(_0x3a47a4[_0x1156('0x50')]===0x1){return _0x1398a8['id'];}else{var _0x3ec41a=_[_0x1156('0x81')](_[_0x1156('0x37')](_0x3a47a4,_0x1156('0x82')),function(_0x1f94f7){return _['includes'](_0xc4a316,_0x1f94f7);});if(_0x3ec41a){return _0x1398a8['id'];}}}));}}return BPromise[_0x1156('0x83')](_0x157fb4)['then'](function(_0x2c66c7){_0x42071d=_(_0x42071d)[_0x1156('0x84')](_0x2c66c7)[_0x1156('0x85')]()[_0x1156('0x86')]();return db[_0x1156('0x38')][_0x1156('0x57')]({'where':{'id':_0x3a8c04['params']['id']}})[_0x1156('0x1f')](function(_0x682a63){return db[_0x1156('0x87')]['transaction'](function(_0xf9c4da){return _0x682a63['removeTeams'](_0x3a8c04['query']['ids'],{'transaction':_0xf9c4da})[_0x1156('0x1f')](function(){if(!_[_0x1156('0x88')](_0x42071d)){return _0x682a63[_0x1156('0x89')](_0x42071d,{'transaction':_0xf9c4da});}})['then'](function(){_0x42071d[_0x1156('0x8a')](function(_0x5045d2){socket[_0x1156('0x8b')](_0x1156('0x8c'),{'UserId':_0x5045d2,'ChatQueueId':_0x682a63['id']});});});});});});})[_0x1156('0x1f')](respondWithStatusCode(_0x287fe7,null))[_0x1156('0x28')](handleError(_0x287fe7,null));};exports[_0x1156('0x8d')]=function(_0x4a7bca,_0x7d904d,_0x56579e){return db[_0x1156('0x38')][_0x1156('0x57')]({'where':{'id':_0x4a7bca['params']['id']}})['then'](handleEntityNotFound(_0x7d904d,null))[_0x1156('0x1f')](function(_0x5d6452){if(_0x5d6452){return _0x5d6452[_0x1156('0x8d')](_0x4a7bca[_0x1156('0x5a')][_0x1156('0x75')],_[_0x1156('0x8e')](_0x4a7bca[_0x1156('0x5a')],[_0x1156('0x75'),'id'])||{})[_0x1156('0x8f')](function(_0x1215cb){for(var _0x2dd6ab=0x0;_0x2dd6ab<_0x4a7bca['body'][_0x1156('0x75')][_0x1156('0x50')];_0x2dd6ab+=0x1){socket['emit'](_0x1156('0x73'),{'UserId':_0x4a7bca[_0x1156('0x5a')][_0x1156('0x75')][_0x2dd6ab],'ChatQueueId':_0x4a7bca[_0x1156('0x4e')]['id']});}return _0x1215cb;});}})[_0x1156('0x1f')](respondWithResult(_0x7d904d,null))[_0x1156('0x28')](handleError(_0x7d904d,null));};exports[_0x1156('0x89')]=function(_0x5e5789,_0x42439a,_0x32c46f){return db[_0x1156('0x38')][_0x1156('0x57')]({'where':{'id':_0x5e5789[_0x1156('0x4e')]['id']}})[_0x1156('0x1f')](handleEntityNotFound(_0x42439a,null))[_0x1156('0x1f')](function(_0x2e4d9b){if(_0x2e4d9b){return _0x2e4d9b['removeAgents'](_0x5e5789[_0x1156('0x3a')][_0x1156('0x75')])[_0x1156('0x1f')](function(){if(_[_0x1156('0x90')](_0x5e5789['query'][_0x1156('0x75')])){for(var _0x37400=0x0;_0x37400<_0x5e5789[_0x1156('0x3a')][_0x1156('0x75')][_0x1156('0x50')];_0x37400+=0x1){socket[_0x1156('0x8b')](_0x1156('0x8c'),{'UserId':Number(_0x5e5789[_0x1156('0x3a')]['ids'][_0x37400]),'ChatQueueId':Number(_0x5e5789[_0x1156('0x4e')]['id'])});}}else{socket[_0x1156('0x8b')](_0x1156('0x8c'),{'UserId':Number(_0x5e5789[_0x1156('0x3a')][_0x1156('0x75')]),'ChatQueueId':Number(_0x5e5789['params']['id'])});}});}})[_0x1156('0x1f')](respondWithStatusCode(_0x42439a,null))[_0x1156('0x28')](handleError(_0x42439a,null));};exports[_0x1156('0x91')]=function(_0x2a65dc,_0x5ee072,_0x2552f0){var _0x51ba08={};var _0x219620={};var _0x1ffe96;var _0x5f2e25;return db[_0x1156('0x38')][_0x1156('0x5d')]({'where':{'id':_0x2a65dc[_0x1156('0x4e')]['id']}})['then'](handleEntityNotFound(_0x5ee072,null))['then'](function(_0x1ada43){if(_0x1ada43){_0x1ffe96=_0x1ada43;_0x219620[_0x1156('0x3d')]=_[_0x1156('0x3b')](db['User'][_0x1156('0x4f')]);_0x219620[_0x1156('0x3a')]=_[_0x1156('0x3b')](_0x2a65dc[_0x1156('0x3a')]);_0x219620[_0x1156('0x3c')]=_[_0x1156('0x3f')](_0x219620[_0x1156('0x3d')],_0x219620[_0x1156('0x3a')]);_0x51ba08[_0x1156('0x3e')]=_['intersection'](_0x219620[_0x1156('0x3d')],qs[_0x1156('0x40')](_0x2a65dc[_0x1156('0x3a')]['fields']));_0x51ba08[_0x1156('0x3e')]=_0x51ba08[_0x1156('0x3e')]['length']?_0x51ba08[_0x1156('0x3e')]:_0x219620['model'];_0x51ba08[_0x1156('0x60')]=qs[_0x1156('0x42')](_0x2a65dc[_0x1156('0x3a')][_0x1156('0x42')]);_0x51ba08[_0x1156('0x43')]=qs[_0x1156('0x3c')](_['pick'](_0x2a65dc[_0x1156('0x3a')],_0x219620[_0x1156('0x3c')]));if(_0x2a65dc['query'][_0x1156('0x45')]){_0x51ba08[_0x1156('0x43')]=_['merge'](_0x51ba08[_0x1156('0x43')],{'$or':_[_0x1156('0x37')](_0x51ba08[_0x1156('0x3e')],function(_0xc1a9c){var _0x119a25={};_0x119a25[_0xc1a9c]={'$like':'%'+_0x2a65dc['query'][_0x1156('0x45')]+'%'};return _0x119a25;})});}_0x51ba08=_[_0x1156('0x46')]({},_0x51ba08,_0x2a65dc[_0x1156('0x47')]);return _0x1ffe96['getAgents'](_0x51ba08);}})['then'](function(_0x466571){if(_0x466571){_0x5f2e25=_0x466571[_0x1156('0x50')];if(!_0x2a65dc[_0x1156('0x3a')][_0x1156('0x6b')](_0x1156('0x5f'))){_0x51ba08[_0x1156('0x41')]=qs[_0x1156('0x41')](_0x2a65dc['query']['limit']);_0x51ba08[_0x1156('0x2d')]=qs[_0x1156('0x2d')](_0x2a65dc['query'][_0x1156('0x2d')]);}return _0x1ffe96[_0x1156('0x91')](_0x51ba08);}})['then'](function(_0x1aa2fd){if(_0x1aa2fd){return _0x1aa2fd?{'count':_0x5f2e25,'rows':_0x1aa2fd}:null;}})['then'](respondWithResult(_0x5ee072,null))[_0x1156('0x28')](handleError(_0x5ee072,null));};
\ No newline at end of file
+var _0xafb9=['apply','reject','save','then','UserProfileResource','destroy','stack','name','send','index','ChatQueue','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','sort','pick','filter','where','merge','options','include','findAll','show','params','includeAll','find','create','user','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','ChatQueues','UserProfileSection','userProfileId','autoAssociation','update','body','describe','getMembers','order','map','User','findAndCountAll','UserId','agent','chatPause','updatedAt','createdAt','rows','format','%s/%s','SIP','getTeams','findOne','addTeams','ids','Agents','online','voicePause','interface','flatMap','sequelize','transaction','each','UserChatQueue','findOrCreate','forEach','emit','userChatQueue:save','removeTeams','Team','select','field','from','team_has_chat_queues','join','user_has_teams','ut.TeamId\x20=\x20tq.TeamId','clone','push','toString','QueryTypes','SELECT','TeamId','includes','union','compact','value','removeAgents','userChatQueue:remove','addAgents','omit','spread','getAgents','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','sox','ejs','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','redis','defaults','localhost','socket.io-emitter','./chatQueue.socket','client','http','test','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~!@#$%^&-_=+[{]}.','request','info','ChatQueue,\x20%s,\x20%s','request\x20sent','debug','ChatQueue,\x20%s,\x20%s,\x20%s','stringify','code','error','message','result','catch','sendStatus','status','end','count','offset','limit','set','Content-Range','json'];(function(_0x4b9c42,_0x31b2ec){var _0x41811b=function(_0x54feb2){while(--_0x54feb2){_0x4b9c42['push'](_0x4b9c42['shift']());}};_0x41811b(++_0x31b2ec);}(_0xafb9,0x68));var _0x9afb=function(_0x4f853a,_0x3a8c9f){_0x4f853a=_0x4f853a-0x0;var _0x59589b=_0xafb9[_0x4f853a];return _0x59589b;};'use strict';var pdf=require(_0x9afb('0x0'));var emlformat=require(_0x9afb('0x1'));var rimraf=require(_0x9afb('0x2'));var zipdir=require(_0x9afb('0x3'));var jsonpatch=require(_0x9afb('0x4'));var rp=require(_0x9afb('0x5'));var moment=require(_0x9afb('0x6'));var BPromise=require(_0x9afb('0x7'));var Mustache=require(_0x9afb('0x8'));var util=require('util');var path=require('path');var sox=require(_0x9afb('0x9'));var csv=require('to-csv');var ejs=require(_0x9afb('0xa'));var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x9afb('0xb'));var jsforce=require(_0x9afb('0xc'));var deskjs=require(_0x9afb('0xd'));var toCsv=require('to-csv');var querystring=require(_0x9afb('0xe'));var Papa=require(_0x9afb('0xf'));var Redis=require(_0x9afb('0x10'));var authService=require(_0x9afb('0x11'));var qs=require(_0x9afb('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x9afb('0x13'))(_0x9afb('0x14'));var utils=require(_0x9afb('0x15'));var config=require(_0x9afb('0x16'));var db=require(_0x9afb('0x17'))['db'];config[_0x9afb('0x18')]=_[_0x9afb('0x19')](config[_0x9afb('0x18')],{'host':_0x9afb('0x1a'),'port':0x18eb});var socket=require(_0x9afb('0x1b'))(new Redis(config['redis']));require(_0x9afb('0x1c'))['register'](socket);var jayson=require('jayson/promise');var client=jayson[_0x9afb('0x1d')][_0x9afb('0x1e')]({'port':0x232a});function checkPasswordPattern(_0x3c8d2e,_0x2d664d,_0x46b16f){if(_0x46b16f){var _0x39cdf1=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x39cdf1[_0x9afb('0x1f')](_0x2d664d)){return _0x3c8d2e;}else{throw new db['Sequelize'][(_0x9afb('0x20'))](_0x9afb('0x21'));}}else{return _0x3c8d2e;}}function respondWithRpcPromise(_0x23b906,_0x190cb8,_0x223aef,_0x508433){return new BPromise(function(_0x201ff4,_0x50a7e4){var _0x3fdb34=_0x508433||client;return _0x3fdb34[_0x9afb('0x22')](_0x23b906,_0x223aef)['then'](function(_0x4a1c74){logger[_0x9afb('0x23')](_0x9afb('0x24'),_0x190cb8,_0x9afb('0x25'));logger[_0x9afb('0x26')](_0x9afb('0x27'),_0x190cb8,'request\x20sent',JSON[_0x9afb('0x28')](_0x4a1c74));if(_0x4a1c74['error']){if(_0x4a1c74['error'][_0x9afb('0x29')]===0x1f4){logger[_0x9afb('0x2a')](_0x9afb('0x24'),_0x190cb8,_0x4a1c74[_0x9afb('0x2a')]['message']);return _0x50a7e4(_0x4a1c74[_0x9afb('0x2a')][_0x9afb('0x2b')]);}logger['error']('ChatQueue,\x20%s,\x20%s',_0x190cb8,_0x4a1c74['error'][_0x9afb('0x2b')]);return _0x201ff4(_0x4a1c74['error'][_0x9afb('0x2b')]);}else{logger[_0x9afb('0x23')]('ChatQueue,\x20%s,\x20%s',_0x190cb8,_0x9afb('0x25'));_0x201ff4(_0x4a1c74[_0x9afb('0x2c')][_0x9afb('0x2b')]);}})[_0x9afb('0x2d')](function(_0x530fbe){logger[_0x9afb('0x2a')]('ChatQueue,\x20%s,\x20%s',_0x190cb8,_0x530fbe);_0x50a7e4(_0x530fbe);});});}function respondWithStatusCode(_0x29e092,_0x4ad975){_0x4ad975=_0x4ad975||0xcc;return function(_0x5692fa){if(_0x5692fa){return _0x29e092[_0x9afb('0x2e')](_0x4ad975);}return _0x29e092[_0x9afb('0x2f')](_0x4ad975)[_0x9afb('0x30')]();};}function respondWithResult(_0x13a33e,_0x119e04){_0x119e04=_0x119e04||0xc8;return function(_0x3e3f57){if(_0x3e3f57){return _0x13a33e[_0x9afb('0x2f')](_0x119e04)['json'](_0x3e3f57);}};}function respondWithFilteredResult(_0x494ef8,_0x1cc791){return function(_0x433fc1){if(_0x433fc1){var _0x503bf7=_0x433fc1[_0x9afb('0x31')],_0x1d0bed=_0x1cc791[_0x9afb('0x32')],_0x2f388c=_0x1cc791[_0x9afb('0x32')]+_0x1cc791[_0x9afb('0x33')],_0x5560bd;if(_0x2f388c>=_0x503bf7){_0x2f388c=_0x503bf7;_0x5560bd=0xc8;}else{_0x5560bd=0xce;}_0x494ef8[_0x9afb('0x2f')](_0x5560bd);return _0x494ef8[_0x9afb('0x34')](_0x9afb('0x35'),_0x1d0bed+'-'+_0x2f388c+'/'+_0x503bf7)[_0x9afb('0x36')](_0x433fc1);}return null;};}function patchUpdates(_0x57fcc5){return function(_0x488a35){try{jsonpatch[_0x9afb('0x37')](_0x488a35,_0x57fcc5,!![]);}catch(_0x1e377c){return BPromise[_0x9afb('0x38')](_0x1e377c);}return _0x488a35[_0x9afb('0x39')]();};}function saveUpdates(_0x1a8d78,_0x313816){return function(_0x2f92e4){if(_0x2f92e4){return _0x2f92e4['update'](_0x1a8d78)['then'](function(_0x67d63a){return _0x67d63a;});}return null;};}function removeEntity(_0x18c03,_0x559a52){return function(_0x290112){if(_0x290112){return _0x290112['destroy']()[_0x9afb('0x3a')](function(){var _0xc59d55=_0x290112['get']({'plain':!![]});var _0x2ea8ff='ChatQueues';return db[_0x9afb('0x3b')][_0x9afb('0x3c')]({'where':{'type':_0x2ea8ff,'resourceId':_0xc59d55['id']}})[_0x9afb('0x3a')](function(){return _0x290112;});})[_0x9afb('0x3a')](function(){_0x18c03[_0x9afb('0x2f')](0xcc)[_0x9afb('0x30')]();});}};}function handleEntityNotFound(_0x19227f,_0x334c2b){return function(_0x5531b7){if(!_0x5531b7){_0x19227f[_0x9afb('0x2e')](0x194);}return _0x5531b7;};}function handleError(_0x52748b,_0x44b2d1){_0x44b2d1=_0x44b2d1||0x1f4;return function(_0x6ac20f){logger[_0x9afb('0x2a')](_0x6ac20f[_0x9afb('0x3d')]);if(_0x6ac20f[_0x9afb('0x3e')]){delete _0x6ac20f[_0x9afb('0x3e')];}_0x52748b[_0x9afb('0x2f')](_0x44b2d1)[_0x9afb('0x3f')](_0x6ac20f);};}exports[_0x9afb('0x40')]=function(_0x4d16ba,_0x26de3e){var _0x56f8d9={},_0x1b5db0={},_0xc95d27={'count':0x0,'rows':[]};var _0x1cce9c=_['map'](db[_0x9afb('0x41')][_0x9afb('0x42')],function(_0x318746){return{'name':_0x318746[_0x9afb('0x43')],'type':_0x318746[_0x9afb('0x44')][_0x9afb('0x45')]};});_0x1b5db0[_0x9afb('0x46')]=_['map'](_0x1cce9c,_0x9afb('0x3e'));_0x1b5db0[_0x9afb('0x47')]=_[_0x9afb('0x48')](_0x4d16ba[_0x9afb('0x47')]);_0x1b5db0[_0x9afb('0x49')]=_[_0x9afb('0x4a')](_0x1b5db0[_0x9afb('0x46')],_0x1b5db0[_0x9afb('0x47')]);_0x56f8d9['attributes']=_[_0x9afb('0x4a')](_0x1b5db0['model'],qs['fields'](_0x4d16ba['query'][_0x9afb('0x4b')]));_0x56f8d9[_0x9afb('0x4c')]=_0x56f8d9['attributes'][_0x9afb('0x4d')]?_0x56f8d9[_0x9afb('0x4c')]:_0x1b5db0[_0x9afb('0x46')];if(!_0x4d16ba[_0x9afb('0x47')][_0x9afb('0x4e')](_0x9afb('0x4f'))){_0x56f8d9[_0x9afb('0x33')]=qs[_0x9afb('0x33')](_0x4d16ba[_0x9afb('0x47')]['limit']);_0x56f8d9[_0x9afb('0x32')]=qs[_0x9afb('0x32')](_0x4d16ba[_0x9afb('0x47')][_0x9afb('0x32')]);}_0x56f8d9['order']=qs[_0x9afb('0x50')](_0x4d16ba[_0x9afb('0x47')][_0x9afb('0x50')]);_0x56f8d9['where']=qs[_0x9afb('0x49')](_[_0x9afb('0x51')](_0x4d16ba[_0x9afb('0x47')],_0x1b5db0[_0x9afb('0x49')]));if(_0x4d16ba[_0x9afb('0x47')][_0x9afb('0x52')]){_0x56f8d9[_0x9afb('0x53')]=_['merge'](_0x56f8d9['where'],{'$or':_['map'](_0x1cce9c,function(_0x414645){if(_0x414645[_0x9afb('0x44')]!=='VIRTUAL'){var _0x20bd33={};_0x20bd33[_0x414645[_0x9afb('0x3e')]]={'$like':'%'+_0x4d16ba[_0x9afb('0x47')][_0x9afb('0x52')]+'%'};return _0x20bd33;}})});}_0x56f8d9=_[_0x9afb('0x54')]({},_0x56f8d9,_0x4d16ba[_0x9afb('0x55')]);var _0xdb82c3={'where':_0x56f8d9[_0x9afb('0x53')]};return db[_0x9afb('0x41')][_0x9afb('0x31')](_0xdb82c3)[_0x9afb('0x3a')](function(_0x47df73){_0xc95d27['count']=_0x47df73;if(_0x4d16ba[_0x9afb('0x47')]['includeAll']){_0x56f8d9[_0x9afb('0x56')]=[{'all':!![]}];}return db[_0x9afb('0x41')][_0x9afb('0x57')](_0x56f8d9);})[_0x9afb('0x3a')](function(_0xaecb0f){_0xc95d27['rows']=_0xaecb0f;return _0xc95d27;})[_0x9afb('0x3a')](respondWithFilteredResult(_0x26de3e,_0x56f8d9))['catch'](handleError(_0x26de3e,null));};exports[_0x9afb('0x58')]=function(_0x222ee0,_0x18ca7a){var _0x16afe1={'raw':!![],'where':{'id':_0x222ee0[_0x9afb('0x59')]['id']}},_0xa391de={};_0xa391de[_0x9afb('0x46')]=_['keys'](db[_0x9afb('0x41')][_0x9afb('0x42')]);_0xa391de[_0x9afb('0x47')]=_['keys'](_0x222ee0[_0x9afb('0x47')]);_0xa391de[_0x9afb('0x49')]=_['intersection'](_0xa391de[_0x9afb('0x46')],_0xa391de[_0x9afb('0x47')]);_0x16afe1[_0x9afb('0x4c')]=_['intersection'](_0xa391de[_0x9afb('0x46')],qs[_0x9afb('0x4b')](_0x222ee0['query']['fields']));_0x16afe1['attributes']=_0x16afe1[_0x9afb('0x4c')]['length']?_0x16afe1[_0x9afb('0x4c')]:_0xa391de['model'];if(_0x222ee0[_0x9afb('0x47')][_0x9afb('0x5a')]){_0x16afe1[_0x9afb('0x56')]=[{'all':!![]}];}_0x16afe1=_['merge']({},_0x16afe1,_0x222ee0[_0x9afb('0x55')]);return db[_0x9afb('0x41')][_0x9afb('0x5b')](_0x16afe1)[_0x9afb('0x3a')](handleEntityNotFound(_0x18ca7a,null))[_0x9afb('0x3a')](respondWithResult(_0x18ca7a,null))[_0x9afb('0x2d')](handleError(_0x18ca7a,null));};exports['create']=function(_0x2f889d,_0x11b098){return db[_0x9afb('0x41')][_0x9afb('0x5c')](_0x2f889d['body'],{})[_0x9afb('0x3a')](function(_0x344164){var _0x555ff0=_0x2f889d[_0x9afb('0x5d')][_0x9afb('0x5e')]({'plain':!![]});if(!_0x555ff0)throw new Error(_0x9afb('0x5f'));if(_0x555ff0['role']===_0x9afb('0x5d')){var _0x12b44e=_0x344164[_0x9afb('0x5e')]({'plain':!![]});var _0x41bb8e=_0x9afb('0x60');return db[_0x9afb('0x61')][_0x9afb('0x5b')]({'where':{'name':_0x41bb8e,'userProfileId':_0x555ff0[_0x9afb('0x62')]},'raw':!![]})[_0x9afb('0x3a')](function(_0xd6ba91){if(_0xd6ba91&&_0xd6ba91[_0x9afb('0x63')]===0x0){return db[_0x9afb('0x3b')][_0x9afb('0x5c')]({'name':_0x12b44e['name'],'resourceId':_0x12b44e['id'],'type':_0xd6ba91[_0x9afb('0x3e')],'sectionId':_0xd6ba91['id']},{})[_0x9afb('0x3a')](function(){return _0x344164;});}else{return _0x344164;}})['catch'](function(_0x2ea749){logger[_0x9afb('0x2a')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2ea749);throw _0x2ea749;});}return _0x344164;})['then'](respondWithResult(_0x11b098,0xc9))[_0x9afb('0x2d')](handleError(_0x11b098,null));};exports[_0x9afb('0x64')]=function(_0x297cb6,_0x1fb0b6){if(_0x297cb6[_0x9afb('0x65')]['id']){delete _0x297cb6['body']['id'];}return db[_0x9afb('0x41')][_0x9afb('0x5b')]({'where':{'id':_0x297cb6[_0x9afb('0x59')]['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x1fb0b6,null))[_0x9afb('0x3a')](saveUpdates(_0x297cb6[_0x9afb('0x65')],null))[_0x9afb('0x3a')](respondWithResult(_0x1fb0b6,null))[_0x9afb('0x2d')](handleError(_0x1fb0b6,null));};exports['destroy']=function(_0x16d7f5,_0x5f2d69){return db[_0x9afb('0x41')][_0x9afb('0x5b')]({'where':{'id':_0x16d7f5[_0x9afb('0x59')]['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x5f2d69,null))[_0x9afb('0x3a')](removeEntity(_0x5f2d69,null))['catch'](handleError(_0x5f2d69,null));};exports['describe']=function(_0x32ba83,_0x35ea5a){return db[_0x9afb('0x41')][_0x9afb('0x66')]()[_0x9afb('0x3a')](respondWithResult(_0x35ea5a,null))['catch'](handleError(_0x35ea5a,null));};exports[_0x9afb('0x67')]=function(_0x3bdd7c,_0x4da082,_0x368c4b){var _0x4674b5={'raw':!![],'where':{}},_0x480c4a={},_0x35e55f;return db[_0x9afb('0x41')]['findOne']({'where':{'id':_0x3bdd7c[_0x9afb('0x59')]['id']}})['then'](handleEntityNotFound(_0x4da082,null))[_0x9afb('0x3a')](function(_0x112359){if(_0x112359){_0x35e55f=_0x112359[_0x9afb('0x5e')]({'plain':!![]});_0x480c4a[_0x9afb('0x46')]=_[_0x9afb('0x48')](db['UserChatQueue']['rawAttributes']);_0x480c4a[_0x9afb('0x47')]=_[_0x9afb('0x48')](_0x3bdd7c[_0x9afb('0x47')]);_0x480c4a['filters']=_[_0x9afb('0x4a')](_0x480c4a[_0x9afb('0x46')],_0x480c4a[_0x9afb('0x47')]);_0x4674b5[_0x9afb('0x4c')]=_[_0x9afb('0x4a')](_0x480c4a[_0x9afb('0x46')],qs[_0x9afb('0x4b')](_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x4b')]));_0x4674b5[_0x9afb('0x4c')]=_0x4674b5['attributes'][_0x9afb('0x4d')]?_0x4674b5['attributes']:_0x480c4a[_0x9afb('0x46')];if(!_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x4e')]('nolimit')){_0x4674b5[_0x9afb('0x33')]=qs['limit'](_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x33')]);_0x4674b5['offset']=qs[_0x9afb('0x32')](_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x32')]);}_0x4674b5[_0x9afb('0x68')]=qs['sort'](_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x50')]);_0x4674b5[_0x9afb('0x53')]=qs[_0x9afb('0x49')](_[_0x9afb('0x51')](_0x3bdd7c['query'],_0x480c4a[_0x9afb('0x49')]));_0x4674b5[_0x9afb('0x53')]['ChatQueueId']=_0x112359['id'];if(_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x52')]){_0x4674b5[_0x9afb('0x53')]=_[_0x9afb('0x54')](_0x4674b5['where'],{'$or':_[_0x9afb('0x69')](_0x4674b5[_0x9afb('0x4c')],function(_0x23b2a5){var _0x2be34b={};_0x2be34b[_0x23b2a5]={'$like':'%'+_0x3bdd7c[_0x9afb('0x47')][_0x9afb('0x52')]+'%'};return _0x2be34b;})});}_0x4674b5=_['merge']({},_0x4674b5,_0x3bdd7c[_0x9afb('0x55')]);return db['UserChatQueue'][_0x9afb('0x57')](_0x4674b5);}})[_0x9afb('0x3a')](function(_0x1d92e8){if(_0x1d92e8){return db[_0x9afb('0x6a')][_0x9afb('0x6b')]({'where':{'id':_[_0x9afb('0x69')](_0x1d92e8,_0x9afb('0x6c')),'role':_0x9afb('0x6d')},'attributes':['id','name',_0x9afb('0x6e'),_0x9afb('0x6f'),_0x9afb('0x70')]});}})[_0x9afb('0x3a')](function(_0x3745b1){if(_0x3745b1){return{'count':_0x3745b1[_0x9afb('0x31')],'rows':_[_0x9afb('0x69')](_0x3745b1[_0x9afb('0x71')],function(_0x470ecd){return{'membername':_0x470ecd['name'],'UserId':_0x470ecd['id'],'queue_name':_0x35e55f[_0x9afb('0x3e')],'ChatQueueId':_0x35e55f['id'],'interface':util[_0x9afb('0x72')](_0x9afb('0x73'),_0x9afb('0x74'),_0x470ecd[_0x9afb('0x3e')]),'penalty':0x0,'paused':_0x470ecd[_0x9afb('0x6e')],'createdAt':_0x470ecd['createdAt'],'updatedAt':_0x470ecd[_0x9afb('0x6f')]};})};}else{return{'count':0x0,'rows':[]};}})[_0x9afb('0x3a')](respondWithFilteredResult(_0x4da082,_0x4674b5))[_0x9afb('0x2d')](handleError(_0x4da082,null));};exports[_0x9afb('0x75')]=function(_0x500617,_0x372aed,_0x42de38){var _0xcdc629={};var _0x23bdca={};var _0x548350;var _0x24267f;return db['ChatQueue'][_0x9afb('0x76')]({'where':{'id':_0x500617['params']['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x372aed,null))[_0x9afb('0x3a')](function(_0x3d16ea){if(_0x3d16ea){_0x548350=_0x3d16ea;_0x23bdca['model']=_[_0x9afb('0x48')](db['Team']['rawAttributes']);_0x23bdca[_0x9afb('0x47')]=_['keys'](_0x500617[_0x9afb('0x47')]);_0x23bdca[_0x9afb('0x49')]=_['intersection'](_0x23bdca['model'],_0x23bdca[_0x9afb('0x47')]);_0xcdc629[_0x9afb('0x4c')]=_['intersection'](_0x23bdca[_0x9afb('0x46')],qs[_0x9afb('0x4b')](_0x500617[_0x9afb('0x47')]['fields']));_0xcdc629['attributes']=_0xcdc629[_0x9afb('0x4c')][_0x9afb('0x4d')]?_0xcdc629[_0x9afb('0x4c')]:_0x23bdca[_0x9afb('0x46')];_0xcdc629[_0x9afb('0x68')]=qs[_0x9afb('0x50')](_0x500617[_0x9afb('0x47')][_0x9afb('0x50')]);_0xcdc629[_0x9afb('0x53')]=qs[_0x9afb('0x49')](_['pick'](_0x500617[_0x9afb('0x47')],_0x23bdca[_0x9afb('0x49')]));if(_0x500617['query'][_0x9afb('0x52')]){_0xcdc629['where']=_[_0x9afb('0x54')](_0xcdc629[_0x9afb('0x53')],{'$or':_[_0x9afb('0x69')](_0xcdc629[_0x9afb('0x4c')],function(_0x538303){var _0x357f57={};_0x357f57[_0x538303]={'$like':'%'+_0x500617['query'][_0x9afb('0x52')]+'%'};return _0x357f57;})});}_0xcdc629=_[_0x9afb('0x54')]({},_0xcdc629,_0x500617[_0x9afb('0x55')]);return _0x548350[_0x9afb('0x75')](_0xcdc629);}})[_0x9afb('0x3a')](function(_0x4e5467){if(_0x4e5467){_0x24267f=_0x4e5467['length'];if(!_0x500617[_0x9afb('0x47')]['hasOwnProperty'](_0x9afb('0x4f'))){_0xcdc629[_0x9afb('0x33')]=qs[_0x9afb('0x33')](_0x500617[_0x9afb('0x47')]['limit']);_0xcdc629[_0x9afb('0x32')]=qs[_0x9afb('0x32')](_0x500617[_0x9afb('0x47')]['offset']);}return _0x548350[_0x9afb('0x75')](_0xcdc629);}})[_0x9afb('0x3a')](function(_0x24d635){if(_0x24d635){return _0x24d635?{'count':_0x24267f,'rows':_0x24d635}:null;}})['then'](respondWithResult(_0x372aed,null))[_0x9afb('0x2d')](handleError(_0x372aed,null));};exports[_0x9afb('0x77')]=function(_0x4d558a,_0x5b2efa,_0x422edb){var _0x2f03cd=_0x4d558a[_0x9afb('0x65')][_0x9afb('0x78')];return db['Team'][_0x9afb('0x57')]({'where':{'id':_0x2f03cd},'attributes':['id'],'include':[{'model':db[_0x9afb('0x6a')],'as':_0x9afb('0x79'),'attributes':['id',_0x9afb('0x3e'),_0x9afb('0x7a'),_0x9afb('0x7b'),_0x9afb('0x7c')],'raw':!![]}]})[_0x9afb('0x3a')](function(_0x59d8bd){if(_0x59d8bd){var _0x788fdf=_[_0x9afb('0x7d')](_0x59d8bd,function(_0xd590b3){var _0x2c7a5b=_0xd590b3[_0x9afb('0x5e')]({'plain':!![]});return _0x2c7a5b[_0x9afb('0x79')];});return db[_0x9afb('0x41')][_0x9afb('0x5b')]({'where':{'id':_0x4d558a['params']['id']}})[_0x9afb('0x3a')](function(_0x5e5325){return db[_0x9afb('0x7e')][_0x9afb('0x7f')](function(_0x3fb617){return _0x5e5325[_0x9afb('0x77')](_0x2f03cd,{'transaction':_0x3fb617})['then'](function(){return BPromise[_0x9afb('0x80')](_0x788fdf,function(_0x57d170){return db[_0x9afb('0x81')][_0x9afb('0x82')]({'where':{'UserId':_0x57d170['id'],'ChatQueueId':_0x4d558a['params']['id']},'transaction':_0x3fb617});});})[_0x9afb('0x3a')](function(){_0x788fdf[_0x9afb('0x83')](function(_0x1c0150){socket[_0x9afb('0x84')](_0x9afb('0x85'),{'UserId':_0x1c0150['id'],'ChatQueueId':_0x5e5325['id']});});});});});}})[_0x9afb('0x3a')](respondWithStatusCode(_0x5b2efa,null))[_0x9afb('0x2d')](handleError(_0x5b2efa,null));};exports[_0x9afb('0x86')]=function(_0x25e978,_0x6d394d,_0x17fc1c){return db[_0x9afb('0x87')][_0x9afb('0x57')]({'where':{'id':_0x25e978[_0x9afb('0x47')]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x9afb('0x3a')](handleEntityNotFound(_0x6d394d,null))['then'](function(_0x5a588d){var _0x5e0ae0=_[_0x9afb('0x69')](_0x5a588d,'id');var _0x50b3d1=[];var _0x670756=[];var _0x128d00=squel[_0x9afb('0x88')]();_0x128d00[_0x9afb('0x89')]('tq.TeamId')[_0x9afb('0x8a')](_0x9afb('0x8b'),'tq')[_0x9afb('0x8c')](_0x9afb('0x8d'),'ut',_0x9afb('0x8e'))[_0x9afb('0x53')]('ChatQueueId\x20=\x20?',_0x25e978['params']['id']);for(var _0xcb4d9b=0x0;_0xcb4d9b<_0x5a588d['length'];_0xcb4d9b+=0x1){let _0x51df3c=_0x5a588d[_0xcb4d9b];for(var _0xbe6d1b=0x0;_0xbe6d1b<_0x51df3c['Agents'][_0x9afb('0x4d')];_0xbe6d1b+=0x1){let _0x22cc81=_0x51df3c[_0x9afb('0x79')][_0xbe6d1b];var _0x36d44a=_0x128d00[_0x9afb('0x8f')]();_0x36d44a['where']('ut.UserId\x20=\x20?',_0x22cc81['id']);_0x670756[_0x9afb('0x90')](db['sequelize'][_0x9afb('0x47')](_0x36d44a[_0x9afb('0x91')](),{'type':db[_0x9afb('0x7e')][_0x9afb('0x92')][_0x9afb('0x93')]})[_0x9afb('0x3a')](function(_0x27c6ca){if(_0x27c6ca[_0x9afb('0x4d')]===0x1){return _0x22cc81['id'];}else{var _0x378014=_['every'](_[_0x9afb('0x69')](_0x27c6ca,_0x9afb('0x94')),function(_0x212c16){return _[_0x9afb('0x95')](_0x5e0ae0,_0x212c16);});if(_0x378014){return _0x22cc81['id'];}}}));}}return BPromise['all'](_0x670756)[_0x9afb('0x3a')](function(_0x47b2ca){_0x50b3d1=_(_0x50b3d1)[_0x9afb('0x96')](_0x47b2ca)[_0x9afb('0x97')]()[_0x9afb('0x98')]();return db[_0x9afb('0x41')]['find']({'where':{'id':_0x25e978[_0x9afb('0x59')]['id']}})[_0x9afb('0x3a')](function(_0x4c47a6){return db['sequelize'][_0x9afb('0x7f')](function(_0xbdae26){return _0x4c47a6['removeTeams'](_0x25e978[_0x9afb('0x47')]['ids'],{'transaction':_0xbdae26})[_0x9afb('0x3a')](function(){if(!_['isEmpty'](_0x50b3d1)){return _0x4c47a6[_0x9afb('0x99')](_0x50b3d1,{'transaction':_0xbdae26});}})[_0x9afb('0x3a')](function(){_0x50b3d1[_0x9afb('0x83')](function(_0x368ded){socket['emit'](_0x9afb('0x9a'),{'UserId':_0x368ded,'ChatQueueId':_0x4c47a6['id']});});});});});});})[_0x9afb('0x3a')](respondWithStatusCode(_0x6d394d,null))[_0x9afb('0x2d')](handleError(_0x6d394d,null));};exports[_0x9afb('0x9b')]=function(_0x382727,_0x49eb22,_0x3d1336){return db['ChatQueue'][_0x9afb('0x5b')]({'where':{'id':_0x382727[_0x9afb('0x59')]['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x49eb22,null))[_0x9afb('0x3a')](function(_0x5b0046){if(_0x5b0046){return _0x5b0046[_0x9afb('0x9b')](_0x382727[_0x9afb('0x65')][_0x9afb('0x78')],_[_0x9afb('0x9c')](_0x382727[_0x9afb('0x65')],['ids','id'])||{})[_0x9afb('0x9d')](function(_0x45f129){for(var _0x49a8dc=0x0;_0x49a8dc<_0x382727[_0x9afb('0x65')][_0x9afb('0x78')]['length'];_0x49a8dc+=0x1){socket['emit'](_0x9afb('0x85'),{'UserId':_0x382727['body'][_0x9afb('0x78')][_0x49a8dc],'ChatQueueId':_0x382727[_0x9afb('0x59')]['id']});}return _0x45f129;});}})['then'](respondWithResult(_0x49eb22,null))[_0x9afb('0x2d')](handleError(_0x49eb22,null));};exports[_0x9afb('0x99')]=function(_0x3d7139,_0x2599de,_0x58e701){return db[_0x9afb('0x41')][_0x9afb('0x5b')]({'where':{'id':_0x3d7139['params']['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x2599de,null))['then'](function(_0x1643a5){if(_0x1643a5){return _0x1643a5['removeAgents'](_0x3d7139[_0x9afb('0x47')][_0x9afb('0x78')])[_0x9afb('0x3a')](function(){if(_['isArray'](_0x3d7139[_0x9afb('0x47')][_0x9afb('0x78')])){for(var _0x475036=0x0;_0x475036<_0x3d7139[_0x9afb('0x47')][_0x9afb('0x78')][_0x9afb('0x4d')];_0x475036+=0x1){socket[_0x9afb('0x84')](_0x9afb('0x9a'),{'UserId':Number(_0x3d7139[_0x9afb('0x47')][_0x9afb('0x78')][_0x475036]),'ChatQueueId':Number(_0x3d7139[_0x9afb('0x59')]['id'])});}}else{socket[_0x9afb('0x84')](_0x9afb('0x9a'),{'UserId':Number(_0x3d7139[_0x9afb('0x47')][_0x9afb('0x78')]),'ChatQueueId':Number(_0x3d7139[_0x9afb('0x59')]['id'])});}});}})['then'](respondWithStatusCode(_0x2599de,null))[_0x9afb('0x2d')](handleError(_0x2599de,null));};exports['getAgents']=function(_0x5cf244,_0x1f631b,_0x135ab2){var _0x132fe4={};var _0xc3d7fc={};var _0x1e509e;var _0x4b56a5;return db[_0x9afb('0x41')][_0x9afb('0x76')]({'where':{'id':_0x5cf244['params']['id']}})[_0x9afb('0x3a')](handleEntityNotFound(_0x1f631b,null))[_0x9afb('0x3a')](function(_0x11a7a8){if(_0x11a7a8){_0x1e509e=_0x11a7a8;_0xc3d7fc[_0x9afb('0x46')]=_[_0x9afb('0x48')](db[_0x9afb('0x6a')]['rawAttributes']);_0xc3d7fc[_0x9afb('0x47')]=_[_0x9afb('0x48')](_0x5cf244[_0x9afb('0x47')]);_0xc3d7fc[_0x9afb('0x49')]=_[_0x9afb('0x4a')](_0xc3d7fc[_0x9afb('0x46')],_0xc3d7fc[_0x9afb('0x47')]);_0x132fe4[_0x9afb('0x4c')]=_[_0x9afb('0x4a')](_0xc3d7fc[_0x9afb('0x46')],qs[_0x9afb('0x4b')](_0x5cf244['query'][_0x9afb('0x4b')]));_0x132fe4[_0x9afb('0x4c')]=_0x132fe4[_0x9afb('0x4c')][_0x9afb('0x4d')]?_0x132fe4[_0x9afb('0x4c')]:_0xc3d7fc[_0x9afb('0x46')];_0x132fe4[_0x9afb('0x68')]=qs['sort'](_0x5cf244[_0x9afb('0x47')][_0x9afb('0x50')]);_0x132fe4[_0x9afb('0x53')]=qs[_0x9afb('0x49')](_[_0x9afb('0x51')](_0x5cf244[_0x9afb('0x47')],_0xc3d7fc[_0x9afb('0x49')]));if(_0x5cf244[_0x9afb('0x47')][_0x9afb('0x52')]){_0x132fe4[_0x9afb('0x53')]=_[_0x9afb('0x54')](_0x132fe4['where'],{'$or':_[_0x9afb('0x69')](_0x132fe4[_0x9afb('0x4c')],function(_0x3befe1){var _0x4d399a={};_0x4d399a[_0x3befe1]={'$like':'%'+_0x5cf244['query'][_0x9afb('0x52')]+'%'};return _0x4d399a;})});}_0x132fe4=_[_0x9afb('0x54')]({},_0x132fe4,_0x5cf244[_0x9afb('0x55')]);return _0x1e509e[_0x9afb('0x9e')](_0x132fe4);}})[_0x9afb('0x3a')](function(_0x3741d9){if(_0x3741d9){_0x4b56a5=_0x3741d9['length'];if(!_0x5cf244[_0x9afb('0x47')][_0x9afb('0x4e')](_0x9afb('0x4f'))){_0x132fe4[_0x9afb('0x33')]=qs[_0x9afb('0x33')](_0x5cf244[_0x9afb('0x47')]['limit']);_0x132fe4[_0x9afb('0x32')]=qs[_0x9afb('0x32')](_0x5cf244[_0x9afb('0x47')]['offset']);}return _0x1e509e[_0x9afb('0x9e')](_0x132fe4);}})['then'](function(_0xec6822){if(_0xec6822){return _0xec6822?{'count':_0x4b56a5,'rows':_0xec6822}:null;}})[_0x9afb('0x3a')](respondWithResult(_0x1f631b,null))[_0x9afb('0x2d')](handleError(_0x1f631b,null));};
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js
index f2cad77..62c981c 100644
--- a/server/api/chatQueue/chatQueue.events.js
+++ b/server/api/chatQueue/chatQueue.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5f2f=['remove','emit','hasOwnProperty','hook','exports','events','../../mysqldb','ChatQueue','setMaxListeners','save','update'];(function(_0x4bede9,_0x3787e9){var _0x37458d=function(_0x324ef8){while(--_0x324ef8){_0x4bede9['push'](_0x4bede9['shift']());}};_0x37458d(++_0x3787e9);}(_0x5f2f,0x73));var _0xf5f2=function(_0x313d6a,_0x10d4b1){_0x313d6a=_0x313d6a-0x0;var _0x2109c9=_0x5f2f[_0x313d6a];return _0x2109c9;};'use strict';var EventEmitter=require(_0xf5f2('0x0'));var ChatQueue=require(_0xf5f2('0x1'))['db'][_0xf5f2('0x2')];var ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0xf5f2('0x3')](0x0);var events={'afterCreate':_0xf5f2('0x4'),'afterUpdate':_0xf5f2('0x5'),'afterDestroy':_0xf5f2('0x6')};function emitEvent(_0x107cf){return function(_0x501fbd,_0x4854b6,_0x1665c7){ChatQueueEvents[_0xf5f2('0x7')](_0x107cf+':'+_0x501fbd['id'],_0x501fbd);ChatQueueEvents[_0xf5f2('0x7')](_0x107cf,_0x501fbd);_0x1665c7(null);};}for(var e in events){if(events[_0xf5f2('0x8')](e)){var event=events[e];ChatQueue[_0xf5f2('0x9')](e,emitEvent(event));}}module[_0xf5f2('0xa')]=ChatQueueEvents;
\ No newline at end of file
+var _0x0b0e=['ChatQueue','save','update','remove','emit','hasOwnProperty','hook','events'];(function(_0x381a1d,_0x4c3269){var _0x106dee=function(_0x3ea3a1){while(--_0x3ea3a1){_0x381a1d['push'](_0x381a1d['shift']());}};_0x106dee(++_0x4c3269);}(_0x0b0e,0x187));var _0xe0b0=function(_0x15ec4e,_0x40b7e0){_0x15ec4e=_0x15ec4e-0x0;var _0xb5e5dd=_0x0b0e[_0x15ec4e];return _0xb5e5dd;};'use strict';var EventEmitter=require(_0xe0b0('0x0'));var ChatQueue=require('../../mysqldb')['db'][_0xe0b0('0x1')];var ChatQueueEvents=new EventEmitter();ChatQueueEvents['setMaxListeners'](0x0);var events={'afterCreate':_0xe0b0('0x2'),'afterUpdate':_0xe0b0('0x3'),'afterDestroy':_0xe0b0('0x4')};function emitEvent(_0x25153a){return function(_0x28040c,_0x38a058,_0x399e67){ChatQueueEvents[_0xe0b0('0x5')](_0x25153a+':'+_0x28040c['id'],_0x28040c);ChatQueueEvents[_0xe0b0('0x5')](_0x25153a,_0x28040c);_0x399e67(null);};}for(var e in events){if(events[_0xe0b0('0x6')](e)){var event=events[e];ChatQueue[_0xe0b0('0x7')](e,emitEvent(event));}}module['exports']=ChatQueueEvents;
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js
index 2376bd1..8565aa7 100644
--- a/server/api/chatQueue/chatQueue.model.js
+++ b/server/api/chatQueue/chatQueue.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5147=['chat_queues','lodash','util','bluebird','path','rimraf','../../config/environment','./chatQueue.attributes','exports','define'];(function(_0x373dee,_0x1a8c45){var _0x46798f=function(_0xc389f0){while(--_0xc389f0){_0x373dee['push'](_0x373dee['shift']());}};_0x46798f(++_0x1a8c45);}(_0x5147,0x10f));var _0x7514=function(_0xa2440f,_0x47e3cb){_0xa2440f=_0xa2440f-0x0;var _0x128e62=_0x5147[_0xa2440f];return _0x128e62;};'use strict';var _=require(_0x7514('0x0'));var util=require(_0x7514('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x7514('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7514('0x3'));var rimraf=require(_0x7514('0x4'));var config=require(_0x7514('0x5'));var attributes=require(_0x7514('0x6'));module[_0x7514('0x7')]=function(_0x21ba66,_0xc2b0ce){return _0x21ba66[_0x7514('0x8')]('ChatQueue',attributes,{'tableName':_0x7514('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0x1008=['bluebird','request-promise','path','rimraf','../../config/environment','exports','define','chat_queues','../../config/logger'];(function(_0x2707a4,_0x8f0b3b){var _0x27d08e=function(_0x179adc){while(--_0x179adc){_0x2707a4['push'](_0x2707a4['shift']());}};_0x27d08e(++_0x8f0b3b);}(_0x1008,0x11f));var _0x8100=function(_0x199bc4,_0x338105){_0x199bc4=_0x199bc4-0x0;var _0x136ffb=_0x1008[_0x199bc4];return _0x136ffb;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8100('0x0'))('api');var moment=require('moment');var BPromise=require(_0x8100('0x1'));var rp=require(_0x8100('0x2'));var fs=require('fs');var path=require(_0x8100('0x3'));var rimraf=require(_0x8100('0x4'));var config=require(_0x8100('0x5'));var attributes=require('./chatQueue.attributes');module[_0x8100('0x6')]=function(_0x3c829c,_0x4f9a0c){return _0x3c829c[_0x8100('0x7')]('ChatQueue',attributes,{'tableName':_0x8100('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js
index db142c3..d04273a 100644
--- a/server/api/chatQueue/chatQueue.rpc.js
+++ b/server/api/chatQueue/chatQueue.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5f2f=['http','redis','defaults','localhost','socket.io-emitter','register','then','ChatQueue,\x20%s,\x20%s','request\x20sent','debug','ChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','ChatQueue','findAll','options','raw','where','attributes','limit','include','map','model','GetChatQueue','find','ShowChatQueue','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client'];(function(_0xfafaf3,_0xf331d2){var _0x2ff858=function(_0x2456b1){while(--_0x2456b1){_0xfafaf3['push'](_0xfafaf3['shift']());}};_0x2ff858(++_0xf331d2);}(_0x5f2f,0x73));var _0xf5f2=function(_0x40c23c,_0x1adc11){_0x40c23c=_0x40c23c-0x0;var _0x3a1919=_0x5f2f[_0x40c23c];return _0x3a1919;};'use strict';var _=require(_0xf5f2('0x0'));var util=require(_0xf5f2('0x1'));var moment=require(_0xf5f2('0x2'));var BPromise=require(_0xf5f2('0x3'));var rs=require(_0xf5f2('0x4'));var fs=require('fs');var Redis=require(_0xf5f2('0x5'));var db=require(_0xf5f2('0x6'))['db'];var utils=require(_0xf5f2('0x7'));var logger=require('../../config/logger')('rpc');var config=require(_0xf5f2('0x8'));var jayson=require(_0xf5f2('0x9'));var client=jayson[_0xf5f2('0xa')][_0xf5f2('0xb')]({'port':0x232a});config[_0xf5f2('0xc')]=_[_0xf5f2('0xd')](config['redis'],{'host':_0xf5f2('0xe'),'port':0x18eb});var socket=require(_0xf5f2('0xf'))(new Redis(config[_0xf5f2('0xc')]));require('./chatQueue.socket')[_0xf5f2('0x10')](socket);function respondWithRpcPromise(_0x15dd7c,_0x218ae3,_0x4e0e6b){return new BPromise(function(_0x977a59,_0x4ebbbe){return client['request'](_0x15dd7c,_0x4e0e6b)[_0xf5f2('0x11')](function(_0x151aba){logger['info'](_0xf5f2('0x12'),_0x218ae3,_0xf5f2('0x13'));logger[_0xf5f2('0x14')](_0xf5f2('0x15'),_0x218ae3,_0xf5f2('0x13'),JSON[_0xf5f2('0x16')](_0x151aba));if(_0x151aba['error']){if(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x18')]===0x1f4){logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x151aba[_0xf5f2('0x17')]['message']);return _0x4ebbbe(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);}logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);return _0x977a59(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);}else{logger[_0xf5f2('0x1a')](_0xf5f2('0x12'),_0x218ae3,_0xf5f2('0x13'));_0x977a59(_0x151aba[_0xf5f2('0x1b')][_0xf5f2('0x19')]);}})[_0xf5f2('0x1c')](function(_0x3cf5ea){logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x3cf5ea);_0x4ebbbe(_0x3cf5ea);});});}exports['GetChatQueue']=function(_0x34706d){var _0x47101e=this;return new Promise(function(_0x49dac2,_0x47acfc){return db[_0xf5f2('0x1d')][_0xf5f2('0x1e')]({'raw':_0x34706d['options']?_0x34706d[_0xf5f2('0x1f')][_0xf5f2('0x20')]===undefined?!![]:![]:!![],'where':_0x34706d[_0xf5f2('0x1f')]?_0x34706d[_0xf5f2('0x1f')][_0xf5f2('0x21')]||null:null,'attributes':_0x34706d['options']?_0x34706d[_0xf5f2('0x1f')][_0xf5f2('0x22')]||null:null,'limit':_0x34706d[_0xf5f2('0x1f')]?_0x34706d[_0xf5f2('0x1f')][_0xf5f2('0x23')]||null:null,'include':_0x34706d['options']?_0x34706d['options'][_0xf5f2('0x24')]?_[_0xf5f2('0x25')](_0x34706d[_0xf5f2('0x1f')][_0xf5f2('0x24')],function(_0xf6c58d){return{'model':db[_0xf6c58d[_0xf5f2('0x26')]],'as':_0xf6c58d['as'],'attributes':_0xf6c58d[_0xf5f2('0x22')],'include':_0xf6c58d[_0xf5f2('0x24')]?_[_0xf5f2('0x25')](_0xf6c58d['include'],function(_0xaa2602){return{'model':db[_0xaa2602[_0xf5f2('0x26')]],'as':_0xaa2602['as'],'attributes':_0xaa2602[_0xf5f2('0x22')],'include':_0xaa2602[_0xf5f2('0x24')]?_[_0xf5f2('0x25')](_0xaa2602[_0xf5f2('0x24')],function(_0x5b6672){return{'model':db[_0x5b6672['model']],'as':_0x5b6672['as'],'attributes':_0x5b6672[_0xf5f2('0x22')]};}):[]};}):[]};}):[]:[]})[_0xf5f2('0x11')](function(_0x11c771){logger['info']('GetChatQueue',_0x34706d);logger[_0xf5f2('0x14')](_0xf5f2('0x27'),_0x34706d,JSON[_0xf5f2('0x16')](_0x11c771));_0x49dac2(_0x11c771);})[_0xf5f2('0x1c')](function(_0x1b381e){logger['error']('GetChatQueue',_0x1b381e[_0xf5f2('0x19')],_0x34706d);_0x47acfc(_0x47101e['error'](0x1f4,_0x1b381e[_0xf5f2('0x19')]));});});};exports['ShowChatQueue']=function(_0x45b643){var _0x31087c=this;return new Promise(function(_0x7b6817,_0x428770){return db[_0xf5f2('0x1d')][_0xf5f2('0x28')]({'raw':_0x45b643[_0xf5f2('0x1f')]?_0x45b643[_0xf5f2('0x1f')]['raw']===undefined?!![]:![]:!![],'where':_0x45b643[_0xf5f2('0x1f')]?_0x45b643[_0xf5f2('0x1f')][_0xf5f2('0x21')]||null:null,'attributes':_0x45b643[_0xf5f2('0x1f')]?_0x45b643[_0xf5f2('0x1f')][_0xf5f2('0x22')]||null:null,'include':_0x45b643[_0xf5f2('0x1f')]?_0x45b643['options'][_0xf5f2('0x24')]?_[_0xf5f2('0x25')](_0x45b643['options'][_0xf5f2('0x24')],function(_0x4b8c42){return{'model':db[_0x4b8c42[_0xf5f2('0x26')]],'as':_0x4b8c42['as'],'attributes':_0x4b8c42[_0xf5f2('0x22')],'include':_0x4b8c42[_0xf5f2('0x24')]?_[_0xf5f2('0x25')](_0x4b8c42['include'],function(_0x5a98d7){return{'model':db[_0x5a98d7[_0xf5f2('0x26')]],'as':_0x5a98d7['as'],'attributes':_0x5a98d7[_0xf5f2('0x22')],'include':_0x5a98d7[_0xf5f2('0x24')]?_['map'](_0x5a98d7[_0xf5f2('0x24')],function(_0x4f7f80){return{'model':db[_0x4f7f80[_0xf5f2('0x26')]],'as':_0x4f7f80['as'],'attributes':_0x4f7f80['attributes']};}):[]};}):[]};}):[]:[]})[_0xf5f2('0x11')](function(_0x456764){logger['info'](_0xf5f2('0x29'),_0x45b643);logger[_0xf5f2('0x14')](_0xf5f2('0x29'),_0x45b643,JSON[_0xf5f2('0x16')](_0x456764));_0x7b6817(_0x456764);})['catch'](function(_0x5d2d82){logger[_0xf5f2('0x17')](_0xf5f2('0x29'),_0x5d2d82[_0xf5f2('0x19')],_0x45b643);_0x428770(_0x31087c[_0xf5f2('0x17')](0x1f4,_0x5d2d82[_0xf5f2('0x19')]));});});};
\ No newline at end of file
+var _0x720f=['map','include','model','then','GetChatQueue','find','raw','catch','ShowChatQueue','lodash','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','defaults','redis','./chatQueue.socket','info','ChatQueue,\x20%s,\x20%s','debug','ChatQueue,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','ChatQueue','options','where','attributes','limit'];(function(_0x437e91,_0x33d2cd){var _0x12ca29=function(_0x103ee2){while(--_0x103ee2){_0x437e91['push'](_0x437e91['shift']());}};_0x12ca29(++_0x33d2cd);}(_0x720f,0x185));var _0xf720=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x720f[_0x5ddb1c];return _0x354adc;};'use strict';var _=require(_0xf720('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xf720('0x1'));var fs=require('fs');var Redis=require(_0xf720('0x2'));var db=require(_0xf720('0x3'))['db'];var utils=require(_0xf720('0x4'));var logger=require(_0xf720('0x5'))(_0xf720('0x6'));var config=require(_0xf720('0x7'));var jayson=require(_0xf720('0x8'));var client=jayson[_0xf720('0x9')][_0xf720('0xa')]({'port':0x232a});config['redis']=_[_0xf720('0xb')](config[_0xf720('0xc')],{'host':'localhost','port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xf720('0xc')]));require(_0xf720('0xd'))['register'](socket);function respondWithRpcPromise(_0x2f01fa,_0x41b251,_0x5cbd9b){return new BPromise(function(_0xddeab4,_0x4c1ccb){return client['request'](_0x2f01fa,_0x5cbd9b)['then'](function(_0x54956e){logger[_0xf720('0xe')](_0xf720('0xf'),_0x41b251,'request\x20sent');logger[_0xf720('0x10')](_0xf720('0x11'),_0x41b251,_0xf720('0x12'),JSON[_0xf720('0x13')](_0x54956e));if(_0x54956e[_0xf720('0x14')]){if(_0x54956e[_0xf720('0x14')][_0xf720('0x15')]===0x1f4){logger['error'](_0xf720('0xf'),_0x41b251,_0x54956e['error'][_0xf720('0x16')]);return _0x4c1ccb(_0x54956e[_0xf720('0x14')][_0xf720('0x16')]);}logger['error']('ChatQueue,\x20%s,\x20%s',_0x41b251,_0x54956e[_0xf720('0x14')][_0xf720('0x16')]);return _0xddeab4(_0x54956e['error'][_0xf720('0x16')]);}else{logger[_0xf720('0xe')](_0xf720('0xf'),_0x41b251,_0xf720('0x12'));_0xddeab4(_0x54956e[_0xf720('0x17')][_0xf720('0x16')]);}})['catch'](function(_0x132992){logger[_0xf720('0x14')](_0xf720('0xf'),_0x41b251,_0x132992);_0x4c1ccb(_0x132992);});});}exports['GetChatQueue']=function(_0x1430e9){var _0x5cf0b0=this;return new Promise(function(_0x22003c,_0x541b29){return db[_0xf720('0x18')]['findAll']({'raw':_0x1430e9['options']?_0x1430e9[_0xf720('0x19')]['raw']===undefined?!![]:![]:!![],'where':_0x1430e9[_0xf720('0x19')]?_0x1430e9[_0xf720('0x19')][_0xf720('0x1a')]||null:null,'attributes':_0x1430e9['options']?_0x1430e9[_0xf720('0x19')][_0xf720('0x1b')]||null:null,'limit':_0x1430e9[_0xf720('0x19')]?_0x1430e9[_0xf720('0x19')][_0xf720('0x1c')]||null:null,'include':_0x1430e9[_0xf720('0x19')]?_0x1430e9[_0xf720('0x19')]['include']?_[_0xf720('0x1d')](_0x1430e9['options'][_0xf720('0x1e')],function(_0x45b8c1){return{'model':db[_0x45b8c1['model']],'as':_0x45b8c1['as'],'attributes':_0x45b8c1[_0xf720('0x1b')],'include':_0x45b8c1['include']?_[_0xf720('0x1d')](_0x45b8c1[_0xf720('0x1e')],function(_0x14eb89){return{'model':db[_0x14eb89[_0xf720('0x1f')]],'as':_0x14eb89['as'],'attributes':_0x14eb89[_0xf720('0x1b')],'include':_0x14eb89[_0xf720('0x1e')]?_[_0xf720('0x1d')](_0x14eb89[_0xf720('0x1e')],function(_0x15b739){return{'model':db[_0x15b739[_0xf720('0x1f')]],'as':_0x15b739['as'],'attributes':_0x15b739[_0xf720('0x1b')]};}):[]};}):[]};}):[]:[]})[_0xf720('0x20')](function(_0x468ab9){logger['info'](_0xf720('0x21'),_0x1430e9);logger[_0xf720('0x10')](_0xf720('0x21'),_0x1430e9,JSON[_0xf720('0x13')](_0x468ab9));_0x22003c(_0x468ab9);})['catch'](function(_0x49dc37){logger[_0xf720('0x14')](_0xf720('0x21'),_0x49dc37['message'],_0x1430e9);_0x541b29(_0x5cf0b0[_0xf720('0x14')](0x1f4,_0x49dc37[_0xf720('0x16')]));});});};exports['ShowChatQueue']=function(_0x5afa0a){var _0x4c8f5d=this;return new Promise(function(_0x2f6b14,_0x25cb5f){return db[_0xf720('0x18')][_0xf720('0x22')]({'raw':_0x5afa0a[_0xf720('0x19')]?_0x5afa0a[_0xf720('0x19')][_0xf720('0x23')]===undefined?!![]:![]:!![],'where':_0x5afa0a[_0xf720('0x19')]?_0x5afa0a[_0xf720('0x19')]['where']||null:null,'attributes':_0x5afa0a[_0xf720('0x19')]?_0x5afa0a['options'][_0xf720('0x1b')]||null:null,'include':_0x5afa0a[_0xf720('0x19')]?_0x5afa0a['options'][_0xf720('0x1e')]?_['map'](_0x5afa0a[_0xf720('0x19')][_0xf720('0x1e')],function(_0x4bd400){return{'model':db[_0x4bd400['model']],'as':_0x4bd400['as'],'attributes':_0x4bd400[_0xf720('0x1b')],'include':_0x4bd400['include']?_[_0xf720('0x1d')](_0x4bd400[_0xf720('0x1e')],function(_0x3ac404){return{'model':db[_0x3ac404[_0xf720('0x1f')]],'as':_0x3ac404['as'],'attributes':_0x3ac404[_0xf720('0x1b')],'include':_0x3ac404[_0xf720('0x1e')]?_['map'](_0x3ac404[_0xf720('0x1e')],function(_0x1042ef){return{'model':db[_0x1042ef[_0xf720('0x1f')]],'as':_0x1042ef['as'],'attributes':_0x1042ef[_0xf720('0x1b')]};}):[]};}):[]};}):[]:[]})[_0xf720('0x20')](function(_0x364926){logger[_0xf720('0xe')]('ShowChatQueue',_0x5afa0a);logger['debug']('ShowChatQueue',_0x5afa0a,JSON[_0xf720('0x13')](_0x364926));_0x2f6b14(_0x364926);})[_0xf720('0x24')](function(_0x218ec1){logger[_0xf720('0x14')](_0xf720('0x25'),_0x218ec1[_0xf720('0x16')],_0x5afa0a);_0x25cb5f(_0x4c8f5d['error'](0x1f4,_0x218ec1[_0xf720('0x16')]));});});};
\ No newline at end of file
diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js
index 3bee68e..53586bd 100644
--- a/server/api/chatQueue/chatQueue.socket.js
+++ b/server/api/chatQueue/chatQueue.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xadb5=['update','emit','register','length','chatQueue:','save'];(function(_0x60958a,_0x45d62a){var _0x30f7d3=function(_0x3acb7f){while(--_0x3acb7f){_0x60958a['push'](_0x60958a['shift']());}};_0x30f7d3(++_0x45d62a);}(_0xadb5,0xad));var _0x5adb=function(_0x5f103d,_0x14e6a7){_0x5f103d=_0x5f103d-0x0;var _0x30a033=_0xadb5[_0x5f103d];return _0x30a033;};'use strict';var ChatQueueEvents=require('./chatQueue.events');var events=[_0x5adb('0x0'),'remove',_0x5adb('0x1')];function createListener(_0x38f67f,_0x3129c3){return function(_0x4aecec){_0x3129c3[_0x5adb('0x2')](_0x38f67f,_0x4aecec);};}function removeListener(_0x31457,_0x2e3ef4){return function(){ChatQueueEvents['removeListener'](_0x31457,_0x2e3ef4);};}exports[_0x5adb('0x3')]=function(_0x168d89){for(var _0x3e2555=0x0,_0x3213e8=events[_0x5adb('0x4')];_0x3e2555<_0x3213e8;_0x3e2555++){var _0x353885=events[_0x3e2555];var _0x47228a=createListener(_0x5adb('0x5')+_0x353885,_0x168d89);ChatQueueEvents['on'](_0x353885,_0x47228a);}};
\ No newline at end of file
+var _0xb10b=['emit','removeListener','register','chatQueue:','./chatQueue.events','remove','update'];(function(_0x78029b,_0x19ce64){var _0x2c1b66=function(_0x3d1543){while(--_0x3d1543){_0x78029b['push'](_0x78029b['shift']());}};_0x2c1b66(++_0x19ce64);}(_0xb10b,0x12a));var _0xbb10=function(_0x263714,_0x399b37){_0x263714=_0x263714-0x0;var _0x1cd43d=_0xb10b[_0x263714];return _0x1cd43d;};'use strict';var ChatQueueEvents=require(_0xbb10('0x0'));var events=['save',_0xbb10('0x1'),_0xbb10('0x2')];function createListener(_0x1dcb08,_0x4d688c){return function(_0x4541ae){_0x4d688c[_0xbb10('0x3')](_0x1dcb08,_0x4541ae);};}function removeListener(_0x460981,_0x22320e){return function(){ChatQueueEvents[_0xbb10('0x4')](_0x460981,_0x22320e);};}exports[_0xbb10('0x5')]=function(_0x481979){for(var _0x328583=0x0,_0x3cdd53=events['length'];_0x328583<_0x3cdd53;_0x328583++){var _0x1b9e94=events[_0x328583];var _0x3fb675=createListener(_0xbb10('0x6')+_0x1b9e94,_0x481979);ChatQueueEvents['on'](_0x1b9e94,_0x3fb675);}};
\ No newline at end of file
diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js
index d9e06b4..0d229bd 100644
--- a/server/api/chatQueue/index.js
+++ b/server/api/chatQueue/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x6335=['describe','/:id','/:id/members','/:id/teams','getTeams','/:id/users','getAgents','create','post','addTeams','delete','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./chatQueue.controller','get','index','/describe','isAuthenticated'];(function(_0x7fae44,_0x3a61e6){var _0x791fea=function(_0x46da5d){while(--_0x46da5d){_0x7fae44['push'](_0x7fae44['shift']());}};_0x791fea(++_0x3a61e6);}(_0x6335,0x1e2));var _0x5633=function(_0x5d3687,_0x35408b){_0x5d3687=_0x5d3687-0x0;var _0x1f21c9=_0x6335[_0x5d3687];return _0x1f21c9;};'use strict';var multer=require(_0x5633('0x0'));var util=require(_0x5633('0x1'));var path=require(_0x5633('0x2'));var timeout=require(_0x5633('0x3'));var express=require(_0x5633('0x4'));var router=express[_0x5633('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5633('0x6'));var controller=require(_0x5633('0x7'));router[_0x5633('0x8')]('/',auth['isAuthenticated'](),controller[_0x5633('0x9')]);router['get'](_0x5633('0xa'),auth[_0x5633('0xb')](),controller[_0x5633('0xc')]);router[_0x5633('0x8')](_0x5633('0xd'),auth[_0x5633('0xb')](),controller['show']);router['get'](_0x5633('0xe'),auth[_0x5633('0xb')](),controller['getMembers']);router[_0x5633('0x8')](_0x5633('0xf'),auth['isAuthenticated'](),controller[_0x5633('0x10')]);router[_0x5633('0x8')](_0x5633('0x11'),auth['isAuthenticated'](),controller[_0x5633('0x12')]);router['post']('/',auth[_0x5633('0xb')](),controller[_0x5633('0x13')]);router[_0x5633('0x14')]('/:id/teams',auth[_0x5633('0xb')](),controller[_0x5633('0x15')]);router[_0x5633('0x14')](_0x5633('0x11'),auth['isAuthenticated'](),controller['addAgents']);router['put'](_0x5633('0xd'),auth[_0x5633('0xb')](),controller['update']);router[_0x5633('0x16')](_0x5633('0xd'),auth['isAuthenticated'](),controller['destroy']);router[_0x5633('0x16')]('/:id/teams',auth['isAuthenticated'](),controller[_0x5633('0x17')]);router[_0x5633('0x16')](_0x5633('0x11'),auth[_0x5633('0xb')](),controller[_0x5633('0x18')]);module[_0x5633('0x19')]=router;
\ No newline at end of file
+var _0xa119=['removeAgents','multer','util','path','connect-timeout','express','../../components/auth/service','./chatQueue.controller','get','isAuthenticated','describe','/:id','/:id/members','/:id/teams','getTeams','/:id/users','post','addTeams','addAgents','put','update','delete','removeTeams'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xa119,0xd0));var _0x9a11=function(_0x3139d6,_0x3fdfd1){_0x3139d6=_0x3139d6-0x0;var _0x10b61d=_0xa119[_0x3139d6];return _0x10b61d;};'use strict';var multer=require(_0x9a11('0x0'));var util=require(_0x9a11('0x1'));var path=require(_0x9a11('0x2'));var timeout=require(_0x9a11('0x3'));var express=require(_0x9a11('0x4'));var router=express['Router']();var auth=require(_0x9a11('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9a11('0x6'));router[_0x9a11('0x7')]('/',auth[_0x9a11('0x8')](),controller['index']);router[_0x9a11('0x7')]('/describe',auth[_0x9a11('0x8')](),controller[_0x9a11('0x9')]);router[_0x9a11('0x7')](_0x9a11('0xa'),auth[_0x9a11('0x8')](),controller['show']);router[_0x9a11('0x7')](_0x9a11('0xb'),auth['isAuthenticated'](),controller['getMembers']);router[_0x9a11('0x7')](_0x9a11('0xc'),auth[_0x9a11('0x8')](),controller[_0x9a11('0xd')]);router[_0x9a11('0x7')](_0x9a11('0xe'),auth[_0x9a11('0x8')](),controller['getAgents']);router[_0x9a11('0xf')]('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x9a11('0xc'),auth['isAuthenticated'](),controller[_0x9a11('0x10')]);router['post'](_0x9a11('0xe'),auth['isAuthenticated'](),controller[_0x9a11('0x11')]);router[_0x9a11('0x12')](_0x9a11('0xa'),auth['isAuthenticated'](),controller[_0x9a11('0x13')]);router[_0x9a11('0x14')](_0x9a11('0xa'),auth[_0x9a11('0x8')](),controller['destroy']);router[_0x9a11('0x14')](_0x9a11('0xc'),auth[_0x9a11('0x8')](),controller[_0x9a11('0x15')]);router[_0x9a11('0x14')](_0x9a11('0xe'),auth['isAuthenticated'](),controller[_0x9a11('0x16')]);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 c659ba7..70d9fc3 100644
--- a/server/api/chatQueueReport/chatQueueReport.attributes.js
+++ b/server/api/chatQueueReport/chatQueueReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xebcf=['DATE','moment','exports','STRING'];(function(_0x4fc9e6,_0xc51915){var _0x551d28=function(_0x1a603b){while(--_0x1a603b){_0x4fc9e6['push'](_0x4fc9e6['shift']());}};_0x551d28(++_0xc51915);}(_0xebcf,0x17d));var _0xfebc=function(_0x4ca944,_0x5fe954){_0x4ca944=_0x4ca944-0x0;var _0x507777=_0xebcf[_0x4ca944];return _0x507777;};'use strict';var moment=require(_0xfebc('0x0'));var Sequelize=require('sequelize');module[_0xfebc('0x1')]={'uniqueid':{'type':Sequelize[_0xfebc('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0xfebc('0x2')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0xfebc('0x3')]},'acceptAt':{'type':Sequelize[_0xfebc('0x3')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize[_0xfebc('0x2')]}};
\ No newline at end of file
+var _0xe291=['DATE','sequelize','exports','STRING'];(function(_0x1d6914,_0x2f6a85){var _0x511d10=function(_0x470e70){while(--_0x470e70){_0x1d6914['push'](_0x1d6914['shift']());}};_0x511d10(++_0x2f6a85);}(_0xe291,0x16d));var _0x1e29=function(_0x53a3c5,_0x1bca79){_0x53a3c5=_0x53a3c5-0x0;var _0x5260f5=_0xe291[_0x53a3c5];return _0x5260f5;};'use strict';var moment=require('moment');var Sequelize=require(_0x1e29('0x0'));module[_0x1e29('0x1')]={'uniqueid':{'type':Sequelize[_0x1e29('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0x1e29('0x2')]},'joinAt':{'type':Sequelize[_0x1e29('0x3')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x1e29('0x3')]},'exitAt':{'type':Sequelize[_0x1e29('0x3')]},'reason':{'type':Sequelize[_0x1e29('0x2')]}};
\ No newline at end of file
diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js
index 25d172d..961ba69 100644
--- a/server/api/chatQueueReport/chatQueueReport.controller.js
+++ b/server/api/chatQueueReport/chatQueueReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xac33=['apply','reject','update','then','destroy','error','stack','name','send','index','map','ChatQueueReport','rawAttributes','type','key','model','query','keys','filters','attributes','intersection','fields','hasOwnProperty','order','sort','where','pick','merge','filter','options','includeAll','include','findAll','rows','show','params','find','catch','create','body','describe','html-pdf','rimraf','zip-dir','moment','bluebird','util','path','sox','to-csv','lodash','crypto','querystring','ioredis','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','count','offset','limit','set','Content-Range','json'];(function(_0x35ad5f,_0x593ee2){var _0x1e3a4d=function(_0x57acd8){while(--_0x57acd8){_0x35ad5f['push'](_0x35ad5f['shift']());}};_0x1e3a4d(++_0x593ee2);}(_0xac33,0x135));var _0x3ac3=function(_0x5172ae,_0x54b802){_0x5172ae=_0x5172ae-0x0;var _0x32fb65=_0xac33[_0x5172ae];return _0x32fb65;};'use strict';var pdf=require(_0x3ac3('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x3ac3('0x1'));var zipdir=require(_0x3ac3('0x2'));var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0x3ac3('0x3'));var BPromise=require(_0x3ac3('0x4'));var Mustache=require('mustache');var util=require(_0x3ac3('0x5'));var path=require(_0x3ac3('0x6'));var sox=require(_0x3ac3('0x7'));var csv=require(_0x3ac3('0x8'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x3ac3('0x9'));var squel=require('squel');var crypto=require(_0x3ac3('0xa'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x3ac3('0xb'));var Papa=require('papaparse');var Redis=require(_0x3ac3('0xc'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x3ac3('0xd'))(_0x3ac3('0xe'));var utils=require(_0x3ac3('0xf'));var config=require(_0x3ac3('0x10'));var db=require(_0x3ac3('0x11'))['db'];function respondWithStatusCode(_0x3a3c7a,_0x523121){_0x523121=_0x523121||0xcc;return function(_0x2ec424){if(_0x2ec424){return _0x3a3c7a[_0x3ac3('0x12')](_0x523121);}return _0x3a3c7a['status'](_0x523121)['end']();};}function respondWithResult(_0x4e3c32,_0x3ff084){_0x3ff084=_0x3ff084||0xc8;return function(_0x1f1009){if(_0x1f1009){return _0x4e3c32[_0x3ac3('0x13')](_0x3ff084)['json'](_0x1f1009);}};}function respondWithFilteredResult(_0x11a96d,_0x2a788f){return function(_0x441f45){if(_0x441f45){var _0x4ee00b=_0x441f45[_0x3ac3('0x14')],_0x501b2c=_0x2a788f[_0x3ac3('0x15')],_0x35ee38=_0x2a788f['offset']+_0x2a788f[_0x3ac3('0x16')],_0x49b599;if(_0x35ee38>=_0x4ee00b){_0x35ee38=_0x4ee00b;_0x49b599=0xc8;}else{_0x49b599=0xce;}_0x11a96d[_0x3ac3('0x13')](_0x49b599);return _0x11a96d[_0x3ac3('0x17')](_0x3ac3('0x18'),_0x501b2c+'-'+_0x35ee38+'/'+_0x4ee00b)[_0x3ac3('0x19')](_0x441f45);}return null;};}function patchUpdates(_0x10a3df){return function(_0x28eaf8){try{jsonpatch[_0x3ac3('0x1a')](_0x28eaf8,_0x10a3df,!![]);}catch(_0x17e0f1){return BPromise[_0x3ac3('0x1b')](_0x17e0f1);}return _0x28eaf8['save']();};}function saveUpdates(_0x119e45,_0x5badea){return function(_0x34a26c){if(_0x34a26c){return _0x34a26c[_0x3ac3('0x1c')](_0x119e45)[_0x3ac3('0x1d')](function(_0xee2941){return _0xee2941;});}return null;};}function removeEntity(_0x5042f3,_0x3dd571){return function(_0x323490){if(_0x323490){return _0x323490[_0x3ac3('0x1e')]()[_0x3ac3('0x1d')](function(){_0x5042f3[_0x3ac3('0x13')](0xcc)['end']();});}};}function handleEntityNotFound(_0x45e3eb,_0x22fa4f){return function(_0x4e79d1){if(!_0x4e79d1){_0x45e3eb[_0x3ac3('0x12')](0x194);}return _0x4e79d1;};}function handleError(_0x5f3ba0,_0x5b2ce1){_0x5b2ce1=_0x5b2ce1||0x1f4;return function(_0x39cb7d){logger[_0x3ac3('0x1f')](_0x39cb7d[_0x3ac3('0x20')]);if(_0x39cb7d[_0x3ac3('0x21')]){delete _0x39cb7d[_0x3ac3('0x21')];}_0x5f3ba0[_0x3ac3('0x13')](_0x5b2ce1)[_0x3ac3('0x22')](_0x39cb7d);};}exports[_0x3ac3('0x23')]=function(_0x7e0f56,_0x542f88){var _0x4b0596={},_0x267c89={},_0x3584e9={'count':0x0,'rows':[]};var _0x50efcc=_[_0x3ac3('0x24')](db[_0x3ac3('0x25')][_0x3ac3('0x26')],function(_0x5ecd32){return{'name':_0x5ecd32['fieldName'],'type':_0x5ecd32[_0x3ac3('0x27')][_0x3ac3('0x28')]};});_0x267c89[_0x3ac3('0x29')]=_[_0x3ac3('0x24')](_0x50efcc,'name');_0x267c89[_0x3ac3('0x2a')]=_[_0x3ac3('0x2b')](_0x7e0f56[_0x3ac3('0x2a')]);_0x267c89[_0x3ac3('0x2c')]=_['intersection'](_0x267c89[_0x3ac3('0x29')],_0x267c89[_0x3ac3('0x2a')]);_0x4b0596[_0x3ac3('0x2d')]=_[_0x3ac3('0x2e')](_0x267c89[_0x3ac3('0x29')],qs[_0x3ac3('0x2f')](_0x7e0f56[_0x3ac3('0x2a')][_0x3ac3('0x2f')]));_0x4b0596['attributes']=_0x4b0596[_0x3ac3('0x2d')]['length']?_0x4b0596['attributes']:_0x267c89[_0x3ac3('0x29')];if(!_0x7e0f56[_0x3ac3('0x2a')][_0x3ac3('0x30')]('nolimit')){_0x4b0596[_0x3ac3('0x16')]=qs[_0x3ac3('0x16')](_0x7e0f56[_0x3ac3('0x2a')][_0x3ac3('0x16')]);_0x4b0596[_0x3ac3('0x15')]=qs[_0x3ac3('0x15')](_0x7e0f56['query'][_0x3ac3('0x15')]);}_0x4b0596[_0x3ac3('0x31')]=qs[_0x3ac3('0x32')](_0x7e0f56[_0x3ac3('0x2a')][_0x3ac3('0x32')]);_0x4b0596[_0x3ac3('0x33')]=qs['filters'](_[_0x3ac3('0x34')](_0x7e0f56['query'],_0x267c89['filters']));if(_0x7e0f56[_0x3ac3('0x2a')]['filter']){_0x4b0596[_0x3ac3('0x33')]=_[_0x3ac3('0x35')](_0x4b0596[_0x3ac3('0x33')],{'$or':_[_0x3ac3('0x24')](_0x50efcc,function(_0x2e0875){if(_0x2e0875[_0x3ac3('0x27')]!=='VIRTUAL'){var _0x331d68={};_0x331d68[_0x2e0875[_0x3ac3('0x21')]]={'$like':'%'+_0x7e0f56['query'][_0x3ac3('0x36')]+'%'};return _0x331d68;}})});}_0x4b0596=_[_0x3ac3('0x35')]({},_0x4b0596,_0x7e0f56[_0x3ac3('0x37')]);var _0x5dff5d={'where':_0x4b0596[_0x3ac3('0x33')]};return db[_0x3ac3('0x25')][_0x3ac3('0x14')](_0x5dff5d)[_0x3ac3('0x1d')](function(_0x13ec9c){_0x3584e9[_0x3ac3('0x14')]=_0x13ec9c;if(_0x7e0f56[_0x3ac3('0x2a')][_0x3ac3('0x38')]){_0x4b0596[_0x3ac3('0x39')]=[{'all':!![]}];}return db[_0x3ac3('0x25')][_0x3ac3('0x3a')](_0x4b0596);})['then'](function(_0x1f5d97){_0x3584e9[_0x3ac3('0x3b')]=_0x1f5d97;return _0x3584e9;})[_0x3ac3('0x1d')](respondWithFilteredResult(_0x542f88,_0x4b0596))['catch'](handleError(_0x542f88,null));};exports[_0x3ac3('0x3c')]=function(_0x4a9340,_0x2abfd7){var _0x11968d={'raw':!![],'where':{'id':_0x4a9340[_0x3ac3('0x3d')]['id']}},_0xe1e416={};_0xe1e416['model']=_[_0x3ac3('0x2b')](db[_0x3ac3('0x25')][_0x3ac3('0x26')]);_0xe1e416[_0x3ac3('0x2a')]=_['keys'](_0x4a9340[_0x3ac3('0x2a')]);_0xe1e416['filters']=_['intersection'](_0xe1e416['model'],_0xe1e416['query']);_0x11968d['attributes']=_[_0x3ac3('0x2e')](_0xe1e416[_0x3ac3('0x29')],qs['fields'](_0x4a9340[_0x3ac3('0x2a')][_0x3ac3('0x2f')]));_0x11968d[_0x3ac3('0x2d')]=_0x11968d[_0x3ac3('0x2d')]['length']?_0x11968d['attributes']:_0xe1e416[_0x3ac3('0x29')];if(_0x4a9340[_0x3ac3('0x2a')][_0x3ac3('0x38')]){_0x11968d[_0x3ac3('0x39')]=[{'all':!![]}];}_0x11968d=_[_0x3ac3('0x35')]({},_0x11968d,_0x4a9340[_0x3ac3('0x37')]);return db[_0x3ac3('0x25')][_0x3ac3('0x3e')](_0x11968d)[_0x3ac3('0x1d')](handleEntityNotFound(_0x2abfd7,null))['then'](respondWithResult(_0x2abfd7,null))[_0x3ac3('0x3f')](handleError(_0x2abfd7,null));};exports[_0x3ac3('0x40')]=function(_0x5a1e98,_0x2a1c86){return db['ChatQueueReport'][_0x3ac3('0x40')](_0x5a1e98[_0x3ac3('0x41')],{})[_0x3ac3('0x1d')](respondWithResult(_0x2a1c86,0xc9))['catch'](handleError(_0x2a1c86,null));};exports[_0x3ac3('0x1c')]=function(_0xbfc036,_0x4f6a35){if(_0xbfc036['body']['id']){delete _0xbfc036[_0x3ac3('0x41')]['id'];}return db['ChatQueueReport']['find']({'where':{'id':_0xbfc036['params']['id']}})[_0x3ac3('0x1d')](handleEntityNotFound(_0x4f6a35,null))['then'](saveUpdates(_0xbfc036[_0x3ac3('0x41')],null))[_0x3ac3('0x1d')](respondWithResult(_0x4f6a35,null))[_0x3ac3('0x3f')](handleError(_0x4f6a35,null));};exports['destroy']=function(_0x178875,_0x39ee6b){return db[_0x3ac3('0x25')][_0x3ac3('0x3e')]({'where':{'id':_0x178875[_0x3ac3('0x3d')]['id']}})[_0x3ac3('0x1d')](handleEntityNotFound(_0x39ee6b,null))[_0x3ac3('0x1d')](removeEntity(_0x39ee6b,null))[_0x3ac3('0x3f')](handleError(_0x39ee6b,null));};exports[_0x3ac3('0x42')]=function(_0xec50ce,_0x28b880){return db[_0x3ac3('0x25')][_0x3ac3('0x42')]()['then'](respondWithResult(_0x28b880,null))['catch'](handleError(_0x28b880,null));};
\ No newline at end of file
+var _0x26b8=['key','model','map','query','keys','filters','intersection','fields','attributes','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','length','find','create','body','describe','html-pdf','eml-format','request-promise','moment','bluebird','mustache','util','sox','to-csv','crypto','jsforce','desk.js','papaparse','ioredis','api','end','status','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','sendStatus','name','index','ChatQueueReport','rawAttributes','fieldName','type'];(function(_0x3d7f50,_0x31c360){var _0x3d1a06=function(_0x3a2322){while(--_0x3a2322){_0x3d7f50['push'](_0x3d7f50['shift']());}};_0x3d1a06(++_0x31c360);}(_0x26b8,0x1f4));var _0x826b=function(_0x4bfb35,_0x5b75a3){_0x4bfb35=_0x4bfb35-0x0;var _0x1e0e1c=_0x26b8[_0x4bfb35];return _0x1e0e1c;};'use strict';var pdf=require(_0x826b('0x0'));var emlformat=require(_0x826b('0x1'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x826b('0x2'));var moment=require(_0x826b('0x3'));var BPromise=require(_0x826b('0x4'));var Mustache=require(_0x826b('0x5'));var util=require(_0x826b('0x6'));var path=require('path');var sox=require(_0x826b('0x7'));var csv=require(_0x826b('0x8'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x826b('0x9'));var jsforce=require(_0x826b('0xa'));var deskjs=require(_0x826b('0xb'));var toCsv=require(_0x826b('0x8'));var querystring=require('querystring');var Papa=require(_0x826b('0xc'));var Redis=require(_0x826b('0xd'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x826b('0xe'));var utils=require('../../config/utils');var config=require('../../config/environment');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x2f4902,_0xfa9e09){_0xfa9e09=_0xfa9e09||0xcc;return function(_0x5ecf5e){if(_0x5ecf5e){return _0x2f4902['sendStatus'](_0xfa9e09);}return _0x2f4902['status'](_0xfa9e09)[_0x826b('0xf')]();};}function respondWithResult(_0x36cdec,_0x623c91){_0x623c91=_0x623c91||0xc8;return function(_0x2dda2a){if(_0x2dda2a){return _0x36cdec[_0x826b('0x10')](_0x623c91)[_0x826b('0x11')](_0x2dda2a);}};}function respondWithFilteredResult(_0x4f60be,_0x388538){return function(_0x2aea5c){if(_0x2aea5c){var _0x4a11c0=_0x2aea5c[_0x826b('0x12')],_0x49f8dd=_0x388538['offset'],_0x2f3dc4=_0x388538[_0x826b('0x13')]+_0x388538[_0x826b('0x14')],_0x5e75b5;if(_0x2f3dc4>=_0x4a11c0){_0x2f3dc4=_0x4a11c0;_0x5e75b5=0xc8;}else{_0x5e75b5=0xce;}_0x4f60be[_0x826b('0x10')](_0x5e75b5);return _0x4f60be[_0x826b('0x15')](_0x826b('0x16'),_0x49f8dd+'-'+_0x2f3dc4+'/'+_0x4a11c0)['json'](_0x2aea5c);}return null;};}function patchUpdates(_0x206057){return function(_0x524421){try{jsonpatch[_0x826b('0x17')](_0x524421,_0x206057,!![]);}catch(_0x5bf600){return BPromise[_0x826b('0x18')](_0x5bf600);}return _0x524421[_0x826b('0x19')]();};}function saveUpdates(_0xd406e2,_0x49820d){return function(_0x48842a){if(_0x48842a){return _0x48842a[_0x826b('0x1a')](_0xd406e2)[_0x826b('0x1b')](function(_0x3c371b){return _0x3c371b;});}return null;};}function removeEntity(_0x585a1d,_0x47738b){return function(_0x2ebbad){if(_0x2ebbad){return _0x2ebbad[_0x826b('0x1c')]()[_0x826b('0x1b')](function(){_0x585a1d[_0x826b('0x10')](0xcc)[_0x826b('0xf')]();});}};}function handleEntityNotFound(_0x429fa8,_0x45359c){return function(_0x41b80f){if(!_0x41b80f){_0x429fa8[_0x826b('0x1d')](0x194);}return _0x41b80f;};}function handleError(_0x554516,_0xe67800){_0xe67800=_0xe67800||0x1f4;return function(_0x2d6142){logger['error'](_0x2d6142['stack']);if(_0x2d6142[_0x826b('0x1e')]){delete _0x2d6142['name'];}_0x554516[_0x826b('0x10')](_0xe67800)['send'](_0x2d6142);};}exports[_0x826b('0x1f')]=function(_0x2a3d97,_0xa5a0e6){var _0x11cd98={},_0x5ecfb8={},_0x231ab2={'count':0x0,'rows':[]};var _0x36b064=_['map'](db[_0x826b('0x20')][_0x826b('0x21')],function(_0x1e3e93){return{'name':_0x1e3e93[_0x826b('0x22')],'type':_0x1e3e93[_0x826b('0x23')][_0x826b('0x24')]};});_0x5ecfb8[_0x826b('0x25')]=_[_0x826b('0x26')](_0x36b064,_0x826b('0x1e'));_0x5ecfb8[_0x826b('0x27')]=_[_0x826b('0x28')](_0x2a3d97['query']);_0x5ecfb8[_0x826b('0x29')]=_[_0x826b('0x2a')](_0x5ecfb8[_0x826b('0x25')],_0x5ecfb8[_0x826b('0x27')]);_0x11cd98['attributes']=_[_0x826b('0x2a')](_0x5ecfb8[_0x826b('0x25')],qs[_0x826b('0x2b')](_0x2a3d97['query'][_0x826b('0x2b')]));_0x11cd98[_0x826b('0x2c')]=_0x11cd98[_0x826b('0x2c')]['length']?_0x11cd98[_0x826b('0x2c')]:_0x5ecfb8[_0x826b('0x25')];if(!_0x2a3d97[_0x826b('0x27')][_0x826b('0x2d')](_0x826b('0x2e'))){_0x11cd98[_0x826b('0x14')]=qs[_0x826b('0x14')](_0x2a3d97[_0x826b('0x27')]['limit']);_0x11cd98[_0x826b('0x13')]=qs[_0x826b('0x13')](_0x2a3d97[_0x826b('0x27')][_0x826b('0x13')]);}_0x11cd98[_0x826b('0x2f')]=qs['sort'](_0x2a3d97[_0x826b('0x27')][_0x826b('0x30')]);_0x11cd98['where']=qs[_0x826b('0x29')](_[_0x826b('0x31')](_0x2a3d97[_0x826b('0x27')],_0x5ecfb8[_0x826b('0x29')]));if(_0x2a3d97['query'][_0x826b('0x32')]){_0x11cd98[_0x826b('0x33')]=_[_0x826b('0x34')](_0x11cd98[_0x826b('0x33')],{'$or':_[_0x826b('0x26')](_0x36b064,function(_0x356c65){if(_0x356c65['type']!==_0x826b('0x35')){var _0x47ca94={};_0x47ca94[_0x356c65['name']]={'$like':'%'+_0x2a3d97[_0x826b('0x27')]['filter']+'%'};return _0x47ca94;}})});}_0x11cd98=_['merge']({},_0x11cd98,_0x2a3d97[_0x826b('0x36')]);var _0x152686={'where':_0x11cd98[_0x826b('0x33')]};return db[_0x826b('0x20')]['count'](_0x152686)['then'](function(_0xb4e568){_0x231ab2['count']=_0xb4e568;if(_0x2a3d97['query'][_0x826b('0x37')]){_0x11cd98[_0x826b('0x38')]=[{'all':!![]}];}return db['ChatQueueReport'][_0x826b('0x39')](_0x11cd98);})[_0x826b('0x1b')](function(_0x283b65){_0x231ab2[_0x826b('0x3a')]=_0x283b65;return _0x231ab2;})['then'](respondWithFilteredResult(_0xa5a0e6,_0x11cd98))[_0x826b('0x3b')](handleError(_0xa5a0e6,null));};exports[_0x826b('0x3c')]=function(_0x4da952,_0x3b8e01){var _0x3068b7={'raw':!![],'where':{'id':_0x4da952[_0x826b('0x3d')]['id']}},_0x40be0c={};_0x40be0c[_0x826b('0x25')]=_[_0x826b('0x28')](db['ChatQueueReport'][_0x826b('0x21')]);_0x40be0c['query']=_['keys'](_0x4da952[_0x826b('0x27')]);_0x40be0c[_0x826b('0x29')]=_[_0x826b('0x2a')](_0x40be0c[_0x826b('0x25')],_0x40be0c[_0x826b('0x27')]);_0x3068b7[_0x826b('0x2c')]=_['intersection'](_0x40be0c[_0x826b('0x25')],qs[_0x826b('0x2b')](_0x4da952[_0x826b('0x27')]['fields']));_0x3068b7['attributes']=_0x3068b7[_0x826b('0x2c')][_0x826b('0x3e')]?_0x3068b7['attributes']:_0x40be0c[_0x826b('0x25')];if(_0x4da952[_0x826b('0x27')][_0x826b('0x37')]){_0x3068b7[_0x826b('0x38')]=[{'all':!![]}];}_0x3068b7=_[_0x826b('0x34')]({},_0x3068b7,_0x4da952[_0x826b('0x36')]);return db[_0x826b('0x20')][_0x826b('0x3f')](_0x3068b7)[_0x826b('0x1b')](handleEntityNotFound(_0x3b8e01,null))['then'](respondWithResult(_0x3b8e01,null))[_0x826b('0x3b')](handleError(_0x3b8e01,null));};exports[_0x826b('0x40')]=function(_0x152aaa,_0x26961f){return db[_0x826b('0x20')][_0x826b('0x40')](_0x152aaa[_0x826b('0x41')],{})['then'](respondWithResult(_0x26961f,0xc9))[_0x826b('0x3b')](handleError(_0x26961f,null));};exports[_0x826b('0x1a')]=function(_0x47a5aa,_0x58616a){if(_0x47a5aa[_0x826b('0x41')]['id']){delete _0x47a5aa['body']['id'];}return db['ChatQueueReport'][_0x826b('0x3f')]({'where':{'id':_0x47a5aa[_0x826b('0x3d')]['id']}})[_0x826b('0x1b')](handleEntityNotFound(_0x58616a,null))[_0x826b('0x1b')](saveUpdates(_0x47a5aa['body'],null))[_0x826b('0x1b')](respondWithResult(_0x58616a,null))['catch'](handleError(_0x58616a,null));};exports[_0x826b('0x1c')]=function(_0x37c4b2,_0x3baa41){return db[_0x826b('0x20')]['find']({'where':{'id':_0x37c4b2[_0x826b('0x3d')]['id']}})[_0x826b('0x1b')](handleEntityNotFound(_0x3baa41,null))[_0x826b('0x1b')](removeEntity(_0x3baa41,null))[_0x826b('0x3b')](handleError(_0x3baa41,null));};exports['describe']=function(_0x547f20,_0x1feb2f){return db[_0x826b('0x20')][_0x826b('0x42')]()[_0x826b('0x1b')](respondWithResult(_0x1feb2f,null))[_0x826b('0x3b')](handleError(_0x1feb2f,null));};
\ No newline at end of file
diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js
index 57ce95f..835d1e6 100644
--- a/server/api/chatQueueReport/chatQueueReport.model.js
+++ b/server/api/chatQueueReport/chatQueueReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x4f6f=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./chatQueueReport.attributes','exports','define','ChatQueueReport','report_chat_queue','uniqueid','lodash','util'];(function(_0x90e09e,_0x420226){var _0xd07268=function(_0xda8845){while(--_0xda8845){_0x90e09e['push'](_0x90e09e['shift']());}};_0xd07268(++_0x420226);}(_0x4f6f,0x16a));var _0xf4f6=function(_0x484c03,_0x13c1d2){_0x484c03=_0x484c03-0x0;var _0x294127=_0x4f6f[_0x484c03];return _0x294127;};'use strict';var _=require(_0xf4f6('0x0'));var util=require(_0xf4f6('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xf4f6('0x2'));var BPromise=require(_0xf4f6('0x3'));var rp=require(_0xf4f6('0x4'));var fs=require('fs');var path=require(_0xf4f6('0x5'));var rimraf=require(_0xf4f6('0x6'));var config=require(_0xf4f6('0x7'));var attributes=require(_0xf4f6('0x8'));module[_0xf4f6('0x9')]=function(_0x355413,_0x480a44){return _0x355413[_0xf4f6('0xa')](_0xf4f6('0xb'),attributes,{'tableName':_0xf4f6('0xc'),'paranoid':![],'indexes':[{'name':_0xf4f6('0xd'),'fields':[_0xf4f6('0xd')]}],'timestamps':!![]});};
\ No newline at end of file
+var _0xe91f=['request-promise','../../config/environment','./chatQueueReport.attributes','define','ChatQueueReport','report_chat_queue','uniqueid','util','../../config/logger','api','moment','bluebird'];(function(_0x187279,_0x26d152){var _0x3da59d=function(_0x41c808){while(--_0x41c808){_0x187279['push'](_0x187279['shift']());}};_0x3da59d(++_0x26d152);}(_0xe91f,0x7f));var _0xfe91=function(_0x511212,_0x4ec634){_0x511212=_0x511212-0x0;var _0x519f10=_0xe91f[_0x511212];return _0x519f10;};'use strict';var _=require('lodash');var util=require(_0xfe91('0x0'));var logger=require(_0xfe91('0x1'))(_0xfe91('0x2'));var moment=require(_0xfe91('0x3'));var BPromise=require(_0xfe91('0x4'));var rp=require(_0xfe91('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xfe91('0x6'));var attributes=require(_0xfe91('0x7'));module['exports']=function(_0x5c51c8,_0x5e83b3){return _0x5c51c8[_0xfe91('0x8')](_0xfe91('0x9'),attributes,{'tableName':_0xfe91('0xa'),'paranoid':![],'indexes':[{'name':_0xfe91('0xb'),'fields':[_0xfe91('0xb')]}],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js
index b802108..d2b251b 100644
--- a/server/api/chatQueueReport/chatQueueReport.rpc.js
+++ b/server/api/chatQueueReport/chatQueueReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x2e77=['message','result','catch','ChatQueueReport','create','body','options','raw','then','CreateChatQueueReport','UpdateChatQueueReport','update','where','attributes','limit','debug','lodash','moment','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','client','http','request','info','ChatQueueReport,\x20%s,\x20%s','request\x20sent','ChatQueueReport,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x39092c,_0x167f0c){var _0x7e47a=function(_0x17f710){while(--_0x17f710){_0x39092c['push'](_0x39092c['shift']());}};_0x7e47a(++_0x167f0c);}(_0x2e77,0x94));var _0x72e7=function(_0x2053ac,_0x3ee7cc){_0x2053ac=_0x2053ac-0x0;var _0x800333=_0x2e77[_0x2053ac];return _0x800333;};'use strict';var _=require(_0x72e7('0x0'));var util=require('util');var moment=require(_0x72e7('0x1'));var BPromise=require('bluebird');var rs=require(_0x72e7('0x2'));var fs=require('fs');var Redis=require(_0x72e7('0x3'));var db=require(_0x72e7('0x4'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x72e7('0x5'));var config=require(_0x72e7('0x6'));var jayson=require('jayson/promise');var client=jayson[_0x72e7('0x7')][_0x72e7('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x590c16,_0x231333,_0x87006d){return new BPromise(function(_0x194dab,_0x318d04){return client[_0x72e7('0x9')](_0x590c16,_0x87006d)['then'](function(_0x5d7c91){logger[_0x72e7('0xa')](_0x72e7('0xb'),_0x231333,_0x72e7('0xc'));logger['debug'](_0x72e7('0xd'),_0x231333,_0x72e7('0xc'),JSON[_0x72e7('0xe')](_0x5d7c91));if(_0x5d7c91[_0x72e7('0xf')]){if(_0x5d7c91[_0x72e7('0xf')][_0x72e7('0x10')]===0x1f4){logger[_0x72e7('0xf')](_0x72e7('0xb'),_0x231333,_0x5d7c91[_0x72e7('0xf')][_0x72e7('0x11')]);return _0x318d04(_0x5d7c91[_0x72e7('0xf')][_0x72e7('0x11')]);}logger[_0x72e7('0xf')](_0x72e7('0xb'),_0x231333,_0x5d7c91['error'][_0x72e7('0x11')]);return _0x194dab(_0x5d7c91[_0x72e7('0xf')][_0x72e7('0x11')]);}else{logger[_0x72e7('0xa')](_0x72e7('0xb'),_0x231333,'request\x20sent');_0x194dab(_0x5d7c91[_0x72e7('0x12')][_0x72e7('0x11')]);}})[_0x72e7('0x13')](function(_0x140a62){logger[_0x72e7('0xf')](_0x72e7('0xb'),_0x231333,_0x140a62);_0x318d04(_0x140a62);});});}exports['CreateChatQueueReport']=function(_0x3f6178){var _0x158426=this;return new Promise(function(_0x11ae27,_0x422dcf){return db[_0x72e7('0x14')][_0x72e7('0x15')](_0x3f6178[_0x72e7('0x16')],{'raw':_0x3f6178[_0x72e7('0x17')]?_0x3f6178['options'][_0x72e7('0x18')]===undefined?!![]:![]:!![]})[_0x72e7('0x19')](function(_0xc07648){logger[_0x72e7('0xa')](_0x72e7('0x1a'),_0x3f6178);logger['debug']('CreateChatQueueReport',_0x3f6178,JSON[_0x72e7('0xe')](_0xc07648));_0x11ae27(_0xc07648);})['catch'](function(_0x385aab){logger[_0x72e7('0xf')](_0x72e7('0x1a'),_0x385aab[_0x72e7('0x11')],_0x3f6178);_0x422dcf(_0x158426[_0x72e7('0xf')](0x1f4,_0x385aab['message']));});});};exports[_0x72e7('0x1b')]=function(_0x252aa1){var _0x152993=this;return new Promise(function(_0xa96bb8,_0x36210a){return db[_0x72e7('0x14')][_0x72e7('0x1c')](_0x252aa1['body'],{'raw':_0x252aa1['options']?_0x252aa1[_0x72e7('0x17')][_0x72e7('0x18')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x252aa1[_0x72e7('0x17')]?_0x252aa1[_0x72e7('0x17')][_0x72e7('0x1d')]||null:null,'attributes':_0x252aa1['options']?_0x252aa1[_0x72e7('0x17')][_0x72e7('0x1e')]||null:null,'limit':_0x252aa1[_0x72e7('0x17')]?_0x252aa1[_0x72e7('0x17')][_0x72e7('0x1f')]||null:null})[_0x72e7('0x19')](function(_0x211896){logger['info'](_0x72e7('0x1b'),_0x252aa1);logger[_0x72e7('0x20')](_0x72e7('0x1b'),_0x252aa1,JSON[_0x72e7('0xe')](_0x211896));_0xa96bb8(_0x211896);})['catch'](function(_0x1aeca0){logger[_0x72e7('0xf')](_0x72e7('0x1b'),_0x1aeca0[_0x72e7('0x11')],_0x252aa1);_0x36210a(_0x152993['error'](0x1f4,_0x1aeca0[_0x72e7('0x11')]));});});};
\ No newline at end of file
+var _0xbe94=['error','code','message','result','catch','CreateChatQueueReport','ChatQueueReport','body','options','debug','update','raw','where','limit','UpdateChatQueueReport','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','request','then','info','ChatQueueReport,\x20%s,\x20%s','request\x20sent','stringify'];(function(_0x3f13e9,_0x3dc700){var _0xa2b867=function(_0x16ab2c){while(--_0x16ab2c){_0x3f13e9['push'](_0x3f13e9['shift']());}};_0xa2b867(++_0x3dc700);}(_0xbe94,0xaf));var _0x4be9=function(_0x393814,_0x367a00){_0x393814=_0x393814-0x0;var _0x5d7a5a=_0xbe94[_0x393814];return _0x5d7a5a;};'use strict';var _=require(_0x4be9('0x0'));var util=require('util');var moment=require(_0x4be9('0x1'));var BPromise=require(_0x4be9('0x2'));var rs=require(_0x4be9('0x3'));var fs=require('fs');var Redis=require(_0x4be9('0x4'));var db=require(_0x4be9('0x5'))['db'];var utils=require(_0x4be9('0x6'));var logger=require(_0x4be9('0x7'))(_0x4be9('0x8'));var config=require(_0x4be9('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x4be9('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x186876,_0x91884e,_0x453c73){return new BPromise(function(_0xa75c89,_0x151ec4){return client[_0x4be9('0xb')](_0x186876,_0x453c73)[_0x4be9('0xc')](function(_0x21b224){logger[_0x4be9('0xd')](_0x4be9('0xe'),_0x91884e,_0x4be9('0xf'));logger['debug']('ChatQueueReport,\x20%s,\x20%s,\x20%s',_0x91884e,'request\x20sent',JSON[_0x4be9('0x10')](_0x21b224));if(_0x21b224[_0x4be9('0x11')]){if(_0x21b224['error'][_0x4be9('0x12')]===0x1f4){logger[_0x4be9('0x11')](_0x4be9('0xe'),_0x91884e,_0x21b224[_0x4be9('0x11')]['message']);return _0x151ec4(_0x21b224[_0x4be9('0x11')][_0x4be9('0x13')]);}logger['error'](_0x4be9('0xe'),_0x91884e,_0x21b224[_0x4be9('0x11')][_0x4be9('0x13')]);return _0xa75c89(_0x21b224[_0x4be9('0x11')][_0x4be9('0x13')]);}else{logger['info'](_0x4be9('0xe'),_0x91884e,'request\x20sent');_0xa75c89(_0x21b224[_0x4be9('0x14')]['message']);}})[_0x4be9('0x15')](function(_0x256e45){logger[_0x4be9('0x11')](_0x4be9('0xe'),_0x91884e,_0x256e45);_0x151ec4(_0x256e45);});});}exports[_0x4be9('0x16')]=function(_0x52b5b7){var _0x335607=this;return new Promise(function(_0x37e177,_0x112619){return db[_0x4be9('0x17')]['create'](_0x52b5b7[_0x4be9('0x18')],{'raw':_0x52b5b7[_0x4be9('0x19')]?_0x52b5b7['options']['raw']===undefined?!![]:![]:!![]})[_0x4be9('0xc')](function(_0x51b081){logger['info'](_0x4be9('0x16'),_0x52b5b7);logger[_0x4be9('0x1a')](_0x4be9('0x16'),_0x52b5b7,JSON[_0x4be9('0x10')](_0x51b081));_0x37e177(_0x51b081);})[_0x4be9('0x15')](function(_0x16ed47){logger['error'](_0x4be9('0x16'),_0x16ed47['message'],_0x52b5b7);_0x112619(_0x335607[_0x4be9('0x11')](0x1f4,_0x16ed47[_0x4be9('0x13')]));});});};exports['UpdateChatQueueReport']=function(_0x13a4e5){var _0x1a42bf=this;return new Promise(function(_0x38c9d2,_0xbf00fb){return db[_0x4be9('0x17')][_0x4be9('0x1b')](_0x13a4e5[_0x4be9('0x18')],{'raw':_0x13a4e5['options']?_0x13a4e5[_0x4be9('0x19')][_0x4be9('0x1c')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x13a4e5[_0x4be9('0x19')]?_0x13a4e5['options'][_0x4be9('0x1d')]||null:null,'attributes':_0x13a4e5[_0x4be9('0x19')]?_0x13a4e5[_0x4be9('0x19')]['attributes']||null:null,'limit':_0x13a4e5[_0x4be9('0x19')]?_0x13a4e5[_0x4be9('0x19')][_0x4be9('0x1e')]||null:null})[_0x4be9('0xc')](function(_0x2ffdf4){logger[_0x4be9('0xd')]('UpdateChatQueueReport',_0x13a4e5);logger[_0x4be9('0x1a')](_0x4be9('0x1f'),_0x13a4e5,JSON[_0x4be9('0x10')](_0x2ffdf4));_0x38c9d2(_0x2ffdf4);})[_0x4be9('0x15')](function(_0x3e3922){logger[_0x4be9('0x11')]('UpdateChatQueueReport',_0x3e3922['message'],_0x13a4e5);_0xbf00fb(_0x1a42bf[_0x4be9('0x11')](0x1f4,_0x3e3922[_0x4be9('0x13')]));});});};
\ No newline at end of file
diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js
index 5213e1b..f542e51 100644
--- a/server/api/chatQueueReport/index.js
+++ b/server/api/chatQueueReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf4d6=['./chatQueueReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show','post','create','put','delete','exports','multer','util','express','Router','../../components/auth/service','../../config/environment'];(function(_0x5a20a9,_0x15f5de){var _0x474d88=function(_0x3e86fe){while(--_0x3e86fe){_0x5a20a9['push'](_0x5a20a9['shift']());}};_0x474d88(++_0x15f5de);}(_0xf4d6,0x150));var _0x6f4d=function(_0x209b1e,_0x48368f){_0x209b1e=_0x209b1e-0x0;var _0x395a5a=_0xf4d6[_0x209b1e];return _0x395a5a;};'use strict';var multer=require(_0x6f4d('0x0'));var util=require(_0x6f4d('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6f4d('0x2'));var router=express[_0x6f4d('0x3')]();var auth=require(_0x6f4d('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6f4d('0x5'));var controller=require(_0x6f4d('0x6'));router['get']('/',auth[_0x6f4d('0x7')](),controller[_0x6f4d('0x8')]);router[_0x6f4d('0x9')](_0x6f4d('0xa'),auth['isAuthenticated'](),controller[_0x6f4d('0xb')]);router['get'](_0x6f4d('0xc'),auth[_0x6f4d('0x7')](),controller[_0x6f4d('0xd')]);router[_0x6f4d('0xe')]('/',auth[_0x6f4d('0x7')](),controller[_0x6f4d('0xf')]);router[_0x6f4d('0x10')](_0x6f4d('0xc'),auth[_0x6f4d('0x7')](),controller['update']);router[_0x6f4d('0x11')]('/:id',auth[_0x6f4d('0x7')](),controller['destroy']);module[_0x6f4d('0x12')]=router;
\ No newline at end of file
+var _0xce1b=['multer','util','path','express','Router','../../components/auth/service','../../config/environment','./chatQueueReport.controller','isAuthenticated','index','get','show','post','put','/:id','update','delete','destroy'];(function(_0x1c0e60,_0xd8a2b8){var _0x3276d1=function(_0x21041d){while(--_0x21041d){_0x1c0e60['push'](_0x1c0e60['shift']());}};_0x3276d1(++_0xd8a2b8);}(_0xce1b,0x132));var _0xbce1=function(_0x382e21,_0x1a5908){_0x382e21=_0x382e21-0x0;var _0x5f14c5=_0xce1b[_0x382e21];return _0x5f14c5;};'use strict';var multer=require(_0xbce1('0x0'));var util=require(_0xbce1('0x1'));var path=require(_0xbce1('0x2'));var timeout=require('connect-timeout');var express=require(_0xbce1('0x3'));var router=express[_0xbce1('0x4')]();var auth=require(_0xbce1('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xbce1('0x6'));var controller=require(_0xbce1('0x7'));router['get']('/',auth[_0xbce1('0x8')](),controller[_0xbce1('0x9')]);router[_0xbce1('0xa')]('/describe',auth[_0xbce1('0x8')](),controller['describe']);router[_0xbce1('0xa')]('/:id',auth[_0xbce1('0x8')](),controller[_0xbce1('0xb')]);router[_0xbce1('0xc')]('/',auth[_0xbce1('0x8')](),controller['create']);router[_0xbce1('0xd')](_0xbce1('0xe'),auth[_0xbce1('0x8')](),controller[_0xbce1('0xf')]);router[_0xbce1('0x10')]('/:id',auth[_0xbce1('0x8')](),controller[_0xbce1('0x11')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js
index dd63078..1076b0b 100644
--- a/server/api/chatTransferReport/chatTransferReport.attributes.js
+++ b/server/api/chatTransferReport/chatTransferReport.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xbe06=['account','queue','NOW','moment','sequelize','exports','ENUM'];(function(_0x15e812,_0x44748d){var _0x264014=function(_0x565f46){while(--_0x565f46){_0x15e812['push'](_0x15e812['shift']());}};_0x264014(++_0x44748d);}(_0xbe06,0x153));var _0x6be0=function(_0x5f043c,_0x59e85a){_0x5f043c=_0x5f043c-0x0;var _0x184820=_0xbe06[_0x5f043c];return _0x184820;};'use strict';var moment=require(_0x6be0('0x0'));var Sequelize=require(_0x6be0('0x1'));module[_0x6be0('0x2')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x6be0('0x3')](_0x6be0('0x4'),'agent',_0x6be0('0x5')),'allowNull':![],'defaultValue':_0x6be0('0x5')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize[_0x6be0('0x6')]}};
\ No newline at end of file
+var _0x5626=['exports','agent','queue','DATE','NOW','moment','sequelize'];(function(_0x2533ae,_0x2cb66d){var _0x440a09=function(_0x3d3fe1){while(--_0x3d3fe1){_0x2533ae['push'](_0x2533ae['shift']());}};_0x440a09(++_0x2cb66d);}(_0x5626,0x19b));var _0x6562=function(_0x36c4aa,_0x3573b4){_0x36c4aa=_0x36c4aa-0x0;var _0x363818=_0x5626[_0x36c4aa];return _0x363818;};'use strict';var moment=require(_0x6562('0x0'));var Sequelize=require(_0x6562('0x1'));module[_0x6562('0x2')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['ENUM']('account',_0x6562('0x3'),'queue'),'allowNull':![],'defaultValue':_0x6562('0x4')},'transferredAt':{'type':Sequelize[_0x6562('0x5')],'allowNull':![],'defaultValue':Sequelize[_0x6562('0x6')]}};
\ No newline at end of file
diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js
index bc5e2c8..d2ff02b 100644
--- a/server/api/chatTransferReport/chatTransferReport.controller.js
+++ b/server/api/chatTransferReport/chatTransferReport.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x23b6=['fields','length','nolimit','order','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','params','keys','create','body','find','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','mustache','util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','../../components/parsers/advancedSearch','api','../../config/utils','../../config/environment','../../mysqldb','end','json','count','offset','limit','status','Content-Range','apply','reject','save','update','then','sendStatus','stack','name','send','map','ChatTransferReport','rawAttributes','type','key','query','filters','intersection','model','attributes'];(function(_0xd4636c,_0x34dbf6){var _0x5ee17d=function(_0x223c38){while(--_0x223c38){_0xd4636c['push'](_0xd4636c['shift']());}};_0x5ee17d(++_0x34dbf6);}(_0x23b6,0x9d));var _0x623b=function(_0xb833b1,_0x1c3d3f){_0xb833b1=_0xb833b1-0x0;var _0x1ab87a=_0x23b6[_0xb833b1];return _0x1ab87a;};'use strict';var pdf=require(_0x623b('0x0'));var emlformat=require(_0x623b('0x1'));var rimraf=require(_0x623b('0x2'));var zipdir=require(_0x623b('0x3'));var jsonpatch=require(_0x623b('0x4'));var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0x623b('0x5'));var util=require(_0x623b('0x6'));var path=require('path');var sox=require(_0x623b('0x7'));var csv=require(_0x623b('0x8'));var ejs=require(_0x623b('0x9'));var fs=require('fs');var _=require(_0x623b('0xa'));var squel=require(_0x623b('0xb'));var crypto=require(_0x623b('0xc'));var jsforce=require(_0x623b('0xd'));var deskjs=require(_0x623b('0xe'));var toCsv=require('to-csv');var querystring=require(_0x623b('0xf'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x623b('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x623b('0x11'));var utils=require(_0x623b('0x12'));var config=require(_0x623b('0x13'));var db=require(_0x623b('0x14'))['db'];function respondWithStatusCode(_0x200b18,_0x42aae2){_0x42aae2=_0x42aae2||0xcc;return function(_0x2b08d2){if(_0x2b08d2){return _0x200b18['sendStatus'](_0x42aae2);}return _0x200b18['status'](_0x42aae2)[_0x623b('0x15')]();};}function respondWithResult(_0x2ca39b,_0x4470b8){_0x4470b8=_0x4470b8||0xc8;return function(_0x38c4dc){if(_0x38c4dc){return _0x2ca39b['status'](_0x4470b8)[_0x623b('0x16')](_0x38c4dc);}};}function respondWithFilteredResult(_0x67d3ff,_0x4e4b78){return function(_0x374247){if(_0x374247){var _0x542532=_0x374247[_0x623b('0x17')],_0x15c8a7=_0x4e4b78['offset'],_0x1d0251=_0x4e4b78[_0x623b('0x18')]+_0x4e4b78[_0x623b('0x19')],_0x2e3410;if(_0x1d0251>=_0x542532){_0x1d0251=_0x542532;_0x2e3410=0xc8;}else{_0x2e3410=0xce;}_0x67d3ff[_0x623b('0x1a')](_0x2e3410);return _0x67d3ff['set'](_0x623b('0x1b'),_0x15c8a7+'-'+_0x1d0251+'/'+_0x542532)[_0x623b('0x16')](_0x374247);}return null;};}function patchUpdates(_0x3f8416){return function(_0x60fa7){try{jsonpatch[_0x623b('0x1c')](_0x60fa7,_0x3f8416,!![]);}catch(_0x281cb5){return BPromise[_0x623b('0x1d')](_0x281cb5);}return _0x60fa7[_0x623b('0x1e')]();};}function saveUpdates(_0x26ad89,_0x5ab37f){return function(_0x500b1c){if(_0x500b1c){return _0x500b1c[_0x623b('0x1f')](_0x26ad89)[_0x623b('0x20')](function(_0x4fa7a0){return _0x4fa7a0;});}return null;};}function removeEntity(_0x1e180b,_0x5cd8d3){return function(_0x260293){if(_0x260293){return _0x260293['destroy']()['then'](function(){_0x1e180b[_0x623b('0x1a')](0xcc)[_0x623b('0x15')]();});}};}function handleEntityNotFound(_0x45d0f0,_0x16ab40){return function(_0x1b84f6){if(!_0x1b84f6){_0x45d0f0[_0x623b('0x21')](0x194);}return _0x1b84f6;};}function handleError(_0x37233e,_0x1d4c4e){_0x1d4c4e=_0x1d4c4e||0x1f4;return function(_0x1a3e75){logger['error'](_0x1a3e75[_0x623b('0x22')]);if(_0x1a3e75[_0x623b('0x23')]){delete _0x1a3e75['name'];}_0x37233e[_0x623b('0x1a')](_0x1d4c4e)[_0x623b('0x24')](_0x1a3e75);};}exports['index']=function(_0x14cbe2,_0x49a53d){var _0x23d020={},_0x33a597={},_0x12fa0f={'count':0x0,'rows':[]};var _0x39290a=_[_0x623b('0x25')](db[_0x623b('0x26')][_0x623b('0x27')],function(_0x2cad78){return{'name':_0x2cad78['fieldName'],'type':_0x2cad78[_0x623b('0x28')][_0x623b('0x29')]};});_0x33a597['model']=_[_0x623b('0x25')](_0x39290a,'name');_0x33a597[_0x623b('0x2a')]=_['keys'](_0x14cbe2[_0x623b('0x2a')]);_0x33a597[_0x623b('0x2b')]=_[_0x623b('0x2c')](_0x33a597[_0x623b('0x2d')],_0x33a597[_0x623b('0x2a')]);_0x23d020[_0x623b('0x2e')]=_['intersection'](_0x33a597[_0x623b('0x2d')],qs[_0x623b('0x2f')](_0x14cbe2[_0x623b('0x2a')][_0x623b('0x2f')]));_0x23d020[_0x623b('0x2e')]=_0x23d020[_0x623b('0x2e')][_0x623b('0x30')]?_0x23d020[_0x623b('0x2e')]:_0x33a597[_0x623b('0x2d')];if(!_0x14cbe2[_0x623b('0x2a')]['hasOwnProperty'](_0x623b('0x31'))){_0x23d020[_0x623b('0x19')]=qs[_0x623b('0x19')](_0x14cbe2[_0x623b('0x2a')][_0x623b('0x19')]);_0x23d020[_0x623b('0x18')]=qs[_0x623b('0x18')](_0x14cbe2[_0x623b('0x2a')]['offset']);}_0x23d020[_0x623b('0x32')]=qs['sort'](_0x14cbe2[_0x623b('0x2a')]['sort']);_0x23d020[_0x623b('0x33')]=qs[_0x623b('0x2b')](_[_0x623b('0x34')](_0x14cbe2['query'],_0x33a597[_0x623b('0x2b')]));if(_0x14cbe2[_0x623b('0x2a')][_0x623b('0x35')]){_0x23d020[_0x623b('0x33')]=_[_0x623b('0x36')](_0x23d020[_0x623b('0x33')],{'$or':_[_0x623b('0x25')](_0x39290a,function(_0x1950b3){if(_0x1950b3[_0x623b('0x28')]!==_0x623b('0x37')){var _0x1a5914={};_0x1a5914[_0x1950b3['name']]={'$like':'%'+_0x14cbe2['query']['filter']+'%'};return _0x1a5914;}})});}_0x23d020=_['merge']({},_0x23d020,_0x14cbe2[_0x623b('0x38')]);var _0x4b04ee={'where':_0x23d020[_0x623b('0x33')]};return db[_0x623b('0x26')][_0x623b('0x17')](_0x4b04ee)[_0x623b('0x20')](function(_0x1c750f){_0x12fa0f['count']=_0x1c750f;if(_0x14cbe2[_0x623b('0x2a')][_0x623b('0x39')]){_0x23d020[_0x623b('0x3a')]=[{'all':!![]}];}return db[_0x623b('0x26')][_0x623b('0x3b')](_0x23d020);})['then'](function(_0x52d741){_0x12fa0f[_0x623b('0x3c')]=_0x52d741;return _0x12fa0f;})[_0x623b('0x20')](respondWithFilteredResult(_0x49a53d,_0x23d020))[_0x623b('0x3d')](handleError(_0x49a53d,null));};exports['show']=function(_0x38125b,_0x591b81){var _0x1dcd75={'raw':!![],'where':{'id':_0x38125b[_0x623b('0x3e')]['id']}},_0x5cb44e={};_0x5cb44e[_0x623b('0x2d')]=_[_0x623b('0x3f')](db[_0x623b('0x26')]['rawAttributes']);_0x5cb44e[_0x623b('0x2a')]=_[_0x623b('0x3f')](_0x38125b[_0x623b('0x2a')]);_0x5cb44e[_0x623b('0x2b')]=_[_0x623b('0x2c')](_0x5cb44e[_0x623b('0x2d')],_0x5cb44e[_0x623b('0x2a')]);_0x1dcd75['attributes']=_[_0x623b('0x2c')](_0x5cb44e['model'],qs[_0x623b('0x2f')](_0x38125b[_0x623b('0x2a')][_0x623b('0x2f')]));_0x1dcd75['attributes']=_0x1dcd75[_0x623b('0x2e')][_0x623b('0x30')]?_0x1dcd75[_0x623b('0x2e')]:_0x5cb44e[_0x623b('0x2d')];if(_0x38125b['query'][_0x623b('0x39')]){_0x1dcd75[_0x623b('0x3a')]=[{'all':!![]}];}_0x1dcd75=_[_0x623b('0x36')]({},_0x1dcd75,_0x38125b[_0x623b('0x38')]);return db['ChatTransferReport']['find'](_0x1dcd75)['then'](handleEntityNotFound(_0x591b81,null))[_0x623b('0x20')](respondWithResult(_0x591b81,null))[_0x623b('0x3d')](handleError(_0x591b81,null));};exports[_0x623b('0x40')]=function(_0x3ecfc4,_0x3ff5a3){return db[_0x623b('0x26')][_0x623b('0x40')](_0x3ecfc4['body'],{})[_0x623b('0x20')](respondWithResult(_0x3ff5a3,0xc9))[_0x623b('0x3d')](handleError(_0x3ff5a3,null));};exports[_0x623b('0x1f')]=function(_0x2b4a5b,_0x4d919e){if(_0x2b4a5b[_0x623b('0x41')]['id']){delete _0x2b4a5b['body']['id'];}return db[_0x623b('0x26')][_0x623b('0x42')]({'where':{'id':_0x2b4a5b['params']['id']}})[_0x623b('0x20')](handleEntityNotFound(_0x4d919e,null))['then'](saveUpdates(_0x2b4a5b[_0x623b('0x41')],null))['then'](respondWithResult(_0x4d919e,null))[_0x623b('0x3d')](handleError(_0x4d919e,null));};exports['destroy']=function(_0x3a8b2f,_0x5d126f){return db[_0x623b('0x26')][_0x623b('0x42')]({'where':{'id':_0x3a8b2f[_0x623b('0x3e')]['id']}})[_0x623b('0x20')](handleEntityNotFound(_0x5d126f,null))[_0x623b('0x20')](removeEntity(_0x5d126f,null))['catch'](handleError(_0x5d126f,null));};exports['describe']=function(_0x5dbd9e,_0x325691){return db[_0x623b('0x26')][_0x623b('0x43')]()['then'](respondWithResult(_0x325691,null))[_0x623b('0x3d')](handleError(_0x325691,null));};
\ No newline at end of file
+var _0x2097=['status','json','offset','limit','apply','reject','update','then','destroy','end','error','stack','name','send','index','map','ChatTransferReport','rawAttributes','type','key','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','merge','count','includeAll','findAll','rows','catch','params','include','options','create','body','find','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','sendStatus'];(function(_0x87724d,_0x4b15b5){var _0x5d7c0d=function(_0x12c697){while(--_0x12c697){_0x87724d['push'](_0x87724d['shift']());}};_0x5d7c0d(++_0x4b15b5);}(_0x2097,0xc4));var _0x7209=function(_0x531203,_0x23040d){_0x531203=_0x531203-0x0;var _0x463027=_0x2097[_0x531203];return _0x463027;};'use strict';var pdf=require(_0x7209('0x0'));var emlformat=require(_0x7209('0x1'));var rimraf=require(_0x7209('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x7209('0x3'));var rp=require(_0x7209('0x4'));var moment=require('moment');var BPromise=require(_0x7209('0x5'));var Mustache=require(_0x7209('0x6'));var util=require(_0x7209('0x7'));var path=require(_0x7209('0x8'));var sox=require(_0x7209('0x9'));var csv=require(_0x7209('0xa'));var ejs=require(_0x7209('0xb'));var fs=require('fs');var _=require(_0x7209('0xc'));var squel=require(_0x7209('0xd'));var crypto=require(_0x7209('0xe'));var jsforce=require(_0x7209('0xf'));var deskjs=require(_0x7209('0x10'));var toCsv=require('to-csv');var querystring=require(_0x7209('0x11'));var Papa=require('papaparse');var Redis=require(_0x7209('0x12'));var authService=require(_0x7209('0x13'));var qs=require('../../components/parsers/qs');var as=require(_0x7209('0x14'));var hardwareService=require(_0x7209('0x15'));var logger=require(_0x7209('0x16'))('api');var utils=require(_0x7209('0x17'));var config=require(_0x7209('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x90015d,_0x21ab6b){_0x21ab6b=_0x21ab6b||0xcc;return function(_0x345c49){if(_0x345c49){return _0x90015d[_0x7209('0x19')](_0x21ab6b);}return _0x90015d[_0x7209('0x1a')](_0x21ab6b)['end']();};}function respondWithResult(_0x2c5509,_0x5cdffc){_0x5cdffc=_0x5cdffc||0xc8;return function(_0x4fa756){if(_0x4fa756){return _0x2c5509[_0x7209('0x1a')](_0x5cdffc)[_0x7209('0x1b')](_0x4fa756);}};}function respondWithFilteredResult(_0x13fd60,_0x4a373c){return function(_0x5929ef){if(_0x5929ef){var _0x523e09=_0x5929ef['count'],_0x23f400=_0x4a373c[_0x7209('0x1c')],_0x4a665a=_0x4a373c['offset']+_0x4a373c[_0x7209('0x1d')],_0x3eecb7;if(_0x4a665a>=_0x523e09){_0x4a665a=_0x523e09;_0x3eecb7=0xc8;}else{_0x3eecb7=0xce;}_0x13fd60[_0x7209('0x1a')](_0x3eecb7);return _0x13fd60['set']('Content-Range',_0x23f400+'-'+_0x4a665a+'/'+_0x523e09)['json'](_0x5929ef);}return null;};}function patchUpdates(_0x3d6726){return function(_0x9ef570){try{jsonpatch[_0x7209('0x1e')](_0x9ef570,_0x3d6726,!![]);}catch(_0x3d9581){return BPromise[_0x7209('0x1f')](_0x3d9581);}return _0x9ef570['save']();};}function saveUpdates(_0x2dc7c6,_0x455224){return function(_0x30ea95){if(_0x30ea95){return _0x30ea95[_0x7209('0x20')](_0x2dc7c6)[_0x7209('0x21')](function(_0x124f7a){return _0x124f7a;});}return null;};}function removeEntity(_0x272377,_0x5e7863){return function(_0x4130ae){if(_0x4130ae){return _0x4130ae[_0x7209('0x22')]()[_0x7209('0x21')](function(){_0x272377[_0x7209('0x1a')](0xcc)[_0x7209('0x23')]();});}};}function handleEntityNotFound(_0x23b073,_0xc8aab1){return function(_0x516106){if(!_0x516106){_0x23b073[_0x7209('0x19')](0x194);}return _0x516106;};}function handleError(_0x542696,_0x2ad9c7){_0x2ad9c7=_0x2ad9c7||0x1f4;return function(_0x230901){logger[_0x7209('0x24')](_0x230901[_0x7209('0x25')]);if(_0x230901['name']){delete _0x230901[_0x7209('0x26')];}_0x542696[_0x7209('0x1a')](_0x2ad9c7)[_0x7209('0x27')](_0x230901);};}exports[_0x7209('0x28')]=function(_0x5f2833,_0x3d1fd1){var _0x487b77={},_0x8843d0={},_0x2a3a5f={'count':0x0,'rows':[]};var _0x23f37a=_[_0x7209('0x29')](db[_0x7209('0x2a')][_0x7209('0x2b')],function(_0x290c5f){return{'name':_0x290c5f['fieldName'],'type':_0x290c5f[_0x7209('0x2c')][_0x7209('0x2d')]};});_0x8843d0[_0x7209('0x2e')]=_[_0x7209('0x29')](_0x23f37a,_0x7209('0x26'));_0x8843d0['query']=_[_0x7209('0x2f')](_0x5f2833[_0x7209('0x30')]);_0x8843d0[_0x7209('0x31')]=_[_0x7209('0x32')](_0x8843d0['model'],_0x8843d0[_0x7209('0x30')]);_0x487b77[_0x7209('0x33')]=_['intersection'](_0x8843d0[_0x7209('0x2e')],qs[_0x7209('0x34')](_0x5f2833[_0x7209('0x30')][_0x7209('0x34')]));_0x487b77[_0x7209('0x33')]=_0x487b77[_0x7209('0x33')][_0x7209('0x35')]?_0x487b77[_0x7209('0x33')]:_0x8843d0['model'];if(!_0x5f2833[_0x7209('0x30')][_0x7209('0x36')](_0x7209('0x37'))){_0x487b77['limit']=qs['limit'](_0x5f2833[_0x7209('0x30')]['limit']);_0x487b77[_0x7209('0x1c')]=qs['offset'](_0x5f2833[_0x7209('0x30')][_0x7209('0x1c')]);}_0x487b77[_0x7209('0x38')]=qs[_0x7209('0x39')](_0x5f2833[_0x7209('0x30')][_0x7209('0x39')]);_0x487b77[_0x7209('0x3a')]=qs['filters'](_[_0x7209('0x3b')](_0x5f2833[_0x7209('0x30')],_0x8843d0[_0x7209('0x31')]));if(_0x5f2833[_0x7209('0x30')][_0x7209('0x3c')]){_0x487b77[_0x7209('0x3a')]=_['merge'](_0x487b77[_0x7209('0x3a')],{'$or':_[_0x7209('0x29')](_0x23f37a,function(_0x4bd8d8){if(_0x4bd8d8[_0x7209('0x2c')]!==_0x7209('0x3d')){var _0x3ceccb={};_0x3ceccb[_0x4bd8d8[_0x7209('0x26')]]={'$like':'%'+_0x5f2833[_0x7209('0x30')][_0x7209('0x3c')]+'%'};return _0x3ceccb;}})});}_0x487b77=_[_0x7209('0x3e')]({},_0x487b77,_0x5f2833['options']);var _0x17b192={'where':_0x487b77[_0x7209('0x3a')]};return db[_0x7209('0x2a')][_0x7209('0x3f')](_0x17b192)[_0x7209('0x21')](function(_0x5aa5f6){_0x2a3a5f[_0x7209('0x3f')]=_0x5aa5f6;if(_0x5f2833[_0x7209('0x30')][_0x7209('0x40')]){_0x487b77['include']=[{'all':!![]}];}return db[_0x7209('0x2a')][_0x7209('0x41')](_0x487b77);})['then'](function(_0x52c55a){_0x2a3a5f[_0x7209('0x42')]=_0x52c55a;return _0x2a3a5f;})[_0x7209('0x21')](respondWithFilteredResult(_0x3d1fd1,_0x487b77))[_0x7209('0x43')](handleError(_0x3d1fd1,null));};exports['show']=function(_0x3a59ba,_0x22f3c1){var _0xbc1aa6={'raw':!![],'where':{'id':_0x3a59ba[_0x7209('0x44')]['id']}},_0x2eef1e={};_0x2eef1e[_0x7209('0x2e')]=_['keys'](db[_0x7209('0x2a')][_0x7209('0x2b')]);_0x2eef1e[_0x7209('0x30')]=_[_0x7209('0x2f')](_0x3a59ba[_0x7209('0x30')]);_0x2eef1e['filters']=_['intersection'](_0x2eef1e[_0x7209('0x2e')],_0x2eef1e[_0x7209('0x30')]);_0xbc1aa6[_0x7209('0x33')]=_[_0x7209('0x32')](_0x2eef1e[_0x7209('0x2e')],qs['fields'](_0x3a59ba[_0x7209('0x30')][_0x7209('0x34')]));_0xbc1aa6[_0x7209('0x33')]=_0xbc1aa6[_0x7209('0x33')][_0x7209('0x35')]?_0xbc1aa6['attributes']:_0x2eef1e['model'];if(_0x3a59ba['query'][_0x7209('0x40')]){_0xbc1aa6[_0x7209('0x45')]=[{'all':!![]}];}_0xbc1aa6=_[_0x7209('0x3e')]({},_0xbc1aa6,_0x3a59ba[_0x7209('0x46')]);return db[_0x7209('0x2a')]['find'](_0xbc1aa6)[_0x7209('0x21')](handleEntityNotFound(_0x22f3c1,null))['then'](respondWithResult(_0x22f3c1,null))[_0x7209('0x43')](handleError(_0x22f3c1,null));};exports[_0x7209('0x47')]=function(_0x309e9f,_0xe23600){return db[_0x7209('0x2a')]['create'](_0x309e9f[_0x7209('0x48')],{})[_0x7209('0x21')](respondWithResult(_0xe23600,0xc9))[_0x7209('0x43')](handleError(_0xe23600,null));};exports[_0x7209('0x20')]=function(_0x1acb83,_0x5a7be6){if(_0x1acb83['body']['id']){delete _0x1acb83[_0x7209('0x48')]['id'];}return db[_0x7209('0x2a')][_0x7209('0x49')]({'where':{'id':_0x1acb83['params']['id']}})[_0x7209('0x21')](handleEntityNotFound(_0x5a7be6,null))['then'](saveUpdates(_0x1acb83[_0x7209('0x48')],null))[_0x7209('0x21')](respondWithResult(_0x5a7be6,null))[_0x7209('0x43')](handleError(_0x5a7be6,null));};exports['destroy']=function(_0x22a726,_0x1af990){return db[_0x7209('0x2a')][_0x7209('0x49')]({'where':{'id':_0x22a726['params']['id']}})[_0x7209('0x21')](handleEntityNotFound(_0x1af990,null))[_0x7209('0x21')](removeEntity(_0x1af990,null))[_0x7209('0x43')](handleError(_0x1af990,null));};exports['describe']=function(_0x137a5c,_0x464b76){return db[_0x7209('0x2a')]['describe']()[_0x7209('0x21')](respondWithResult(_0x464b76,null))[_0x7209('0x43')](handleError(_0x464b76,null));};
\ No newline at end of file
diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js
index 1439f92..af974d5 100644
--- a/server/api/chatTransferReport/chatTransferReport.model.js
+++ b/server/api/chatTransferReport/chatTransferReport.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x91a7=['uniqueid','util','../../config/logger','api','bluebird','path','./chatTransferReport.attributes','exports','ChatTransferReport','report_chat_transfer'];(function(_0x4675ea,_0x8f19c2){var _0x18fa7c=function(_0x19f897){while(--_0x19f897){_0x4675ea['push'](_0x4675ea['shift']());}};_0x18fa7c(++_0x8f19c2);}(_0x91a7,0xe7));var _0x791a=function(_0x5ec688,_0x115f65){_0x5ec688=_0x5ec688-0x0;var _0x557ef0=_0x91a7[_0x5ec688];return _0x557ef0;};'use strict';var _=require('lodash');var util=require(_0x791a('0x0'));var logger=require(_0x791a('0x1'))(_0x791a('0x2'));var moment=require('moment');var BPromise=require(_0x791a('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x791a('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x791a('0x5'));module[_0x791a('0x6')]=function(_0x49a9b7,_0x361f53){return _0x49a9b7['define'](_0x791a('0x7'),attributes,{'tableName':_0x791a('0x8'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x791a('0x9')]}],'timestamps':!![]});};
\ No newline at end of file
+var _0x42fb=['uniqueid','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','exports','define','report_chat_transfer'];(function(_0x1035c1,_0x2d8583){var _0x308d67=function(_0x58ddb6){while(--_0x58ddb6){_0x1035c1['push'](_0x1035c1['shift']());}};_0x308d67(++_0x2d8583);}(_0x42fb,0x9d));var _0xb42f=function(_0x4fe3eb,_0x49d94e){_0x4fe3eb=_0x4fe3eb-0x0;var _0x27a8ff=_0x42fb[_0x4fe3eb];return _0x27a8ff;};'use strict';var _=require(_0xb42f('0x0'));var util=require(_0xb42f('0x1'));var logger=require(_0xb42f('0x2'))(_0xb42f('0x3'));var moment=require(_0xb42f('0x4'));var BPromise=require(_0xb42f('0x5'));var rp=require(_0xb42f('0x6'));var fs=require('fs');var path=require(_0xb42f('0x7'));var rimraf=require('rimraf');var config=require(_0xb42f('0x8'));var attributes=require('./chatTransferReport.attributes');module[_0xb42f('0x9')]=function(_0x293444,_0x2caf77){return _0x293444[_0xb42f('0xa')]('ChatTransferReport',attributes,{'tableName':_0xb42f('0xb'),'paranoid':![],'indexes':[{'name':_0xb42f('0xc'),'fields':[_0xb42f('0xc')]}],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatTransferReport/chatTransferReport.rpc.js b/server/api/chatTransferReport/chatTransferReport.rpc.js
index 5997032..247928b 100644
--- a/server/api/chatTransferReport/chatTransferReport.rpc.js
+++ b/server/api/chatTransferReport/chatTransferReport.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xcb7b=['request\x20sent','ChatTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','then','info','ChatTransferReport,\x20%s,\x20%s'];(function(_0xb6e2ea,_0x3b26e9){var _0x2a57bb=function(_0x2a1ac9){while(--_0x2a1ac9){_0xb6e2ea['push'](_0xb6e2ea['shift']());}};_0x2a57bb(++_0x3b26e9);}(_0xcb7b,0x12c));var _0xbcb7=function(_0x360048,_0x4a9e68){_0x360048=_0x360048-0x0;var _0x447c22=_0xcb7b[_0x360048];return _0x447c22;};'use strict';var _=require(_0xbcb7('0x0'));var util=require(_0xbcb7('0x1'));var moment=require(_0xbcb7('0x2'));var BPromise=require(_0xbcb7('0x3'));var rs=require(_0xbcb7('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xbcb7('0x5'))['db'];var utils=require(_0xbcb7('0x6'));var logger=require(_0xbcb7('0x7'))('rpc');var config=require(_0xbcb7('0x8'));var jayson=require(_0xbcb7('0x9'));var client=jayson[_0xbcb7('0xa')][_0xbcb7('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2bc3fa,_0x4f29cc,_0x31b404){return new BPromise(function(_0x37e774,_0x271a61){return client['request'](_0x2bc3fa,_0x31b404)[_0xbcb7('0xc')](function(_0x5110c7){logger[_0xbcb7('0xd')](_0xbcb7('0xe'),_0x4f29cc,_0xbcb7('0xf'));logger['debug'](_0xbcb7('0x10'),_0x4f29cc,_0xbcb7('0xf'),JSON[_0xbcb7('0x11')](_0x5110c7));if(_0x5110c7[_0xbcb7('0x12')]){if(_0x5110c7[_0xbcb7('0x12')]['code']===0x1f4){logger[_0xbcb7('0x12')](_0xbcb7('0xe'),_0x4f29cc,_0x5110c7['error'][_0xbcb7('0x13')]);return _0x271a61(_0x5110c7[_0xbcb7('0x12')][_0xbcb7('0x13')]);}logger[_0xbcb7('0x12')](_0xbcb7('0xe'),_0x4f29cc,_0x5110c7['error'][_0xbcb7('0x13')]);return _0x37e774(_0x5110c7[_0xbcb7('0x12')]['message']);}else{logger[_0xbcb7('0xd')](_0xbcb7('0xe'),_0x4f29cc,_0xbcb7('0xf'));_0x37e774(_0x5110c7[_0xbcb7('0x14')]['message']);}})['catch'](function(_0x5ed9d8){logger[_0xbcb7('0x12')](_0xbcb7('0xe'),_0x4f29cc,_0x5ed9d8);_0x271a61(_0x5ed9d8);});});}
\ No newline at end of file
+var _0x46e8=['moment','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','then','info','ChatTransferReport,\x20%s,\x20%s','request\x20sent','debug','ChatTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x46e8,0x1f3));var _0x846e=function(_0x4e28e2,_0x19a1dc){_0x4e28e2=_0x4e28e2-0x0;var _0x36cead=_0x46e8[_0x4e28e2];return _0x36cead;};'use strict';var _=require(_0x846e('0x0'));var util=require('util');var moment=require(_0x846e('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x846e('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0x846e('0x3'));var logger=require(_0x846e('0x4'))(_0x846e('0x5'));var config=require(_0x846e('0x6'));var jayson=require(_0x846e('0x7'));var client=jayson['client'][_0x846e('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x5a6700,_0x455832,_0x11fdcb){return new BPromise(function(_0x1676a5,_0x28b742){return client['request'](_0x5a6700,_0x11fdcb)[_0x846e('0x9')](function(_0x1d1c2e){logger[_0x846e('0xa')](_0x846e('0xb'),_0x455832,_0x846e('0xc'));logger[_0x846e('0xd')](_0x846e('0xe'),_0x455832,_0x846e('0xc'),JSON[_0x846e('0xf')](_0x1d1c2e));if(_0x1d1c2e['error']){if(_0x1d1c2e[_0x846e('0x10')][_0x846e('0x11')]===0x1f4){logger[_0x846e('0x10')](_0x846e('0xb'),_0x455832,_0x1d1c2e['error'][_0x846e('0x12')]);return _0x28b742(_0x1d1c2e[_0x846e('0x10')][_0x846e('0x12')]);}logger[_0x846e('0x10')](_0x846e('0xb'),_0x455832,_0x1d1c2e['error']['message']);return _0x1676a5(_0x1d1c2e['error'][_0x846e('0x12')]);}else{logger[_0x846e('0xa')]('ChatTransferReport,\x20%s,\x20%s',_0x455832,'request\x20sent');_0x1676a5(_0x1d1c2e[_0x846e('0x13')][_0x846e('0x12')]);}})['catch'](function(_0x5d84d4){logger['error']('ChatTransferReport,\x20%s,\x20%s',_0x455832,_0x5d84d4);_0x28b742(_0x5d84d4);});});}
\ No newline at end of file
diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js
index ea49f45..98406e3 100644
--- a/server/api/chatTransferReport/index.js
+++ b/server/api/chatTransferReport/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x0b0e=['multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatTransferReport.controller','get','isAuthenticated','index','/describe','/:id','show','create','delete','exports'];(function(_0x1a9b21,_0x58e570){var _0x1572e9=function(_0x3b39d3){while(--_0x3b39d3){_0x1a9b21['push'](_0x1a9b21['shift']());}};_0x1572e9(++_0x58e570);}(_0x0b0e,0x187));var _0xe0b0=function(_0xe1b5f6,_0x210c09){_0xe1b5f6=_0xe1b5f6-0x0;var _0x44636e=_0x0b0e[_0xe1b5f6];return _0x44636e;};'use strict';var multer=require(_0xe0b0('0x0'));var util=require('util');var path=require(_0xe0b0('0x1'));var timeout=require('connect-timeout');var express=require(_0xe0b0('0x2'));var router=express[_0xe0b0('0x3')]();var auth=require(_0xe0b0('0x4'));var interaction=require(_0xe0b0('0x5'));var config=require(_0xe0b0('0x6'));var controller=require(_0xe0b0('0x7'));router[_0xe0b0('0x8')]('/',auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xa')]);router[_0xe0b0('0x8')](_0xe0b0('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xe0b0('0x8')](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xd')]);router['post']('/',auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xe')]);router['put'](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller['update']);router[_0xe0b0('0xf')](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller['destroy']);module[_0xe0b0('0x10')]=router;
\ No newline at end of file
+var _0x0b0e=['multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./chatTransferReport.controller','get','isAuthenticated','index','/describe','/:id','show','create','delete','exports'];(function(_0x1b5ec6,_0x37a396){var _0x253173=function(_0x24dc25){while(--_0x24dc25){_0x1b5ec6['push'](_0x1b5ec6['shift']());}};_0x253173(++_0x37a396);}(_0x0b0e,0x187));var _0xe0b0=function(_0x2b338b,_0x4a06ba){_0x2b338b=_0x2b338b-0x0;var _0x256f66=_0x0b0e[_0x2b338b];return _0x256f66;};'use strict';var multer=require(_0xe0b0('0x0'));var util=require('util');var path=require(_0xe0b0('0x1'));var timeout=require('connect-timeout');var express=require(_0xe0b0('0x2'));var router=express[_0xe0b0('0x3')]();var auth=require(_0xe0b0('0x4'));var interaction=require(_0xe0b0('0x5'));var config=require(_0xe0b0('0x6'));var controller=require(_0xe0b0('0x7'));router[_0xe0b0('0x8')]('/',auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xa')]);router[_0xe0b0('0x8')](_0xe0b0('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xe0b0('0x8')](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xd')]);router['post']('/',auth[_0xe0b0('0x9')](),controller[_0xe0b0('0xe')]);router['put'](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller['update']);router[_0xe0b0('0xf')](_0xe0b0('0xc'),auth[_0xe0b0('0x9')](),controller['destroy']);module[_0xe0b0('0x10')]=router;
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js
index 9ce873a..75cb580 100644
--- a/server/api/chatWebsite/chatWebsite.attributes.js
+++ b/server/api/chatWebsite/chatWebsite.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x35b9=['rounded','squared','We\x20are\x20here!','Chat','Send','Contact\x20us','Powered\x20by\x20xCALLY','TEXT','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Form\x20properly\x20submitted','Type\x20a\x20message','Skip','Feedback','star','thumb','input','name','getDataValue','onlineForm','stringify','textarea','Comments','offlineForm','parse','setDataValue','generate','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','New\x20offline\x20message\x20from\x20websiteName','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','Your\x20request\x20has\x20not\x20been\x20processed.','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','website_alias','alternate','#fafafa','System','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','sequelize','exports','STRING','address','email','#9f946a','INTEGER','BOOLEAN','ENUM'];(function(_0x52f0c1,_0x17e813){var _0x1a6d5c=function(_0x138dc0){while(--_0x138dc0){_0x52f0c1['push'](_0x52f0c1['shift']());}};_0x1a6d5c(++_0x17e813);}(_0x35b9,0x14e));var _0x935b=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x35b9[_0x2dafbe];return _0x58a45a;};'use strict';var Sequelize=require(_0x935b('0x0'));var rs=require('randomstring');module[_0x935b('0x1')]={'name':{'type':Sequelize[_0x935b('0x2')],'allowNull':![]},'address':{'type':Sequelize[_0x935b('0x2')],'allowNull':![],'unique':_0x935b('0x3')},'description':{'type':Sequelize[_0x935b('0x2')]},'mapKey':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x4')},'mapKeyOffline':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x4')},'key':{'type':Sequelize[_0x935b('0x2')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':'Agent'},'customerAlias':{'type':Sequelize[_0x935b('0x2')],'defaultValue':'Me'},'color':{'type':Sequelize[_0x935b('0x2')],'allowNull':![],'defaultValue':_0x935b('0x5'),'validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x935b('0x2')],'allowNull':![],'defaultValue':'#9f946a','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x935b('0x2')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x935b('0x6')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x935b('0x2')]},'animation':{'type':Sequelize[_0x935b('0x7')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x935b('0x8')](_0x935b('0x9'),_0x935b('0xa')),'defaultValue':_0x935b('0x9')},'header_online':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xb')},'start_chat_button':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xc')},'offline_chat_button':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xd')},'header_offline':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xe')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x935b('0x6')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xf')},'defaultWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x935b('0x10')]},'closingQuestion':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x11')},'formSubmitSuccessMessage':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x12')},'formSubmitFailureMessage':{'type':Sequelize['STRING'],'defaultValue':'Form\x20submission\x20error'},'noteTitle':{'type':Sequelize[_0x935b('0x2')],'defaultValue':'Note'},'placeholderMessage':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x13')},'closingMessage':{'type':Sequelize['STRING'],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'},'closingMessageButton':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xd')},'skipMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0x935b('0x14')},'conditionAgreement':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'enableSendButton':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x15')},'ratingType':{'type':Sequelize[_0x935b('0x8')](_0x935b('0x16'),_0x935b('0x17')),'defaultValue':_0x935b('0x16')},'ratingStarsNumber':{'type':Sequelize[_0x935b('0x6')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x935b('0x10')],'defaultValue':function(){return JSON['stringify']({'items':[{'type':_0x935b('0x18'),'variable':null,'config':{'placeholder':_0x935b('0x19'),'type':'text','required':!![]},'props':{'title':_0x935b('0x19'),'helpText':''}},{'type':_0x935b('0x18'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x935b('0x4'),'type':_0x935b('0x4')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0x935b('0x1a')](_0x935b('0x1b'))?JSON['parse'](this[_0x935b('0x1a')](_0x935b('0x1b'))):{};},'set':function(_0x3ee48e){return this['setDataValue'](_0x935b('0x1b'),JSON[_0x935b('0x1c')](_0x3ee48e));}},'offlineForm':{'type':Sequelize[_0x935b('0x10')],'defaultValue':function(){return JSON['stringify']({'items':[{'type':'input','props':{'title':_0x935b('0x4'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':_0x935b('0x4')},'variable':null},{'type':_0x935b('0x1d'),'config':{'placeholder':'Comments'},'props':{'title':_0x935b('0x1e'),'helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){return this[_0x935b('0x1a')](_0x935b('0x1f'))?JSON[_0x935b('0x20')](this[_0x935b('0x1a')]('offlineForm')):{};},'set':function(_0x577f06){return this[_0x935b('0x21')]('offlineForm',JSON[_0x935b('0x1c')](_0x577f06));}},'token':{'type':Sequelize[_0x935b('0x2')],'defaultValue':function(){return rs[_0x935b('0x22')]();}},'autoclose':{'type':Sequelize[_0x935b('0x7')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x935b('0x2')]},'forwardOffline':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x935b('0x2')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0x935b('0x23')},'waitingMessage':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x24')},'offlineMessageSubject':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x25')},'offlineMessageBody':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x26')},'enableUnmanagedNote':{'type':Sequelize[_0x935b('0x7')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x27')},'skipUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0x935b('0x14')},'sendUnmanaged':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0xd')},'enableCustomerAttachment':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x935b('0x10')]},'showAgentAvatar':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x935b('0x2')]},'notificationTemplate':{'type':Sequelize[_0x935b('0x10')],'defaultValue':function(){return _0x935b('0x28');}},'notificationSound':{'type':Sequelize[_0x935b('0x7')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x29')},'waitForTheAssignedAgent':{'type':Sequelize[_0x935b('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x935b('0x2')],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x2a')},'defaultTitle':{'type':Sequelize[_0x935b('0x2')]},'customerAvatar':{'type':Sequelize[_0x935b('0x10')]},'showCustomerAvatar':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x935b('0x6')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x935b('0x2')],'allowNull':![],'defaultValue':_0x935b('0x2b'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x935b('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x935b('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x935b('0x2')],'defaultValue':_0x935b('0x2c')},'systemAvatar':{'type':Sequelize[_0x935b('0x10')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x935b('0x2d')},'mandatoryDisposition':{'type':Sequelize[_0x935b('0x7')],'defaultValue':![],'comment':_0x935b('0x2e'),'set':function(_0x14fb0c){if(!_0x14fb0c)this[_0x935b('0x21')](_0x935b('0x2f'),null);this['setDataValue'](_0x935b('0x30'),_0x14fb0c);}}};
\ No newline at end of file
+var _0x4e36=['New\x20offline\x20message\x20from\x20websiteName','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','Your\x20request\x20has\x20not\x20been\x20processed.','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','website_alias','alternate','#fafafa','System','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','mandatoryDisposition','randomstring','STRING','address','email','Agent','#ffffff','INTEGER','ENUM','rounded','squared','We\x20are\x20here!','Send','BOOLEAN','Powered\x20by\x20xCALLY','Form\x20properly\x20submitted','Form\x20submission\x20error','Note','Type\x20a\x20message','Thanks\x20you\x20for\x20your\x20time!','Skip','Feedback','star','stringify','input','name','getDataValue','onlineForm','parse','setDataValue','TEXT','textarea','Comments','Leave\x20your\x20comments','offlineForm','generate','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'];(function(_0x3b7a0c,_0xf1a4c2){var _0x3bb70f=function(_0x248b52){while(--_0x248b52){_0x3b7a0c['push'](_0x3b7a0c['shift']());}};_0x3bb70f(++_0xf1a4c2);}(_0x4e36,0x132));var _0x64e3=function(_0x49f892,_0x54bea3){_0x49f892=_0x49f892-0x0;var _0x104f9a=_0x4e36[_0x49f892];return _0x104f9a;};'use strict';var Sequelize=require('sequelize');var rs=require(_0x64e3('0x0'));module['exports']={'name':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![]},'address':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![],'unique':_0x64e3('0x2')},'description':{'type':Sequelize[_0x64e3('0x1')]},'mapKey':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x3')},'mapKeyOffline':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x3')},'key':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x4')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![],'defaultValue':'#9f946a','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![],'defaultValue':'#9f946a','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![],'defaultValue':_0x64e3('0x5'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x64e3('0x6')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x64e3('0x1')]},'animation':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x64e3('0x7')](_0x64e3('0x8'),_0x64e3('0x9')),'defaultValue':_0x64e3('0x8')},'header_online':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0xa')},'start_chat_button':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':'Chat'},'offline_chat_button':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0xb')},'header_offline':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':'Contact\x20us'},'download_transcript':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x64e3('0x6')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0xd')},'defaultWhiteLabel':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':!![]},'sitepic':{'type':Sequelize['TEXT']},'closingQuestion':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?'},'formSubmitSuccessMessage':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0xe')},'formSubmitFailureMessage':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0xf')},'noteTitle':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x10')},'placeholderMessage':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x11')},'closingMessage':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x12')},'closingMessageButton':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0xb')},'skipMessageButton':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x13')},'conditionAgreement':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableRating':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x14')},'ratingType':{'type':Sequelize[_0x64e3('0x7')](_0x64e3('0x15'),'thumb'),'defaultValue':_0x64e3('0x15')},'ratingStarsNumber':{'type':Sequelize[_0x64e3('0x6')],'defaultValue':0x5},'onlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){return JSON[_0x64e3('0x16')]({'items':[{'type':_0x64e3('0x17'),'variable':null,'config':{'placeholder':_0x64e3('0x18'),'type':'text','required':!![]},'props':{'title':'name','helpText':''}},{'type':'input','props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x64e3('0x3'),'type':_0x64e3('0x3')},'variable':null}],'fromKey':0x1});},'get':function(){return this[_0x64e3('0x19')](_0x64e3('0x1a'))?JSON[_0x64e3('0x1b')](this['getDataValue'](_0x64e3('0x1a'))):{};},'set':function(_0x9ba7a6){return this[_0x64e3('0x1c')](_0x64e3('0x1a'),JSON[_0x64e3('0x16')](_0x9ba7a6));}},'offlineForm':{'type':Sequelize[_0x64e3('0x1d')],'defaultValue':function(){return JSON[_0x64e3('0x16')]({'items':[{'type':'input','props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':'email','type':_0x64e3('0x3')},'variable':null},{'type':_0x64e3('0x1e'),'config':{'placeholder':_0x64e3('0x1f')},'props':{'title':'Comments','helpText':_0x64e3('0x20')}}],'fromKey':0x0});},'get':function(){return this[_0x64e3('0x19')](_0x64e3('0x21'))?JSON[_0x64e3('0x1b')](this[_0x64e3('0x19')](_0x64e3('0x21'))):{};},'set':function(_0x50d4d6){return this[_0x64e3('0x1c')]('offlineForm',JSON[_0x64e3('0x16')](_0x50d4d6));}},'token':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':function(){return rs[_0x64e3('0x22')]();}},'autoclose':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x64e3('0x1')]},'waitingTitle':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x23')},'waitingMessage':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x24')},'offlineMessageSubject':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x25')},'offlineMessageBody':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x26')},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x27')},'skipUnmanaged':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x13')},'sendUnmanaged':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':'Send'},'enableCustomerAttachment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x64e3('0x1d')]},'showAgentAvatar':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x64e3('0x1')]},'notificationTemplate':{'type':Sequelize[_0x64e3('0x1d')],'defaultValue':function(){return _0x64e3('0x28');}},'notificationSound':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x29')},'waitForTheAssignedAgent':{'type':Sequelize[_0x64e3('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize['INTEGER'],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':_0x64e3('0x2a')},'defaultTitle':{'type':Sequelize[_0x64e3('0x1')]},'customerAvatar':{'type':Sequelize[_0x64e3('0x1d')]},'showCustomerAvatar':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x64e3('0x6')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x64e3('0x1')],'allowNull':![],'defaultValue':_0x64e3('0x2b'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x64e3('0x6')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x64e3('0x1')],'defaultValue':_0x64e3('0x2c')},'systemAvatar':{'type':Sequelize[_0x64e3('0x1d')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x64e3('0x2d')},'mandatoryDisposition':{'type':Sequelize[_0x64e3('0xc')],'defaultValue':![],'comment':_0x64e3('0x2e'),'set':function(_0x1a8fba){if(!_0x1a8fba)this[_0x64e3('0x1c')](_0x64e3('0x2f'),null);this[_0x64e3('0x1c')](_0x64e3('0x30'),_0x1a8fba);}}};
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js
index f858186..72665a7 100644
--- a/server/api/chatWebsite/chatWebsite.controller.js
+++ b/server/api/chatWebsite/chatWebsite.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xf663=['createdAt','updatedAt','difference','CompanyId','ListId','from','from\x20is\x20mandatory','body\x20is\x20mandatory\x20and\x20not\x20empty','includes','mapKey','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','CmList','CmContact','Contacts','Applications','List','account','applications','list','orderBy','priority','asc','contact','cf-connecting-ip','x-forwarded-for','split','lastName','x-real-port','referer','browser','version','format','%s\x20%s','unknown','device','vendor','threadId','ChatInteraction','externalUrl','ContactId','interaction','spread','firstName','messageId','created','autoclose','push','unmanaged','ChatMessage','AttachmentId','User','unshift','agent','waitForTheAssignedAgent','*,*,*,*','forcedOwnership','Start','startRouting','EventManager','offline','no\x20available\x20attributes','mapKeyOffline','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','readFileSync','server/files/templates/chatOfflineMessage.ejs','utf8','render','toPairs','offlineMessageBody','ChatOfflineMessage','MailAccount','MailServerOut','Smtp','service','host','port','secure','auth','pass','SendMail','sendMail','\x22%s\x22\x20<%s>','email','offlineMessageSubject','addInteraction','omit','getInteractions','Owner','fullname','internal','Tags','color','tag','rows','Command','getSnippet','timezone','iftime\x20%s,%s','interval','iftime\x20%s','true','ONLINE','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','inspect','No\x20timezone','Interval','Intervals','getProactiveActions','../../config/license/util','virtual','License','increment','chatLicenseExceeded','all','some','server/files/chat/iframe.js','remote','x-real-ip','connection','replace','alignment','verticalAlignment','textColor','sequelize','ChatApplication','bulkCreate','findAndCountAll','getApplications','addProactiveActions','chatProactiveAction','ChatProactiveAction','offlineForm','items','fromKey','addAgents','userChatWebsite:save','removeAgents','isArray','userChatWebsite:remove','emit','getAgents','eml-format','rimraf','zip-dir','fast-json-patch','util','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','papaparse','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/environment','../../mysqldb','defaults','redis','localhost','socket.io-emitter','./chatWebsite.socket','register','jayson/promise','client','http','test','Sequelize','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','request','then','info','request\x20sent','debug','ChatWebsite,\x20%s,\x20%s,\x20%s','stringify','error','ChatWebsite,\x20%s,\x20%s','message','result','catch','sendStatus','status','end','count','limit','set','Content-Range','json','apply','save','update','destroy','get','ChatWebsites','UserProfileResource','name','send','index','mandatoryDispositionPause','map','ChatWebsite','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','offset','sort','where','pick','VIRTUAL','filter','merge','options','includeAll','include','findAll','show','params','rawAttributes','find','create','body','user','role','UserProfileSection','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','describe','ChatWebsiteId','Disposition','getDispositions','findOne','order','removeDispositions','ids','addAnswer','CannedAnswer','getAnswers','hasOwnProperty','nolimit','removeAnswers','addLogo','sitepic','file','filename','addAvatar','agentAvatar','addCustomerAvatar','customerAvatar','addSystemAvatar','systemAvatar','getLogo','root','server/files/images/logos/default_logo.png','getLicense','custom','isNil','existsSync','join','server/files/images/logos/','download','server/files/images/avatars/default_avatar.png','server/files/images/avatars/','showCustomerAvatar','getSystemAvatar','server/files/images/avatars/system_avatar.png','notify','user-agent-parser','headers','getResult','ValidationError'];(function(_0x41677f,_0x3d5cbc){var _0x3827ce=function(_0x517002){while(--_0x517002){_0x41677f['push'](_0x41677f['shift']());}};_0x3827ce(++_0x3d5cbc);}(_0xf663,0x1aa));var _0x3f66=function(_0x29f574,_0x4e27dd){_0x29f574=_0x29f574-0x0;var _0xbc2316=_0xf663[_0x29f574];return _0xbc2316;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x3f66('0x0'));var rimraf=require(_0x3f66('0x1'));var zipdir=require(_0x3f66('0x2'));var jsonpatch=require(_0x3f66('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x3f66('0x4'));var path=require(_0x3f66('0x5'));var sox=require(_0x3f66('0x6'));var csv=require(_0x3f66('0x7'));var ejs=require(_0x3f66('0x8'));var fs=require('fs');var _=require(_0x3f66('0x9'));var squel=require(_0x3f66('0xa'));var crypto=require(_0x3f66('0xb'));var jsforce=require('jsforce');var deskjs=require(_0x3f66('0xc'));var toCsv=require(_0x3f66('0x7'));var querystring=require(_0x3f66('0xd'));var Papa=require(_0x3f66('0xe'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0x3f66('0xf'));var as=require(_0x3f66('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x3f66('0x11'))(_0x3f66('0x12'));var utils=require('../../config/utils');var config=require(_0x3f66('0x13'));var db=require(_0x3f66('0x14'))['db'];config['redis']=_[_0x3f66('0x15')](config[_0x3f66('0x16')],{'host':_0x3f66('0x17'),'port':0x18eb});var socket=require(_0x3f66('0x18'))(new Redis(config['redis']));require(_0x3f66('0x19'))[_0x3f66('0x1a')](socket);var jayson=require(_0x3f66('0x1b'));var client=jayson[_0x3f66('0x1c')][_0x3f66('0x1d')]({'port':0x232c});var client9002=jayson[_0x3f66('0x1c')][_0x3f66('0x1d')]({'port':0x232a});var client9003=jayson[_0x3f66('0x1c')][_0x3f66('0x1d')]({'port':0x232b});function checkPasswordPattern(_0x2b290f,_0x48a9b6,_0x219b85){if(_0x219b85){var _0x4ed9be=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0x4ed9be[_0x3f66('0x1e')](_0x48a9b6)){return _0x2b290f;}else{throw new db[(_0x3f66('0x1f'))]['ValidationError'](_0x3f66('0x20'));}}else{return _0x2b290f;}}function respondWithRpcPromise(_0x326d33,_0x5c6806,_0xf32dec,_0x529458){return new BPromise(function(_0x13e478,_0x3a2b32){var _0x5849c4=_0x529458||client;return _0x5849c4[_0x3f66('0x21')](_0x326d33,_0xf32dec)[_0x3f66('0x22')](function(_0x3960a1){logger[_0x3f66('0x23')]('ChatWebsite,\x20%s,\x20%s',_0x5c6806,_0x3f66('0x24'));logger[_0x3f66('0x25')](_0x3f66('0x26'),_0x5c6806,'request\x20sent',JSON[_0x3f66('0x27')](_0x3960a1));if(_0x3960a1[_0x3f66('0x28')]){if(_0x3960a1[_0x3f66('0x28')]['code']===0x1f4){logger['error'](_0x3f66('0x29'),_0x5c6806,_0x3960a1['error'][_0x3f66('0x2a')]);return _0x3a2b32(_0x3960a1[_0x3f66('0x28')]['message']);}logger[_0x3f66('0x28')](_0x3f66('0x29'),_0x5c6806,_0x3960a1['error'][_0x3f66('0x2a')]);return _0x13e478(_0x3960a1[_0x3f66('0x28')]['message']);}else{logger[_0x3f66('0x23')](_0x3f66('0x29'),_0x5c6806,'request\x20sent');_0x13e478(_0x3960a1[_0x3f66('0x2b')]['message']);}})[_0x3f66('0x2c')](function(_0x1b2f40){logger[_0x3f66('0x28')](_0x3f66('0x29'),_0x5c6806,_0x1b2f40);_0x3a2b32(_0x1b2f40);});});}function respondWithStatusCode(_0x434a74,_0x187d0c){_0x187d0c=_0x187d0c||0xcc;return function(_0x484c49){if(_0x484c49){return _0x434a74[_0x3f66('0x2d')](_0x187d0c);}return _0x434a74[_0x3f66('0x2e')](_0x187d0c)[_0x3f66('0x2f')]();};}function respondWithResult(_0x3ebd49,_0x2acecb){_0x2acecb=_0x2acecb||0xc8;return function(_0x524536){if(_0x524536){return _0x3ebd49[_0x3f66('0x2e')](_0x2acecb)['json'](_0x524536);}};}function respondWithFilteredResult(_0x21c034,_0x7aeb84){return function(_0x103623){if(_0x103623){var _0x2e26fc=_0x103623[_0x3f66('0x30')],_0x5c462e=_0x7aeb84['offset'],_0x56119b=_0x7aeb84['offset']+_0x7aeb84[_0x3f66('0x31')],_0x3634bf;if(_0x56119b>=_0x2e26fc){_0x56119b=_0x2e26fc;_0x3634bf=0xc8;}else{_0x3634bf=0xce;}_0x21c034[_0x3f66('0x2e')](_0x3634bf);return _0x21c034[_0x3f66('0x32')](_0x3f66('0x33'),_0x5c462e+'-'+_0x56119b+'/'+_0x2e26fc)[_0x3f66('0x34')](_0x103623);}return null;};}function patchUpdates(_0x4aae){return function(_0x1f21dc){try{jsonpatch[_0x3f66('0x35')](_0x1f21dc,_0x4aae,!![]);}catch(_0x1842e8){return BPromise['reject'](_0x1842e8);}return _0x1f21dc[_0x3f66('0x36')]();};}function saveUpdates(_0x2850cf,_0x47e24d){return function(_0x79587){if(_0x79587){return _0x79587[_0x3f66('0x37')](_0x2850cf)[_0x3f66('0x22')](function(_0x176692){return _0x176692;});}return null;};}function removeEntity(_0x57a8e4,_0x43da46){return function(_0x50b034){if(_0x50b034){return _0x50b034[_0x3f66('0x38')]()[_0x3f66('0x22')](function(){var _0x25290c=_0x50b034[_0x3f66('0x39')]({'plain':!![]});var _0x20a6f0=_0x3f66('0x3a');return db[_0x3f66('0x3b')]['destroy']({'where':{'type':_0x20a6f0,'resourceId':_0x25290c['id']}})['then'](function(){return _0x50b034;});})[_0x3f66('0x22')](function(){_0x57a8e4[_0x3f66('0x2e')](0xcc)['end']();});}};}function handleEntityNotFound(_0x281908,_0x35b977){return function(_0x197bab){if(!_0x197bab){_0x281908[_0x3f66('0x2d')](0x194);}return _0x197bab;};}function handleError(_0x412419,_0x3bc5a3){_0x3bc5a3=_0x3bc5a3||0x1f4;return function(_0x330a5e){logger[_0x3f66('0x28')](_0x330a5e['stack']);if(_0x330a5e[_0x3f66('0x3c')]){delete _0x330a5e['name'];}_0x412419[_0x3f66('0x2e')](_0x3bc5a3)[_0x3f66('0x3d')](_0x330a5e);};}exports[_0x3f66('0x3e')]=function(_0x4eed16,_0xabd8e3){var _0x168b95={'include':[{'model':db['Pause'],'as':_0x3f66('0x3f')}]},_0x21a626={},_0xe70d33={'count':0x0,'rows':[]};var _0x28e0a=_[_0x3f66('0x40')](db[_0x3f66('0x41')]['rawAttributes'],function(_0x5943d0){return{'name':_0x5943d0[_0x3f66('0x42')],'type':_0x5943d0[_0x3f66('0x43')][_0x3f66('0x44')]};});_0x21a626[_0x3f66('0x45')]=_[_0x3f66('0x40')](_0x28e0a,_0x3f66('0x3c'));_0x21a626[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0x4eed16[_0x3f66('0x46')]);_0x21a626[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x21a626[_0x3f66('0x45')],_0x21a626[_0x3f66('0x46')]);_0x168b95[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x21a626['model'],qs[_0x3f66('0x4b')](_0x4eed16[_0x3f66('0x46')][_0x3f66('0x4b')]));_0x168b95['attributes']=_0x168b95['attributes'][_0x3f66('0x4c')]?_0x168b95[_0x3f66('0x4a')]:_0x21a626[_0x3f66('0x45')];if(!_0x4eed16[_0x3f66('0x46')]['hasOwnProperty']('nolimit')){_0x168b95[_0x3f66('0x31')]=qs[_0x3f66('0x31')](_0x4eed16['query'][_0x3f66('0x31')]);_0x168b95['offset']=qs[_0x3f66('0x4d')](_0x4eed16['query'][_0x3f66('0x4d')]);}_0x168b95['order']=qs[_0x3f66('0x4e')](_0x4eed16[_0x3f66('0x46')][_0x3f66('0x4e')]);_0x168b95[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x4eed16['query'],_0x21a626[_0x3f66('0x48')]));if(_0x4eed16[_0x3f66('0x46')]['filter']){_0x168b95[_0x3f66('0x4f')]=_['merge'](_0x168b95[_0x3f66('0x4f')],{'$or':_['map'](_0x28e0a,function(_0x482984){if(_0x482984[_0x3f66('0x43')]!==_0x3f66('0x51')){var _0x50940e={};_0x50940e[_0x482984['name']]={'$like':'%'+_0x4eed16[_0x3f66('0x46')][_0x3f66('0x52')]+'%'};return _0x50940e;}})});}_0x168b95=_[_0x3f66('0x53')]({},_0x168b95,_0x4eed16[_0x3f66('0x54')]);var _0x251245={'where':_0x168b95['where']};return db[_0x3f66('0x41')]['count'](_0x251245)['then'](function(_0x1c3dea){_0xe70d33[_0x3f66('0x30')]=_0x1c3dea;if(_0x4eed16[_0x3f66('0x46')][_0x3f66('0x55')]){_0x168b95[_0x3f66('0x56')]=[{'all':!![]}];}return db[_0x3f66('0x41')][_0x3f66('0x57')](_0x168b95);})['then'](function(_0x1c3bb8){_0xe70d33['rows']=_0x1c3bb8;return _0xe70d33;})['then'](respondWithFilteredResult(_0xabd8e3,_0x168b95))[_0x3f66('0x2c')](handleError(_0xabd8e3,null));};exports[_0x3f66('0x58')]=function(_0xe2e1cf,_0x37e5bf){var _0x1df853={'raw':![],'where':{'id':_0xe2e1cf[_0x3f66('0x59')]['id']},'include':[{'model':db['Pause'],'as':_0x3f66('0x3f')}]},_0x1b9fba={};_0x1b9fba[_0x3f66('0x45')]=_[_0x3f66('0x47')](db[_0x3f66('0x41')][_0x3f66('0x5a')]);_0x1b9fba[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0xe2e1cf['query']);_0x1b9fba[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x1b9fba[_0x3f66('0x45')],_0x1b9fba[_0x3f66('0x46')]);_0x1df853[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x1b9fba[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0xe2e1cf[_0x3f66('0x46')]['fields']));_0x1df853['attributes']=_0x1df853['attributes'][_0x3f66('0x4c')]?_0x1df853[_0x3f66('0x4a')]:_0x1b9fba[_0x3f66('0x45')];if(_0xe2e1cf[_0x3f66('0x46')][_0x3f66('0x55')]){_0x1df853['include']=[{'all':!![]}];}_0x1df853=_['merge']({},_0x1df853,_0xe2e1cf[_0x3f66('0x54')]);return db['ChatWebsite'][_0x3f66('0x5b')](_0x1df853)[_0x3f66('0x22')](handleEntityNotFound(_0x37e5bf,null))['then'](respondWithResult(_0x37e5bf,null))[_0x3f66('0x2c')](handleError(_0x37e5bf,null));};exports['create']=function(_0x44db98,_0x113ba4){return db['ChatWebsite'][_0x3f66('0x5c')](_0x44db98[_0x3f66('0x5d')],{})[_0x3f66('0x22')](function(_0x1540ac){var _0x212dbd=_0x44db98[_0x3f66('0x5e')][_0x3f66('0x39')]({'plain':!![]});if(!_0x212dbd)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x212dbd[_0x3f66('0x5f')]===_0x3f66('0x5e')){var _0x5950f7=_0x1540ac[_0x3f66('0x39')]({'plain':!![]});var _0x41d3ea=_0x3f66('0x3a');return db[_0x3f66('0x60')][_0x3f66('0x5b')]({'where':{'name':_0x41d3ea,'userProfileId':_0x212dbd[_0x3f66('0x61')]},'raw':!![]})[_0x3f66('0x22')](function(_0x46cdbc){if(_0x46cdbc&&_0x46cdbc[_0x3f66('0x62')]===0x0){return db[_0x3f66('0x3b')]['create']({'name':_0x5950f7['name'],'resourceId':_0x5950f7['id'],'type':_0x46cdbc[_0x3f66('0x3c')],'sectionId':_0x46cdbc['id']},{})[_0x3f66('0x22')](function(){return _0x1540ac;});}else{return _0x1540ac;}})[_0x3f66('0x2c')](function(_0x1d14b8){logger[_0x3f66('0x28')](_0x3f66('0x63'),_0x1d14b8);throw _0x1d14b8;});}return _0x1540ac;})['then'](respondWithResult(_0x113ba4,0xc9))[_0x3f66('0x2c')](handleError(_0x113ba4,null));};exports[_0x3f66('0x37')]=function(_0x55fa06,_0x4cd018){if(_0x55fa06['body']['id']){delete _0x55fa06['body']['id'];}return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x55fa06[_0x3f66('0x59')]['id']},'include':[{'model':db['Pause'],'as':_0x3f66('0x3f')}]})[_0x3f66('0x22')](handleEntityNotFound(_0x4cd018,null))[_0x3f66('0x22')](saveUpdates(_0x55fa06[_0x3f66('0x5d')],null))['then'](respondWithResult(_0x4cd018,null))[_0x3f66('0x2c')](handleError(_0x4cd018,null));};exports[_0x3f66('0x38')]=function(_0x1b875d,_0x150b7c){return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x1b875d[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x150b7c,null))['then'](removeEntity(_0x150b7c,null))['catch'](handleError(_0x150b7c,null));};exports['describe']=function(_0x364042,_0x58aa1f){return db[_0x3f66('0x41')][_0x3f66('0x64')]()['then'](respondWithResult(_0x58aa1f,null))[_0x3f66('0x2c')](handleError(_0x58aa1f,null));};exports['addDisposition']=function(_0x41710c,_0xefd8c1,_0x145004){if(_0x41710c['body']['id']){delete _0x41710c['body']['id'];}return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x41710c[_0x3f66('0x59')]['id']}})['then'](handleEntityNotFound(_0xefd8c1,null))[_0x3f66('0x22')](function(_0x4c8324){if(_0x4c8324){_0x41710c[_0x3f66('0x5d')][_0x3f66('0x65')]=_0x4c8324['id'];return db[_0x3f66('0x66')][_0x3f66('0x5c')](_0x41710c['body']);}})[_0x3f66('0x22')](respondWithResult(_0xefd8c1,null))[_0x3f66('0x2c')](handleError(_0xefd8c1,null));};exports[_0x3f66('0x67')]=function(_0x41e666,_0x31275c,_0x21572c){var _0x1b549f={'raw':![],'where':{}};var _0x58d0e0={};var _0xcfdf97={'count':0x0,'rows':[]};return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0x41e666['params']['id']}})['then'](handleEntityNotFound(_0x31275c,null))['then'](function(_0x39d28f){if(_0x39d28f){_0x58d0e0[_0x3f66('0x45')]=_['keys'](db[_0x3f66('0x66')][_0x3f66('0x5a')]);_0x58d0e0[_0x3f66('0x46')]=_['keys'](_0x41e666[_0x3f66('0x46')]);_0x58d0e0[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x58d0e0[_0x3f66('0x45')],_0x58d0e0[_0x3f66('0x46')]);_0x1b549f[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x58d0e0[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0x41e666[_0x3f66('0x46')]['fields']));_0x1b549f[_0x3f66('0x4a')]=_0x1b549f[_0x3f66('0x4a')][_0x3f66('0x4c')]?_0x1b549f['attributes']:_0x58d0e0[_0x3f66('0x45')];if(!_0x41e666['query']['hasOwnProperty']('nolimit')){_0x1b549f[_0x3f66('0x31')]=qs[_0x3f66('0x31')](_0x41e666[_0x3f66('0x46')]['limit']);_0x1b549f[_0x3f66('0x4d')]=qs[_0x3f66('0x4d')](_0x41e666['query'][_0x3f66('0x4d')]);}_0x1b549f[_0x3f66('0x69')]=qs[_0x3f66('0x4e')](_0x41e666[_0x3f66('0x46')][_0x3f66('0x4e')]);_0x1b549f[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x41e666[_0x3f66('0x46')],_0x58d0e0['filters']));_0x1b549f[_0x3f66('0x4f')][_0x3f66('0x65')]=_0x39d28f['id'];if(_0x41e666[_0x3f66('0x46')][_0x3f66('0x52')]){_0x1b549f[_0x3f66('0x4f')]=_[_0x3f66('0x53')](_0x1b549f[_0x3f66('0x4f')],{'$or':_[_0x3f66('0x40')](_0x1b549f[_0x3f66('0x4a')],function(_0x40d428){var _0x4a63d1={};_0x4a63d1[_0x40d428]={'$like':'%'+_0x41e666[_0x3f66('0x46')][_0x3f66('0x52')]+'%'};return _0x4a63d1;})});}_0x1b549f=_[_0x3f66('0x53')]({},_0x1b549f,_0x41e666[_0x3f66('0x54')]);return db[_0x3f66('0x66')][_0x3f66('0x30')]({'where':_0x1b549f['where']})[_0x3f66('0x22')](function(_0x2a5b99){_0xcfdf97[_0x3f66('0x30')]=_0x2a5b99;if(_0x41e666['query'][_0x3f66('0x55')]){_0x1b549f['include']=[{'all':!![]}];}return db[_0x3f66('0x66')]['findAll'](_0x1b549f);})[_0x3f66('0x22')](function(_0x27e663){_0xcfdf97['rows']=_0x27e663;return _0xcfdf97;});}})[_0x3f66('0x22')](respondWithFilteredResult(_0x31275c,_0x1b549f))[_0x3f66('0x2c')](handleError(_0x31275c,null));};exports[_0x3f66('0x6a')]=function(_0x459087,_0x2c902d,_0x29748e){return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x459087[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x2c902d,null))[_0x3f66('0x22')](function(_0x9cdcc9){if(_0x9cdcc9){return _0x9cdcc9['removeDispositions'](_0x459087['query'][_0x3f66('0x6b')]);}})['then'](respondWithStatusCode(_0x2c902d,null))[_0x3f66('0x2c')](handleError(_0x2c902d,null));};exports[_0x3f66('0x6c')]=function(_0x2f0b8b,_0x260b36,_0xd8801c){if(_0x2f0b8b[_0x3f66('0x5d')]['id']){delete _0x2f0b8b['body']['id'];}return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x2f0b8b[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x260b36,null))[_0x3f66('0x22')](function(_0x146567){if(_0x146567){_0x2f0b8b[_0x3f66('0x5d')][_0x3f66('0x65')]=_0x146567['id'];return db[_0x3f66('0x6d')][_0x3f66('0x5c')](_0x2f0b8b[_0x3f66('0x5d')]);}})[_0x3f66('0x22')](respondWithResult(_0x260b36,null))[_0x3f66('0x2c')](handleError(_0x260b36,null));};exports[_0x3f66('0x6e')]=function(_0x1aab82,_0x59a187,_0x35587e){var _0x3043d0={'raw':![],'where':{}};var _0x14b885={};var _0x45fd17={'count':0x0,'rows':[]};return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0x1aab82['params']['id']}})['then'](handleEntityNotFound(_0x59a187,null))['then'](function(_0x33c8c6){if(_0x33c8c6){_0x14b885[_0x3f66('0x45')]=_['keys'](db[_0x3f66('0x6d')][_0x3f66('0x5a')]);_0x14b885[_0x3f66('0x46')]=_['keys'](_0x1aab82[_0x3f66('0x46')]);_0x14b885[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x14b885[_0x3f66('0x45')],_0x14b885[_0x3f66('0x46')]);_0x3043d0[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x14b885[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0x1aab82[_0x3f66('0x46')]['fields']));_0x3043d0['attributes']=_0x3043d0[_0x3f66('0x4a')][_0x3f66('0x4c')]?_0x3043d0['attributes']:_0x14b885[_0x3f66('0x45')];if(!_0x1aab82[_0x3f66('0x46')][_0x3f66('0x6f')](_0x3f66('0x70'))){_0x3043d0[_0x3f66('0x31')]=qs['limit'](_0x1aab82[_0x3f66('0x46')]['limit']);_0x3043d0[_0x3f66('0x4d')]=qs[_0x3f66('0x4d')](_0x1aab82[_0x3f66('0x46')][_0x3f66('0x4d')]);}_0x3043d0['order']=qs[_0x3f66('0x4e')](_0x1aab82[_0x3f66('0x46')]['sort']);_0x3043d0['where']=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x1aab82[_0x3f66('0x46')],_0x14b885[_0x3f66('0x48')]));_0x3043d0[_0x3f66('0x4f')][_0x3f66('0x65')]=_0x33c8c6['id'];if(_0x1aab82[_0x3f66('0x46')][_0x3f66('0x52')]){_0x3043d0['where']=_[_0x3f66('0x53')](_0x3043d0[_0x3f66('0x4f')],{'$or':_['map'](_0x3043d0[_0x3f66('0x4a')],function(_0x47310f){var _0x48c308={};_0x48c308[_0x47310f]={'$like':'%'+_0x1aab82[_0x3f66('0x46')][_0x3f66('0x52')]+'%'};return _0x48c308;})});}_0x3043d0=_[_0x3f66('0x53')]({},_0x3043d0,_0x1aab82[_0x3f66('0x54')]);return db['CannedAnswer'][_0x3f66('0x30')]({'where':_0x3043d0[_0x3f66('0x4f')]})[_0x3f66('0x22')](function(_0x593576){_0x45fd17[_0x3f66('0x30')]=_0x593576;if(_0x1aab82[_0x3f66('0x46')][_0x3f66('0x55')]){_0x3043d0['include']=[{'all':!![]}];}return db[_0x3f66('0x6d')][_0x3f66('0x57')](_0x3043d0);})['then'](function(_0x34b095){_0x45fd17['rows']=_0x34b095;return _0x45fd17;});}})[_0x3f66('0x22')](respondWithFilteredResult(_0x59a187,_0x3043d0))[_0x3f66('0x2c')](handleError(_0x59a187,null));};exports['removeAnswers']=function(_0xabe383,_0x2271f2,_0x5e66c3){return db['ChatWebsite'][_0x3f66('0x5b')]({'where':{'id':_0xabe383['params']['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x2271f2,null))[_0x3f66('0x22')](function(_0x39e383){if(_0x39e383){return _0x39e383[_0x3f66('0x71')](_0xabe383[_0x3f66('0x46')][_0x3f66('0x6b')]);}})['then'](respondWithStatusCode(_0x2271f2,null))[_0x3f66('0x2c')](handleError(_0x2271f2,null));};exports[_0x3f66('0x72')]=function(_0x169e16,_0x2d89e1,_0x266c44){_0x169e16[_0x3f66('0x5d')][_0x3f66('0x73')]=_0x169e16[_0x3f66('0x74')][_0x3f66('0x75')];return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x169e16[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x2d89e1,null))[_0x3f66('0x22')](saveUpdates(_0x169e16[_0x3f66('0x5d')],null))[_0x3f66('0x22')](respondWithResult(_0x2d89e1,null))[_0x3f66('0x2c')](handleError(_0x2d89e1,null));};exports[_0x3f66('0x76')]=function(_0x106282,_0x5a32be,_0x5d250f){_0x106282['body'][_0x3f66('0x77')]=_0x106282[_0x3f66('0x74')][_0x3f66('0x75')];return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x106282[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x5a32be,null))[_0x3f66('0x22')](saveUpdates(_0x106282[_0x3f66('0x5d')],null))[_0x3f66('0x22')](respondWithResult(_0x5a32be,null))['catch'](handleError(_0x5a32be,null));};exports[_0x3f66('0x78')]=function(_0x2b1a3e,_0x5b08b2,_0xacb639){_0x2b1a3e[_0x3f66('0x5d')][_0x3f66('0x79')]=_0x2b1a3e[_0x3f66('0x74')][_0x3f66('0x75')];return db['ChatWebsite']['find']({'where':{'id':_0x2b1a3e[_0x3f66('0x59')]['id']}})['then'](handleEntityNotFound(_0x5b08b2,null))['then'](saveUpdates(_0x2b1a3e[_0x3f66('0x5d')],null))['then'](respondWithResult(_0x5b08b2,null))[_0x3f66('0x2c')](handleError(_0x5b08b2,null));};exports[_0x3f66('0x7a')]=function(_0x3741e4,_0x264a01,_0x5712fa){_0x3741e4[_0x3f66('0x5d')][_0x3f66('0x7b')]=_0x3741e4[_0x3f66('0x74')][_0x3f66('0x75')];return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x3741e4[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x264a01,null))[_0x3f66('0x22')](saveUpdates(_0x3741e4[_0x3f66('0x5d')],null))[_0x3f66('0x22')](respondWithResult(_0x264a01,null))[_0x3f66('0x2c')](handleError(_0x264a01,null));};exports[_0x3f66('0x7c')]=function(_0x53db1e,_0x52379d,_0x247c15){var _0x28ef5a=path['join'](config[_0x3f66('0x7d')],_0x3f66('0x7e'));var _0xdf9d1e={'where':{'id':_0x53db1e[_0x3f66('0x59')]['id']},'attributes':['id',_0x3f66('0x73')],'raw':!![]};var _0x23b539=![];return require('../../config/license/util')[_0x3f66('0x7f')]()[_0x3f66('0x22')](function(_0x30d0ea){if(_0x30d0ea){_0x23b539=_0x30d0ea[_0x3f66('0x80')];}})['then'](function(){return db[_0x3f66('0x41')]['find'](_0xdf9d1e);})[_0x3f66('0x22')](handleEntityNotFound(_0x52379d,null))[_0x3f66('0x22')](function(_0x44b69b){if(_0x44b69b){if(!_[_0x3f66('0x81')](_0x44b69b['sitepic'])){if(fs[_0x3f66('0x82')](path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x84'),_0x44b69b[_0x3f66('0x73')]))&&_0x23b539){_0x28ef5a=path['join'](config[_0x3f66('0x7d')],'server/files/images/logos/',_0x44b69b[_0x3f66('0x73')]);}}return _0x52379d[_0x3f66('0x85')](_0x28ef5a);}})['catch'](handleError(_0x52379d,null));};exports['getAvatar']=function(_0x40fa01,_0x4a4bf4,_0x344699){var _0x2b18d5=path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x86'));var _0x229902={'where':{'id':_0x40fa01['params']['id']},'attributes':['id',_0x3f66('0x77')],'raw':!![]};return db[_0x3f66('0x41')][_0x3f66('0x5b')](_0x229902)[_0x3f66('0x22')](handleEntityNotFound(_0x4a4bf4,null))['then'](function(_0x370ab2){if(_0x370ab2){if(!_[_0x3f66('0x81')](_0x370ab2[_0x3f66('0x77')])){if(fs[_0x3f66('0x82')](path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x87'),_0x370ab2[_0x3f66('0x77')]))){_0x2b18d5=path[_0x3f66('0x83')](config['root'],_0x3f66('0x87'),_0x370ab2[_0x3f66('0x77')]);}}return _0x4a4bf4['download'](_0x2b18d5);}})['catch'](handleError(_0x4a4bf4,null));};exports['getCustomerAvatar']=function(_0x4f48c6,_0x9ae983,_0x3a2ce1){var _0x13f17a=path['join'](config['root'],'server/files/images/avatars/customer_avatar.png');var _0x2ef41b={'where':{'id':_0x4f48c6[_0x3f66('0x59')]['id']},'attributes':['id','customerAvatar','showCustomerAvatar'],'raw':!![]};return db[_0x3f66('0x41')][_0x3f66('0x5b')](_0x2ef41b)[_0x3f66('0x22')](handleEntityNotFound(_0x9ae983,null))[_0x3f66('0x22')](function(_0x484bd0){if(_0x484bd0){if(!_[_0x3f66('0x81')](_0x484bd0[_0x3f66('0x79')])){if(fs['existsSync'](path[_0x3f66('0x83')](config[_0x3f66('0x7d')],'server/files/images/avatars/',_0x484bd0[_0x3f66('0x79')]))&&_0x484bd0[_0x3f66('0x88')]){_0x13f17a=path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x87'),_0x484bd0[_0x3f66('0x79')]);}}return _0x9ae983[_0x3f66('0x85')](_0x13f17a);}})[_0x3f66('0x2c')](handleError(_0x9ae983,null));};exports[_0x3f66('0x89')]=function(_0x1c9ab9,_0x50abe5,_0x3a4771){var _0x4934da=path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x8a'));var _0x3b1b95={'where':{'id':_0x1c9ab9[_0x3f66('0x59')]['id']},'attributes':['id','systemAvatar'],'raw':!![]};return db[_0x3f66('0x41')]['find'](_0x3b1b95)['then'](handleEntityNotFound(_0x50abe5,null))['then'](function(_0x1f7b15){if(_0x1f7b15){if(!_[_0x3f66('0x81')](_0x1f7b15[_0x3f66('0x7b')])){if(fs[_0x3f66('0x82')](path['join'](config[_0x3f66('0x7d')],_0x3f66('0x87'),_0x1f7b15[_0x3f66('0x7b')]))){_0x4934da=path[_0x3f66('0x83')](config['root'],_0x3f66('0x87'),_0x1f7b15[_0x3f66('0x7b')]);}}return _0x50abe5[_0x3f66('0x85')](_0x4934da);}})[_0x3f66('0x2c')](handleError(_0x50abe5,null));};exports[_0x3f66('0x8b')]=function(_0x1bb2b4,_0x4ebf44,_0x5443b8){var _0x43c33b=require(_0x3f66('0x8c'));var _0x4d7104=new _0x43c33b();var _0x57f16d=_0x4d7104['setUA'](_0x1bb2b4[_0x3f66('0x8d')]['user-agent'])[_0x3f66('0x8e')]();var _0x139cbc={'body':_0x1bb2b4[_0x3f66('0x5d')],'channel':'chat'};var _0x2f5872=[];var _0x44aee5=[];var _0x243028={};var _0x21669f=![];return db['CmContact']['describe']()[_0x3f66('0x22')](function(_0x5d78d6){if(!_0x5d78d6){throw new db['Sequelize'][(_0x3f66('0x8f'))]('no\x20available\x20attributes');}_0x2f5872=_['difference'](_['keys'](_0x5d78d6),[_0x3f66('0x90'),_0x3f66('0x91')]);_0x44aee5=_[_0x3f66('0x92')](_['keys'](_0x5d78d6),[_0x3f66('0x90'),'updatedAt',_0x3f66('0x93'),_0x3f66('0x94')]);if(_0x1bb2b4[_0x3f66('0x5d')]['id']){delete _0x1bb2b4[_0x3f66('0x5d')]['id'];}if(_[_0x3f66('0x81')](_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0x95')])){throw new db['Sequelize'][(_0x3f66('0x8f'))](_0x3f66('0x96'));}if(_[_0x3f66('0x81')](_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0x5d')])||_0x1bb2b4[_0x3f66('0x5d')]['body']===''){throw new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))](_0x3f66('0x97'));}if(_[_0x3f66('0x81')](_0x1bb2b4[_0x3f66('0x5d')]['mapKey'])){throw new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))]('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x44aee5);}if(!_[_0x3f66('0x98')](_0x44aee5,_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0x99')])){throw new db[(_0x3f66('0x1f'))]['ValidationError'](_0x3f66('0x9a')+_0x44aee5);}_0x243028[_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0x99')]]=_0x1bb2b4['body'][_0x3f66('0x95')];})[_0x3f66('0x22')](function(){return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x1bb2b4[_0x3f66('0x59')]['id']},'include':[{'model':db[_0x3f66('0x9b')],'as':'List','include':[{'model':db[_0x3f66('0x9c')],'as':_0x3f66('0x9d'),'where':_0x243028,'limit':0x1,'order':[[_0x3f66('0x91'),'DESC']]}]},{'model':db['ChatApplication'],'as':_0x3f66('0x9e')}]});})[_0x3f66('0x22')](handleEntityNotFound(_0x4ebf44,null))[_0x3f66('0x22')](function(_0x9c8da1){if(_0x9c8da1&&_0x9c8da1[_0x3f66('0x9f')]){_0x139cbc[_0x3f66('0xa0')]=_0x9c8da1;_0x139cbc[_0x3f66('0xa1')]=_0x9c8da1['Applications'];_0x139cbc[_0x3f66('0xa2')]=_0x9c8da1[_0x3f66('0x9f')];_0x139cbc[_0x3f66('0xa1')]=_[_0x3f66('0xa3')](_0x139cbc['applications'],[_0x3f66('0xa4')],[_0x3f66('0xa5')]);if(_0x139cbc[_0x3f66('0xa0')][_0x3f66('0x9e')]){delete _0x139cbc[_0x3f66('0xa0')][_0x3f66('0x9e')];}if(_0x139cbc[_0x3f66('0xa0')][_0x3f66('0x9f')]&&_0x139cbc[_0x3f66('0xa0')][_0x3f66('0x9f')][_0x3f66('0x9d')][_0x3f66('0x4c')]){return _0x139cbc[_0x3f66('0xa0')]['List'][_0x3f66('0x9d')][0x0];}var _0x5e9783=_['defaults'](_0x1bb2b4['body'],{'firstName':_0x1bb2b4[_0x3f66('0x5d')]['from'],'ListId':_0x9c8da1['ListId']});_0x5e9783[_0x1bb2b4[_0x3f66('0x5d')]['mapKey']]=_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0x95')];return db[_0x3f66('0x9c')][_0x3f66('0x5c')](_0x5e9783,{'fields':_0x2f5872,'raw':!![]});}})[_0x3f66('0x22')](handleEntityNotFound(_0x4ebf44,null))[_0x3f66('0x22')](function(_0x4459eb){_0x139cbc[_0x3f66('0xa6')]=_0x4459eb;var _0x17f9b1=_0x1bb2b4['body']['customerIp'];if(_0x1bb2b4['headers'][_0x3f66('0xa7')]){_0x17f9b1=_0x1bb2b4[_0x3f66('0x8d')][_0x3f66('0xa7')];}else if(_0x1bb2b4[_0x3f66('0x8d')]['x-forwarded-for']){_0x17f9b1=_['first'](_0x1bb2b4['headers'][_0x3f66('0xa8')][_0x3f66('0xa9')](','));}if(_0x4459eb){var _0x2bf595={'ContactId':_0x4459eb['id'],'ChatWebsiteId':_0x1bb2b4[_0x3f66('0x59')]['id'],'from':(_0x4459eb['firstName']||'')+'\x20'+(_0x4459eb[_0x3f66('0xaa')]||''),'customerIp':_0x17f9b1,'customerPort':_0x1bb2b4[_0x3f66('0x8d')][_0x3f66('0xab')]?_0x1bb2b4[_0x3f66('0x8d')][_0x3f66('0xab')]:null,'referer':_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xac')],'browserName':_0x57f16d[_0x3f66('0xad')]['name']&&_0x57f16d['browser'][_0x3f66('0xae')]?util[_0x3f66('0xaf')](_0x3f66('0xb0'),_0x57f16d[_0x3f66('0xad')][_0x3f66('0x3c')],_0x57f16d[_0x3f66('0xad')][_0x3f66('0xae')]):_0x3f66('0xb1'),'browserVersion':_0x57f16d[_0x3f66('0xad')][_0x3f66('0xae')]||_0x3f66('0xb1'),'osName':util['format'](_0x3f66('0xb0'),_0x57f16d['os']['name'],_0x57f16d['os'][_0x3f66('0xae')]),'osVersion':_0x57f16d['os'][_0x3f66('0xae')],'deviceModel':_0x57f16d[_0x3f66('0xb2')]['model']&&_0x57f16d[_0x3f66('0xb2')][_0x3f66('0xb3')]?util['format']('%s\x20%s\x20%s',_0x57f16d[_0x3f66('0xb2')][_0x3f66('0x45')],_0x57f16d[_0x3f66('0xb2')][_0x3f66('0xb3')],_0x57f16d['device'][_0x3f66('0x43')]):null,'deviceVendor':_0x57f16d[_0x3f66('0xb2')]['vendor'],'deviceType':_0x57f16d['device']['type'],'formData':JSON[_0x3f66('0x27')](_0x1bb2b4[_0x3f66('0x5d')])};var _0x4dee39={'ChatWebsiteId':_0x1bb2b4[_0x3f66('0x59')]['id'],'closed':![]};if(_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb4')]){_0x4dee39['threadId']=_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb4')];return db[_0x3f66('0xb5')][_0x3f66('0x5b')]({'where':_0x4dee39})['then'](function(_0x257e15){if(_0x257e15){return[_0x257e15,![]];}_0x2bf595['threadId']=_0x1bb2b4['body']['threadId'];_0x2bf595[_0x3f66('0xb6')]=_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb6')];return db['ChatInteraction'][_0x3f66('0x5c')](_0x2bf595)['then'](function(_0xf571b4){return[_0xf571b4,!![]];});});}_0x4dee39[_0x3f66('0xb7')]=_0x4459eb['id'];if(_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb8')]&&_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb8')]['id']){_0x4dee39['id']=_0x1bb2b4['body']['interaction']['id'];return db[_0x3f66('0xb5')]['find']({'where':_0x4dee39})[_0x3f66('0x22')](function(_0x37eaa6){if(_0x37eaa6){return[_0x37eaa6,![]];}return db['ChatInteraction'][_0x3f66('0x5c')](_0x2bf595)[_0x3f66('0x22')](function(_0x50f7){return[_0x50f7,!![]];});});}return db[_0x3f66('0xb5')][_0x3f66('0x5c')](_0x2bf595)['then'](function(_0x2a0f4f){return[_0x2a0f4f,!![]];});}})[_0x3f66('0xb9')](function(_0x5f5b8e,_0x298353){if(_0x5f5b8e){_0x21669f=_0x298353;if(!_0x298353){var _0x5b430d={'from':(_0x139cbc['contact'][_0x3f66('0xba')]||'')+'\x20'+(_0x139cbc[_0x3f66('0xa6')][_0x3f66('0xaa')]||'')};if(_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xb4')]&&_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xbb')]&&_0x1bb2b4['body'][_0x3f66('0xb4')]!=_0x1bb2b4['body']['messageId']){_0x5b430d[_0x3f66('0xb4')]=_0x1bb2b4['body']['messageId'];}return _0x5f5b8e[_0x3f66('0x37')](_0x5b430d);}else{return _0x5f5b8e;}}})[_0x3f66('0x22')](function(_0x2ecb2b){_0x139cbc[_0x3f66('0xb8')]=_0x2ecb2b['get']({'plain':!![]});_0x139cbc[_0x3f66('0xb8')][_0x3f66('0xbc')]=_0x21669f;if(_0x139cbc['interaction'][_0x3f66('0xbc')]){if(_0x139cbc[_0x3f66('0xa0')][_0x3f66('0xbd')]){_0x139cbc[_0x3f66('0xa1')][_0x3f66('0xbe')]({'id':0x0,'priority':_0x139cbc[_0x3f66('0xa1')][_0x3f66('0x4c')]+0x1,'app':'close','appdata':_0x3f66('0xbf'),'interval':'*,*,*,*'});}}return db[_0x3f66('0xc0')][_0x3f66('0x5c')]({'body':_0x1bb2b4['body'][_0x3f66('0x5d')],'ChatWebsiteId':_0x1bb2b4['params']['id'],'ChatInteractionId':_0x2ecb2b['id'],'direction':'in','ContactId':_0x139cbc[_0x3f66('0xa6')]['id'],'AttachmentId':_0x1bb2b4[_0x3f66('0x5d')][_0x3f66('0xc1')]});})[_0x3f66('0x22')](function(_0x1ab802){_0x139cbc[_0x3f66('0x2a')]=_0x1ab802;if(_0x139cbc[_0x3f66('0xb8')]['UserId']){return db[_0x3f66('0xc2')][_0x3f66('0x5b')]({'attributes':['id',_0x3f66('0x3c')],'where':{'id':_0x139cbc[_0x3f66('0xb8')]['UserId']}})[_0x3f66('0x22')](function(_0x471156){if(_0x471156){_0x139cbc[_0x3f66('0xa1')][_0x3f66('0xc3')]({'id':0x0,'priority':0x0,'app':_0x3f66('0xc4'),'appdata':_0x471156['name']+','+(_0x139cbc[_0x3f66('0xa0')][_0x3f66('0xc5')]||0xa),'interval':_0x3f66('0xc6')});_0x139cbc[_0x3f66('0xc7')]=!![];}return respondWithRpcPromise(_0x3f66('0xc8'),'startRouting',_0x139cbc);});}return respondWithRpcPromise(_0x3f66('0xc8'),_0x3f66('0xc9'),_0x139cbc);})['then'](function(_0x419f1c){respondWithRpcPromise(_0x3f66('0xca'),_0x3f66('0xca'),{'event':_0x3f66('0x8b'),'message':_0x419f1c},client9002);return _0x419f1c;})[_0x3f66('0x22')](respondWithResult(_0x4ebf44,null))['catch'](handleError(_0x4ebf44,null));};exports[_0x3f66('0xcb')]=function(_0x43874e,_0x206580,_0x3d5b6f){var _0xc27501,_0x480f56,_0x25307a;var _0x427d59=[];var _0x48fefc=[];var _0x5251a8={};return db[_0x3f66('0x9c')][_0x3f66('0x64')]()[_0x3f66('0x22')](function(_0x49e79b){if(!_0x49e79b){throw new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))](_0x3f66('0xcc'));}_0x48fefc=_[_0x3f66('0x92')](_[_0x3f66('0x47')](_0x49e79b),[_0x3f66('0x90'),_0x3f66('0x91')]);_0x427d59=_['difference'](_[_0x3f66('0x47')](_0x49e79b),['createdAt',_0x3f66('0x91'),_0x3f66('0x93'),_0x3f66('0x94')]);if(_0x43874e[_0x3f66('0x5d')]['id']){delete _0x43874e[_0x3f66('0x5d')]['id'];}if(_['isNil'](_0x43874e[_0x3f66('0x5d')]['from'])){throw _0x206580[_0x3f66('0x2e')](0x1f4)[_0x3f66('0x3d')](new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))](_0x3f66('0x96')));}if(_[_0x3f66('0x81')](_0x43874e[_0x3f66('0x5d')][_0x3f66('0x5d')])||_0x43874e['body']['body']===''){throw _0x206580['status'](0x1f4)['send'](new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))](_0x3f66('0x97')));}if(_[_0x3f66('0x81')](_0x43874e[_0x3f66('0x5d')][_0x3f66('0xcd')])){throw _0x206580[_0x3f66('0x2e')](0x1f4)['send'](new db['Sequelize'][(_0x3f66('0x8f'))](_0x3f66('0xce')+_0x427d59));}if(!_['includes'](_0x427d59,_0x43874e[_0x3f66('0x5d')][_0x3f66('0xcd')])){throw _0x206580[_0x3f66('0x2e')](0x1f4)[_0x3f66('0x3d')](new db[(_0x3f66('0x1f'))][(_0x3f66('0x8f'))]('mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x427d59));}_0x5251a8[_0x43874e[_0x3f66('0x5d')][_0x3f66('0xcd')]]=_0x43874e[_0x3f66('0x5d')][_0x3f66('0x95')];})[_0x3f66('0x22')](function(){return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x43874e[_0x3f66('0x59')]['id']},'include':[{'model':db[_0x3f66('0x9b')],'as':_0x3f66('0x9f')}]});})[_0x3f66('0x22')](handleEntityNotFound(_0x206580,null))[_0x3f66('0x22')](function(_0x2c157a){if(_0x2c157a&&_0x2c157a[_0x3f66('0x9f')]){_0x480f56=_0x2c157a;var _0x5bfbea=_['defaults'](_0x43874e[_0x3f66('0x5d')],{'firstName':_0x43874e['body'][_0x3f66('0x95')],'phone':_0x43874e[_0x3f66('0x5d')][_0x3f66('0x95')],'ListId':_0x2c157a['ListId']});_0x5bfbea[_0x43874e[_0x3f66('0x5d')][_0x3f66('0xcd')]]=_0x43874e['body'][_0x3f66('0x95')];return db[_0x3f66('0x9c')]['findOrCreate']({'where':_0x5251a8,'defaults':_0x5bfbea});}})[_0x3f66('0xb9')](function(_0x7188dd){if(_0x7188dd){_0x25307a=_0x7188dd;var _0xbb20e4=fs[_0x3f66('0xcf')](path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0xd0')),_0x3f66('0xd1'));var _0x44ec2b=ejs[_0x3f66('0xd2')](_0xbb20e4,{'body':_[_0x3f66('0xd3')](_0x43874e[_0x3f66('0x5d')][_0x3f66('0x5d')]),'bodyTitle':_0x480f56[_0x3f66('0xd4')]});return db[_0x3f66('0xd5')][_0x3f66('0x5c')]({'body':_0x44ec2b,'ContactId':_0x7188dd['id'],'ChatWebsiteId':_0x480f56['id']});}})[_0x3f66('0x22')](function(_0x3c314b){if(_0x3c314b){_0xc27501=_0x3c314b;return db[_0x3f66('0xd6')][_0x3f66('0x68')]({'where':{'service':!![]},'include':[{'model':db[_0x3f66('0xd7')],'as':_0x3f66('0xd8'),'raw':!![]}]});}})[_0x3f66('0x22')](function(_0x2103b5){if(_0x2103b5&&_0x2103b5['Smtp']&&_0x480f56['forwardOfflineAddress']){var _0x361083={'tls':{'rejectUnauthorized':![]}};if(_0x2103b5[_0x3f66('0xd8')]['service']){_0x361083[_0x3f66('0xd9')]=_0x2103b5['Smtp'][_0x3f66('0xd9')];}else{_0x361083[_0x3f66('0xda')]=_0x2103b5[_0x3f66('0xd8')][_0x3f66('0xda')];_0x361083[_0x3f66('0xdb')]=_0x2103b5[_0x3f66('0xd8')]['port'];_0x361083[_0x3f66('0xdc')]=_0x2103b5[_0x3f66('0xd8')]['secure'];}if(_0x2103b5[_0x3f66('0xd8')]['authentication']){_0x361083[_0x3f66('0xdd')]={'user':_0x2103b5['Smtp'][_0x3f66('0x5e')],'pass':_0x2103b5[_0x3f66('0xd8')][_0x3f66('0xde')]};}return respondWithRpcPromise(_0x3f66('0xdf'),_0x3f66('0xe0'),{'account':_0x361083,'message':{'from':util[_0x3f66('0xaf')](_0x3f66('0xe1'),_0x2103b5['name'],_0x2103b5[_0x3f66('0xe2')]||_0x2103b5[_0x3f66('0xd8')][_0x3f66('0x5e')]),'to':_0x480f56['forwardOfflineAddress'],'subject':_0x480f56[_0x3f66('0xe3')],'text':_0xc27501[_0x3f66('0x5d')]}},client9003)[_0x3f66('0x22')](function(){return _0xc27501;})['catch'](function(_0x265967){console['error'](_0x265967);});}})[_0x3f66('0x22')](function(){if(_0xc27501){return _0xc27501;}})[_0x3f66('0x22')](respondWithResult(_0x206580,null))[_0x3f66('0x2c')](handleError(_0x206580,null));};exports[_0x3f66('0xe4')]=function(_0x51b842,_0x169853,_0x5a4281){return db[_0x3f66('0xb5')]['find']({'where':{'id':_0x51b842[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x169853,null))['then'](function(_0x18a0a1){if(_0x18a0a1){return _0x18a0a1['addInteraction'](_0x51b842[_0x3f66('0x5d')]['ids'],_[_0x3f66('0xe5')](_0x51b842[_0x3f66('0x5d')],[_0x3f66('0x6b'),'id'])||{});}})[_0x3f66('0x22')](respondWithResult(_0x169853,null))[_0x3f66('0x2c')](handleError(_0x169853,null));};exports[_0x3f66('0xe6')]=function(_0x41f5c6,_0x3b9e6a,_0x12c7fb){var _0x3da3eb={'raw':![],'where':{}};var _0x5676aa={};var _0x4006c3={'count':0x0,'rows':[]};return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0x41f5c6[_0x3f66('0x59')]['id']}})['then'](handleEntityNotFound(_0x3b9e6a,null))[_0x3f66('0x22')](function(_0xfa85b7){if(_0xfa85b7){_0x5676aa['model']=_[_0x3f66('0x47')](db[_0x3f66('0xb5')]['rawAttributes']);_0x5676aa[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0x41f5c6[_0x3f66('0x46')]);_0x5676aa[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x5676aa['model'],_0x5676aa['query']);_0x3da3eb[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x5676aa[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0x41f5c6[_0x3f66('0x46')][_0x3f66('0x4b')]));_0x3da3eb[_0x3f66('0x4a')]=_0x3da3eb[_0x3f66('0x4a')]['length']?_0x3da3eb[_0x3f66('0x4a')]:_0x5676aa[_0x3f66('0x45')];if(!_0x41f5c6['query'][_0x3f66('0x6f')]('nolimit')){_0x3da3eb[_0x3f66('0x31')]=qs[_0x3f66('0x31')](_0x41f5c6[_0x3f66('0x46')][_0x3f66('0x31')]);_0x3da3eb['offset']=qs['offset'](_0x41f5c6[_0x3f66('0x46')]['offset']);}_0x3da3eb[_0x3f66('0x69')]=qs[_0x3f66('0x4e')](_0x41f5c6[_0x3f66('0x46')]['sort']);_0x3da3eb[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x41f5c6[_0x3f66('0x46')],_0x5676aa[_0x3f66('0x48')]));_0x3da3eb['where'][_0x3f66('0x65')]=_0xfa85b7['id'];if(_0x41f5c6[_0x3f66('0x46')][_0x3f66('0x52')]){_0x3da3eb[_0x3f66('0x4f')]=_['merge'](_0x3da3eb['where'],{'$or':_['map'](_0x3da3eb[_0x3f66('0x4a')],function(_0x32fffc){var _0x1f98dc={};_0x1f98dc[_0x32fffc]={'$like':'%'+_0x41f5c6[_0x3f66('0x46')][_0x3f66('0x52')]+'%'};return _0x1f98dc;})});}_0x3da3eb=_[_0x3f66('0x53')]({},_0x3da3eb,_0x41f5c6[_0x3f66('0x54')]);return db[_0x3f66('0xb5')]['count']({'where':_0x3da3eb[_0x3f66('0x4f')]})['then'](function(_0x4773d5){_0x4006c3['count']=_0x4773d5;if(_0x41f5c6[_0x3f66('0x46')][_0x3f66('0x55')]){_0x3da3eb[_0x3f66('0x56')]=[{'model':db['CmContact'],'as':'Contact','required':![]},{'model':db[_0x3f66('0xc2')],'as':_0x3f66('0xe7'),'attributes':['name',_0x3f66('0xe8'),_0x3f66('0xe9')],'required':![]},{'model':db['Tag'],'as':_0x3f66('0xea'),'attributes':['id',_0x3f66('0x3c'),_0x3f66('0xeb')],'where':_0x41f5c6[_0x3f66('0x46')][_0x3f66('0xec')]?{'id':_0x41f5c6[_0x3f66('0x46')]['tag']}:undefined,'required':_0x41f5c6[_0x3f66('0x46')][_0x3f66('0xec')]?!![]:![]}];}return db[_0x3f66('0xb5')][_0x3f66('0x57')](_0x3da3eb);})[_0x3f66('0x22')](function(_0x3ba1a0){_0x4006c3[_0x3f66('0xed')]=_0x3ba1a0;return _0x4006c3;});}})['then'](respondWithFilteredResult(_0x3b9e6a,_0x3da3eb))[_0x3f66('0x2c')](handleError(_0x3b9e6a,null));};function iftimePromise(_0xe908be,_0x207f8d){return respondWithRpcPromise(_0x3f66('0xee'),_0x3f66('0xef'),{'command':_0x207f8d[_0x3f66('0xf0')]?util[_0x3f66('0xaf')](_0x3f66('0xf1'),_0xe908be[_0x3f66('0xf2')],_0x207f8d[_0x3f66('0xf0')]):util[_0x3f66('0xaf')](_0x3f66('0xf3'),_0xe908be[_0x3f66('0xf2')])},client9002)[_0x3f66('0x22')](function(_0x31c3b0){var _0x29672d=_0x31c3b0&&_0x31c3b0['indexOf'](_0x3f66('0xf4'))>=0x0?!![]:![];logger[_0x3f66('0x23')]('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x207f8d['id'],_0xe908be['id'],_0xe908be[_0x3f66('0xf2')],_0x29672d?_0x3f66('0xf5'):'OFFLINE',_0x207f8d[_0x3f66('0xf0')]?_0x207f8d[_0x3f66('0xf0')]:'No\x20timezone');return _0x29672d;})[_0x3f66('0x2c')](function(_0x1402d5){logger[_0x3f66('0x28')](_0x3f66('0xf6'),_0x207f8d['id'],_0xe908be['id'],_0xe908be[_0x3f66('0xf2')],util[_0x3f66('0xf7')](_0x1402d5,{'showHidden':![],'depth':null}),_0x207f8d[_0x3f66('0xf0')]?_0x207f8d['timezone']:_0x3f66('0xf8'));return![];});}exports[_0x3f66('0xef')]=function(_0x4985c8,_0x57bead,_0x209db0){var _0xedabab=0x0;var _0x35c5ba=0x0;var _0x2d9920=![];var _0x40718e;var _0x218a8f;return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x4985c8['params']['id']},'include':[{'model':db[_0x3f66('0xf9')],'as':'Interval','include':[{'model':db[_0x3f66('0xf9')],'as':_0x3f66('0xfa'),'attributes':['id','interval'],'raw':!![]}]}]})[_0x3f66('0x22')](handleEntityNotFound(_0x57bead,null))[_0x3f66('0x22')](function(_0x55c444){if(_0x55c444){_0x40718e=_0x55c444;return _0x55c444[_0x3f66('0xfb')]({'raw':!![]});}})[_0x3f66('0x22')](function(_0x572cdb){if(_0x40718e){if(_0x572cdb){_0x218a8f=_0x572cdb;}}return require(_0x3f66('0xfc'))['getLicense']();})[_0x3f66('0x22')](function(_0x190d6c){if(_0x190d6c){_0x35c5ba=_0x190d6c[_0x3f66('0xfd')];_0x2d9920=_0x190d6c['custom'];}})['then'](function(){return db['ChatInteraction'][_0x3f66('0x30')]({'where':{'closed':![]}});})['then'](function(_0x18fd67){_0xedabab=_0x18fd67;if(_0x35c5ba&&_0x18fd67>_0x35c5ba){return db[_0x3f66('0xfe')][_0x3f66('0x68')]({'where':{'id':0x1}})[_0x3f66('0x22')](function(_0x2295d9){if(_0x2295d9){_0x2295d9[_0x3f66('0xff')](_0x3f66('0x100'));}});}})['then'](function(){if(_0x40718e[_0x3f66('0xf9')]&&_0x40718e[_0x3f66('0xf9')][_0x3f66('0xfa')]){var _0x3af062=[];for(var _0x89868b=0x0;_0x89868b<_0x40718e[_0x3f66('0xf9')][_0x3f66('0xfa')][_0x3f66('0x4c')];_0x89868b++){var _0x1d5b71=_0x40718e[_0x3f66('0xf9')][_0x3f66('0xfa')][_0x89868b][_0x3f66('0x39')]({'plain':!![]});_0x3af062[_0x3f66('0xbe')](iftimePromise(_0x1d5b71,_0x40718e));}return BPromise[_0x3f66('0x101')](_0x3af062)[_0x3f66('0x22')](function(_0x2e5a17){return _[_0x3f66('0x102')](_0x2e5a17);});}else{return!![];}})[_0x3f66('0x22')](function(_0x40763e){var _0x1f8e8c=fs[_0x3f66('0xcf')](path[_0x3f66('0x83')](config[_0x3f66('0x7d')],_0x3f66('0x103')),'utf8');var _0x13b069={'remote':_0x40718e[_0x3f66('0x104')],'query':querystring['stringify'](_[_0x3f66('0x53')](_0x40718e['get']({'plain':!![]}),{'customerIp':_0x4985c8[_0x3f66('0x8d')][_0x3f66('0xa8')]||_0x4985c8[_0x3f66('0x8d')][_0x3f66('0x105')]||_0x4985c8[_0x3f66('0x106')]['remoteAddress']||_0x4985c8['ip'],'referer':_0x4985c8[_0x3f66('0x8d')]['referer'],'openedInteractions':_0xedabab,'maxInteractions':_0x35c5ba,'virtual':_0x2d9920[_0x3f66('0xfd')],'online':_0x40763e,'custom':_0x2d9920}))[_0x3f66('0x107')](/'/g,'\x5c\x27')};_0x57bead['send'](ejs['render'](Mustache[_0x3f66('0xd2')](_0x1f8e8c,_0x13b069),{'proactiveActions':_0x218a8f,'alignment':_0x40718e[_0x3f66('0x108')],'verticalAlignment':_0x40718e[_0x3f66('0x109')],'div_color':_0x40718e[_0x3f66('0xeb')],'text_color':_0x40718e[_0x3f66('0x10a')]}));})['catch'](handleError(_0x57bead,null));};exports['addApplications']=function(_0x29d067,_0x2d28e1,_0x13db30){return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0x29d067[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x2d28e1,null))[_0x3f66('0x22')](function(_0x39d444){if(_0x39d444){return db[_0x3f66('0x10b')]['transaction'](function(_0x5cdd4e){return db[_0x3f66('0x10c')]['destroy']({'where':{'ChatWebsiteId':_0x29d067[_0x3f66('0x59')]['id']},'transaction':_0x5cdd4e})['then'](function(_0x30e0a6){var _0x3e8424=_['map'](_0x29d067[_0x3f66('0x5d')],function(_0xdbf01e){_0xdbf01e['ChatWebsiteId']=_0x29d067[_0x3f66('0x59')]['id'];return _0xdbf01e;});return db[_0x3f66('0x10c')][_0x3f66('0x10d')](_0x3e8424,{'transaction':_0x5cdd4e});});})[_0x3f66('0x22')](function(){return db[_0x3f66('0x10c')][_0x3f66('0x10e')]({'where':{'ChatWebsiteId':_0x29d067[_0x3f66('0x59')]['id']},'order':_0x3f66('0xa4')});});}})[_0x3f66('0x22')](respondWithResult(_0x2d28e1,null))[_0x3f66('0x2c')](handleError(_0x2d28e1,null));};exports[_0x3f66('0x10f')]=function(_0x3b7416,_0x586383,_0x5c9d08){var _0x47f768={};var _0x3828c3={};var _0x40d00c;var _0x5cc7cb;return db['ChatWebsite'][_0x3f66('0x68')]({'where':{'id':_0x3b7416[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x586383,null))[_0x3f66('0x22')](function(_0xaf75e8){if(_0xaf75e8){_0x40d00c=_0xaf75e8;_0x3828c3[_0x3f66('0x45')]=_[_0x3f66('0x47')](db[_0x3f66('0x10c')][_0x3f66('0x5a')]);_0x3828c3[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0x3b7416[_0x3f66('0x46')]);_0x3828c3[_0x3f66('0x48')]=_['intersection'](_0x3828c3[_0x3f66('0x45')],_0x3828c3[_0x3f66('0x46')]);_0x47f768[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x3828c3[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0x3b7416['query'][_0x3f66('0x4b')]));_0x47f768['attributes']=_0x47f768[_0x3f66('0x4a')][_0x3f66('0x4c')]?_0x47f768[_0x3f66('0x4a')]:_0x3828c3[_0x3f66('0x45')];_0x47f768['order']=qs['sort'](_0x3b7416[_0x3f66('0x46')][_0x3f66('0x4e')]);_0x47f768[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x3b7416[_0x3f66('0x46')],_0x3828c3[_0x3f66('0x48')]));if(_0x3b7416['query'][_0x3f66('0x52')]){_0x47f768[_0x3f66('0x4f')]=_[_0x3f66('0x53')](_0x47f768[_0x3f66('0x4f')],{'$or':_['map'](_0x47f768[_0x3f66('0x4a')],function(_0x2ddf3a){var _0x2191cb={};_0x2191cb[_0x2ddf3a]={'$like':'%'+_0x3b7416['query']['filter']+'%'};return _0x2191cb;})});}_0x47f768=_['merge']({},_0x47f768,_0x3b7416[_0x3f66('0x54')]);return _0x40d00c[_0x3f66('0x10f')](_0x47f768);}})['then'](function(_0x592c28){if(_0x592c28){_0x5cc7cb=_0x592c28[_0x3f66('0x4c')];if(!_0x3b7416['query']['hasOwnProperty']('nolimit')){_0x47f768['limit']=qs[_0x3f66('0x31')](_0x3b7416[_0x3f66('0x46')][_0x3f66('0x31')]);_0x47f768['offset']=qs[_0x3f66('0x4d')](_0x3b7416[_0x3f66('0x46')]['offset']);}return _0x40d00c[_0x3f66('0x10f')](_0x47f768);}})[_0x3f66('0x22')](function(_0x19e2c2){if(_0x19e2c2){return _0x19e2c2?{'count':_0x5cc7cb,'rows':_0x19e2c2}:null;}})[_0x3f66('0x22')](respondWithResult(_0x586383,null))[_0x3f66('0x2c')](handleError(_0x586383,null));};exports[_0x3f66('0x110')]=function(_0x3c7dba,_0x62e828,_0x338fef){return db[_0x3f66('0x111')][_0x3f66('0x5b')]({'where':{'id':_0x3c7dba[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x62e828,null))[_0x3f66('0x22')](function(_0x4007bc){if(_0x4007bc){return _0x4007bc[_0x3f66('0x110')](_0x3c7dba[_0x3f66('0x5d')]['ids'],_['omit'](_0x3c7dba['body'],[_0x3f66('0x6b'),'id'])||{});}})[_0x3f66('0x22')](respondWithResult(_0x62e828,null))[_0x3f66('0x2c')](handleError(_0x62e828,null));};exports[_0x3f66('0xfb')]=function(_0x27cedb,_0x564bf3,_0x482df7){var _0x451b9c={};var _0x126504={};var _0x221641;var _0x471cad;return db[_0x3f66('0x41')]['findOne']({'where':{'id':_0x27cedb[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x564bf3,null))[_0x3f66('0x22')](function(_0x71f850){if(_0x71f850){_0x221641=_0x71f850;_0x126504[_0x3f66('0x45')]=_['keys'](db[_0x3f66('0x112')][_0x3f66('0x5a')]);_0x126504[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0x27cedb[_0x3f66('0x46')]);_0x126504[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x126504[_0x3f66('0x45')],_0x126504[_0x3f66('0x46')]);_0x451b9c[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x126504[_0x3f66('0x45')],qs['fields'](_0x27cedb[_0x3f66('0x46')][_0x3f66('0x4b')]));_0x451b9c[_0x3f66('0x4a')]=_0x451b9c[_0x3f66('0x4a')]['length']?_0x451b9c[_0x3f66('0x4a')]:_0x126504[_0x3f66('0x45')];_0x451b9c[_0x3f66('0x69')]=qs['sort'](_0x27cedb[_0x3f66('0x46')][_0x3f66('0x4e')]);_0x451b9c[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x27cedb[_0x3f66('0x46')],_0x126504[_0x3f66('0x48')]));if(_0x27cedb[_0x3f66('0x46')]['filter']){_0x451b9c['where']=_[_0x3f66('0x53')](_0x451b9c[_0x3f66('0x4f')],{'$or':_[_0x3f66('0x40')](_0x451b9c[_0x3f66('0x4a')],function(_0x8a8cdf){var _0x32983e={};_0x32983e[_0x8a8cdf]={'$like':'%'+_0x27cedb[_0x3f66('0x46')]['filter']+'%'};return _0x32983e;})});}_0x451b9c=_[_0x3f66('0x53')]({},_0x451b9c,_0x27cedb[_0x3f66('0x54')]);return _0x221641[_0x3f66('0xfb')](_0x451b9c);}})[_0x3f66('0x22')](function(_0x5a7c41){if(_0x5a7c41){_0x471cad=_0x5a7c41[_0x3f66('0x4c')];if(!_0x27cedb[_0x3f66('0x46')][_0x3f66('0x6f')](_0x3f66('0x70'))){_0x451b9c[_0x3f66('0x31')]=qs[_0x3f66('0x31')](_0x27cedb[_0x3f66('0x46')][_0x3f66('0x31')]);_0x451b9c[_0x3f66('0x4d')]=qs[_0x3f66('0x4d')](_0x27cedb['query'][_0x3f66('0x4d')]);}return _0x221641[_0x3f66('0xfb')](_0x451b9c);}})[_0x3f66('0x22')](function(_0x1dba6e){if(_0x1dba6e){return _0x1dba6e?{'count':_0x471cad,'rows':_0x1dba6e}:null;}})[_0x3f66('0x22')](respondWithResult(_0x564bf3,null))[_0x3f66('0x2c')](handleError(_0x564bf3,null));};exports['getFields']=function(_0x11e618,_0x500777,_0x2a7274){var _0x44be60=_0x11e618[_0x3f66('0x46')]['online']==='false'?_0x3f66('0x113'):'onlineForm';return db['ChatWebsite'][_0x3f66('0x5b')]({'attributes':['id',_0x44be60],'where':{'id':_0x11e618[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x500777,null))[_0x3f66('0x22')](function(_0x4cdd8d){if(_0x4cdd8d){var _0x3319bf=_0x4cdd8d[_0x44be60];var _0x4a329f=_0x3319bf&&_0x3319bf[_0x3f66('0x114')]?_0x3319bf['items']:[];_0x500777[_0x3f66('0x3d')]({'fromKey':_[_0x3f66('0x81')](_0x3319bf[_0x3f66('0x115')])?undefined:_0x3319bf[_0x3f66('0x115')],'count':_0x4a329f['length'],'rows':_0x4a329f});}})[_0x3f66('0x2c')](handleError(_0x500777,null));};exports['getOfflineMessages']=function(_0x1152f7,_0x3c6e4c,_0x17d910){var _0xbcec87={'raw':!![],'where':{}};var _0x3a7a81={};var _0x526201={'count':0x0,'rows':[]};return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0x1152f7['params']['id']}})['then'](handleEntityNotFound(_0x3c6e4c,null))[_0x3f66('0x22')](function(_0x720554){if(_0x720554){_0x3a7a81[_0x3f66('0x45')]=_[_0x3f66('0x47')](db[_0x3f66('0xd5')]['rawAttributes']);_0x3a7a81[_0x3f66('0x46')]=_[_0x3f66('0x47')](_0x1152f7['query']);_0x3a7a81[_0x3f66('0x48')]=_[_0x3f66('0x49')](_0x3a7a81[_0x3f66('0x45')],_0x3a7a81[_0x3f66('0x46')]);_0xbcec87[_0x3f66('0x4a')]=_[_0x3f66('0x49')](_0x3a7a81[_0x3f66('0x45')],qs[_0x3f66('0x4b')](_0x1152f7[_0x3f66('0x46')][_0x3f66('0x4b')]));_0xbcec87[_0x3f66('0x4a')]=_0xbcec87['attributes'][_0x3f66('0x4c')]?_0xbcec87[_0x3f66('0x4a')]:_0x3a7a81[_0x3f66('0x45')];if(!_0x1152f7[_0x3f66('0x46')][_0x3f66('0x6f')](_0x3f66('0x70'))){_0xbcec87[_0x3f66('0x31')]=qs[_0x3f66('0x31')](_0x1152f7[_0x3f66('0x46')][_0x3f66('0x31')]);_0xbcec87[_0x3f66('0x4d')]=qs['offset'](_0x1152f7[_0x3f66('0x46')]['offset']);}_0xbcec87[_0x3f66('0x69')]=qs['sort'](_0x1152f7[_0x3f66('0x46')][_0x3f66('0x4e')]);_0xbcec87['where']=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0x1152f7['query'],_0x3a7a81[_0x3f66('0x48')]));_0xbcec87[_0x3f66('0x4f')][_0x3f66('0x65')]=_0x720554['id'];if(_0x1152f7[_0x3f66('0x46')][_0x3f66('0x52')]){_0xbcec87['where']=_[_0x3f66('0x53')](_0xbcec87['where'],{'$or':_[_0x3f66('0x40')](_0xbcec87[_0x3f66('0x4a')],function(_0x14503b){var _0x1efc34={};_0x1efc34[_0x14503b]={'$like':'%'+_0x1152f7[_0x3f66('0x46')]['filter']+'%'};return _0x1efc34;})});}_0xbcec87=_[_0x3f66('0x53')]({},_0xbcec87,_0x1152f7[_0x3f66('0x54')]);return db['ChatOfflineMessage'][_0x3f66('0x30')]({'where':_0xbcec87[_0x3f66('0x4f')]})[_0x3f66('0x22')](function(_0x595d48){_0x526201[_0x3f66('0x30')]=_0x595d48;if(_0x1152f7['query']['includeAll']){_0xbcec87[_0x3f66('0x56')]=[{'all':!![]}];}return db[_0x3f66('0xd5')]['findAll'](_0xbcec87);})['then'](function(_0x9869a6){_0x526201['rows']=_0x9869a6;return _0x526201;});}})['then'](respondWithFilteredResult(_0x3c6e4c,_0xbcec87))[_0x3f66('0x2c')](handleError(_0x3c6e4c,null));};exports[_0x3f66('0x116')]=function(_0xbfc27b,_0x537aef,_0x1cfe15){return db[_0x3f66('0x41')]['find']({'where':{'id':_0xbfc27b[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x537aef,null))[_0x3f66('0x22')](function(_0x544731){if(_0x544731){return _0x544731[_0x3f66('0x116')](_0xbfc27b['body'][_0x3f66('0x6b')],_[_0x3f66('0xe5')](_0xbfc27b[_0x3f66('0x5d')],[_0x3f66('0x6b'),'id'])||{})['spread'](function(_0x499e9f){for(var _0x3b5e34=0x0;_0x3b5e34<_0xbfc27b['body'][_0x3f66('0x6b')]['length'];_0x3b5e34+=0x1){socket['emit'](_0x3f66('0x117'),{'UserId':_0xbfc27b[_0x3f66('0x5d')]['ids'][_0x3b5e34],'ChatWebsiteId':_0xbfc27b[_0x3f66('0x59')]['id']});}return _0x499e9f;});}})[_0x3f66('0x22')](respondWithResult(_0x537aef,null))[_0x3f66('0x2c')](handleError(_0x537aef,null));};exports[_0x3f66('0x118')]=function(_0x578f5f,_0x273672,_0xa68d4f){return db[_0x3f66('0x41')][_0x3f66('0x5b')]({'where':{'id':_0x578f5f[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x273672,null))['then'](function(_0x524bed){if(_0x524bed){return _0x524bed[_0x3f66('0x118')](_0x578f5f[_0x3f66('0x46')]['ids'])['then'](function(){if(_[_0x3f66('0x119')](_0x578f5f[_0x3f66('0x46')]['ids'])){for(var _0x1d22cd=0x0;_0x1d22cd<_0x578f5f[_0x3f66('0x46')][_0x3f66('0x6b')][_0x3f66('0x4c')];_0x1d22cd+=0x1){socket['emit'](_0x3f66('0x11a'),{'UserId':Number(_0x578f5f[_0x3f66('0x46')]['ids'][_0x1d22cd]),'ChatWebsiteId':Number(_0x578f5f[_0x3f66('0x59')]['id'])});}}else{socket[_0x3f66('0x11b')](_0x3f66('0x11a'),{'UserId':Number(_0x578f5f[_0x3f66('0x46')][_0x3f66('0x6b')]),'ChatWebsiteId':Number(_0x578f5f['params']['id'])});}});}})[_0x3f66('0x22')](respondWithStatusCode(_0x273672,null))['catch'](handleError(_0x273672,null));};exports[_0x3f66('0x11c')]=function(_0xfc4387,_0x2c5c95,_0x56ddb8){var _0x51e143={};var _0x349d8f={};var _0x243302;var _0x88126e;return db[_0x3f66('0x41')][_0x3f66('0x68')]({'where':{'id':_0xfc4387[_0x3f66('0x59')]['id']}})[_0x3f66('0x22')](handleEntityNotFound(_0x2c5c95,null))[_0x3f66('0x22')](function(_0x491668){if(_0x491668){_0x243302=_0x491668;_0x349d8f[_0x3f66('0x45')]=_['keys'](db[_0x3f66('0xc2')][_0x3f66('0x5a')]);_0x349d8f['query']=_[_0x3f66('0x47')](_0xfc4387['query']);_0x349d8f['filters']=_[_0x3f66('0x49')](_0x349d8f[_0x3f66('0x45')],_0x349d8f[_0x3f66('0x46')]);_0x51e143['attributes']=_[_0x3f66('0x49')](_0x349d8f['model'],qs[_0x3f66('0x4b')](_0xfc4387['query'][_0x3f66('0x4b')]));_0x51e143[_0x3f66('0x4a')]=_0x51e143[_0x3f66('0x4a')]['length']?_0x51e143[_0x3f66('0x4a')]:_0x349d8f['model'];_0x51e143[_0x3f66('0x69')]=qs[_0x3f66('0x4e')](_0xfc4387[_0x3f66('0x46')][_0x3f66('0x4e')]);_0x51e143[_0x3f66('0x4f')]=qs[_0x3f66('0x48')](_[_0x3f66('0x50')](_0xfc4387[_0x3f66('0x46')],_0x349d8f[_0x3f66('0x48')]));if(_0xfc4387[_0x3f66('0x46')][_0x3f66('0x52')]){_0x51e143[_0x3f66('0x4f')]=_[_0x3f66('0x53')](_0x51e143[_0x3f66('0x4f')],{'$or':_['map'](_0x51e143[_0x3f66('0x4a')],function(_0x113a60){var _0x3edca2={};_0x3edca2[_0x113a60]={'$like':'%'+_0xfc4387[_0x3f66('0x46')][_0x3f66('0x52')]+'%'};return _0x3edca2;})});}_0x51e143=_[_0x3f66('0x53')]({},_0x51e143,_0xfc4387['options']);return _0x243302[_0x3f66('0x11c')](_0x51e143);}})[_0x3f66('0x22')](function(_0x402e0c){if(_0x402e0c){_0x88126e=_0x402e0c[_0x3f66('0x4c')];if(!_0xfc4387[_0x3f66('0x46')][_0x3f66('0x6f')]('nolimit')){_0x51e143['limit']=qs[_0x3f66('0x31')](_0xfc4387['query'][_0x3f66('0x31')]);_0x51e143[_0x3f66('0x4d')]=qs[_0x3f66('0x4d')](_0xfc4387[_0x3f66('0x46')][_0x3f66('0x4d')]);}return _0x243302['getAgents'](_0x51e143);}})[_0x3f66('0x22')](function(_0x337dd3){if(_0x337dd3){return _0x337dd3?{'count':_0x88126e,'rows':_0x337dd3}:null;}})[_0x3f66('0x22')](respondWithResult(_0x2c5c95,null))[_0x3f66('0x2c')](handleError(_0x2c5c95,null));};
\ No newline at end of file
+var _0x5cb4=['externalUrl','interaction','spread','contact','messageId','created','autoclose','push','close','unmanaged','ChatMessage','AttachmentId','UserId','unshift','agent','waitForTheAssignedAgent','*,*,*,*','forcedOwnership','startRouting','Start','EventManager','offline','mapKeyOffline','includes','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','findOrCreate','utf8','render','toPairs','offlineMessageBody','ChatOfflineMessage','MailAccount','Smtp','forwardOfflineAddress','service','host','port','secure','authentication','auth','pass','SendMail','\x22%s\x22\x20<%s>','email','offlineMessageSubject','addInteraction','getInteractions','Contact','User','Owner','fullname','internal','Tag','Tags','color','tag','Command','getSnippet','interval','timezone','indexOf','true','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','OFFLINE','No\x20timezone','inspect','Interval','Intervals','custom','License','increment','chatLicenseExceeded','all','some','server/files/chat/iframe.js','remote','x-real-ip','remoteAddress','referer','virtual','replace','verticalAlignment','textColor','addApplications','sequelize','bulkCreate','findAndCountAll','priority','getApplications','chatProactiveAction','addProactiveActions','omit','getProactiveActions','ChatProactiveAction','getFields','online','false','onlineForm','items','fromKey','emit','userChatWebsite:save','isArray','userChatWebsite:remove','getAgents','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','redis','localhost','socket.io-emitter','register','jayson/promise','http','client','Sequelize','request','then','ChatWebsite,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','info','catch','end','status','json','count','offset','limit','apply','reject','save','update','destroy','get','UserProfileResource','sendStatus','stack','name','send','index','Pause','mandatoryDispositionPause','rawAttributes','fieldName','type','model','map','query','filters','intersection','attributes','fields','length','hasOwnProperty','sort','where','pick','VIRTUAL','filter','merge','ChatWebsite','includeAll','include','findAll','rows','show','keys','options','find','create','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','user','ChatWebsites','userProfileId','autoAssociation','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','addDisposition','ChatWebsiteId','getDispositions','order','Disposition','ids','CannedAnswer','getAnswers','findOne','nolimit','removeAnswers','addLogo','addAvatar','agentAvatar','file','filename','addSystemAvatar','getLogo','join','root','server/files/images/logos/default_logo.png','sitepic','getLicense','isNil','server/files/images/logos/','download','server/files/images/avatars/default_avatar.png','existsSync','server/files/images/avatars/','getCustomerAvatar','customerAvatar','showCustomerAvatar','server/files/images/avatars/system_avatar.png','systemAvatar','notify','setUA','headers','getResult','chat','CmContact','describe','ValidationError','no\x20available\x20attributes','difference','createdAt','updatedAt','CompanyId','from','from\x20is\x20mandatory','body\x20is\x20mandatory\x20and\x20not\x20empty','mapKey','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','CmList','List','Contacts','DESC','ChatApplication','Applications','account','applications','list','orderBy','defaults','ListId','cf-connecting-ip','x-forwarded-for','first','firstName','lastName','x-real-port','browser','version','format','unknown','%s\x20%s','device','%s\x20%s\x20%s','vendor','threadId','ChatInteraction'];(function(_0x3862c6,_0x17a0d2){var _0x5d88bc=function(_0x35c540){while(--_0x35c540){_0x3862c6['push'](_0x3862c6['shift']());}};_0x5d88bc(++_0x17a0d2);}(_0x5cb4,0x188));var _0x45cb=function(_0x4d43ee,_0x55edfe){_0x4d43ee=_0x4d43ee-0x0;var _0x233903=_0x5cb4[_0x4d43ee];return _0x233903;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x45cb('0x0'));var rimraf=require(_0x45cb('0x1'));var zipdir=require(_0x45cb('0x2'));var jsonpatch=require(_0x45cb('0x3'));var rp=require('request-promise');var moment=require(_0x45cb('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x45cb('0x5'));var util=require(_0x45cb('0x6'));var path=require(_0x45cb('0x7'));var sox=require(_0x45cb('0x8'));var csv=require(_0x45cb('0x9'));var ejs=require(_0x45cb('0xa'));var fs=require('fs');var _=require(_0x45cb('0xb'));var squel=require(_0x45cb('0xc'));var crypto=require(_0x45cb('0xd'));var jsforce=require(_0x45cb('0xe'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x45cb('0xf'));var Papa=require(_0x45cb('0x10'));var Redis=require(_0x45cb('0x11'));var authService=require(_0x45cb('0x12'));var qs=require(_0x45cb('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x45cb('0x14'))(_0x45cb('0x15'));var utils=require(_0x45cb('0x16'));var config=require(_0x45cb('0x17'));var db=require(_0x45cb('0x18'))['db'];config['redis']=_['defaults'](config[_0x45cb('0x19')],{'host':_0x45cb('0x1a'),'port':0x18eb});var socket=require(_0x45cb('0x1b'))(new Redis(config[_0x45cb('0x19')]));require('./chatWebsite.socket')[_0x45cb('0x1c')](socket);var jayson=require(_0x45cb('0x1d'));var client=jayson['client'][_0x45cb('0x1e')]({'port':0x232c});var client9002=jayson[_0x45cb('0x1f')][_0x45cb('0x1e')]({'port':0x232a});var client9003=jayson['client'][_0x45cb('0x1e')]({'port':0x232b});function checkPasswordPattern(_0x44956a,_0x16c4bc,_0x304284){if(_0x304284){var _0xde0d03=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#\$%\^&\*~\-_=+[{\]\}])(?=.{8,})/);if(_0xde0d03['test'](_0x16c4bc)){return _0x44956a;}else{throw new db[(_0x45cb('0x20'))]['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~!@#$%^&-_=+[{]}.');}}else{return _0x44956a;}}function respondWithRpcPromise(_0x5dcc5b,_0x5187e8,_0x41b5c3,_0xf84ec4){return new BPromise(function(_0x4cb5c6,_0x3542b0){var _0x2fcc3c=_0xf84ec4||client;return _0x2fcc3c[_0x45cb('0x21')](_0x5dcc5b,_0x41b5c3)[_0x45cb('0x22')](function(_0x44de40){logger['info'](_0x45cb('0x23'),_0x5187e8,_0x45cb('0x24'));logger[_0x45cb('0x25')]('ChatWebsite,\x20%s,\x20%s,\x20%s',_0x5187e8,'request\x20sent',JSON[_0x45cb('0x26')](_0x44de40));if(_0x44de40[_0x45cb('0x27')]){if(_0x44de40[_0x45cb('0x27')][_0x45cb('0x28')]===0x1f4){logger[_0x45cb('0x27')](_0x45cb('0x23'),_0x5187e8,_0x44de40['error']['message']);return _0x3542b0(_0x44de40[_0x45cb('0x27')][_0x45cb('0x29')]);}logger[_0x45cb('0x27')]('ChatWebsite,\x20%s,\x20%s',_0x5187e8,_0x44de40[_0x45cb('0x27')][_0x45cb('0x29')]);return _0x4cb5c6(_0x44de40[_0x45cb('0x27')][_0x45cb('0x29')]);}else{logger[_0x45cb('0x2a')]('ChatWebsite,\x20%s,\x20%s',_0x5187e8,_0x45cb('0x24'));_0x4cb5c6(_0x44de40['result'][_0x45cb('0x29')]);}})[_0x45cb('0x2b')](function(_0xff198c){logger[_0x45cb('0x27')](_0x45cb('0x23'),_0x5187e8,_0xff198c);_0x3542b0(_0xff198c);});});}function respondWithStatusCode(_0x26d17a,_0x29300e){_0x29300e=_0x29300e||0xcc;return function(_0x5a863a){if(_0x5a863a){return _0x26d17a['sendStatus'](_0x29300e);}return _0x26d17a['status'](_0x29300e)[_0x45cb('0x2c')]();};}function respondWithResult(_0x348e21,_0x1afa60){_0x1afa60=_0x1afa60||0xc8;return function(_0x5d21a5){if(_0x5d21a5){return _0x348e21[_0x45cb('0x2d')](_0x1afa60)[_0x45cb('0x2e')](_0x5d21a5);}};}function respondWithFilteredResult(_0x3bd672,_0x2ab58e){return function(_0x469aab){if(_0x469aab){var _0x205170=_0x469aab[_0x45cb('0x2f')],_0x259ffb=_0x2ab58e[_0x45cb('0x30')],_0x427e50=_0x2ab58e[_0x45cb('0x30')]+_0x2ab58e[_0x45cb('0x31')],_0x480855;if(_0x427e50>=_0x205170){_0x427e50=_0x205170;_0x480855=0xc8;}else{_0x480855=0xce;}_0x3bd672[_0x45cb('0x2d')](_0x480855);return _0x3bd672['set']('Content-Range',_0x259ffb+'-'+_0x427e50+'/'+_0x205170)[_0x45cb('0x2e')](_0x469aab);}return null;};}function patchUpdates(_0x4bdf78){return function(_0x28462e){try{jsonpatch[_0x45cb('0x32')](_0x28462e,_0x4bdf78,!![]);}catch(_0x5e9a55){return BPromise[_0x45cb('0x33')](_0x5e9a55);}return _0x28462e[_0x45cb('0x34')]();};}function saveUpdates(_0x55b7b7,_0x3553d4){return function(_0x44fc62){if(_0x44fc62){return _0x44fc62[_0x45cb('0x35')](_0x55b7b7)[_0x45cb('0x22')](function(_0x545cc7){return _0x545cc7;});}return null;};}function removeEntity(_0x11dedc,_0x2c580c){return function(_0xf0d809){if(_0xf0d809){return _0xf0d809[_0x45cb('0x36')]()[_0x45cb('0x22')](function(){var _0x3d4cc0=_0xf0d809[_0x45cb('0x37')]({'plain':!![]});var _0x5a9709='ChatWebsites';return db[_0x45cb('0x38')][_0x45cb('0x36')]({'where':{'type':_0x5a9709,'resourceId':_0x3d4cc0['id']}})[_0x45cb('0x22')](function(){return _0xf0d809;});})[_0x45cb('0x22')](function(){_0x11dedc[_0x45cb('0x2d')](0xcc)[_0x45cb('0x2c')]();});}};}function handleEntityNotFound(_0x4e3153,_0x5b8d9c){return function(_0x36d857){if(!_0x36d857){_0x4e3153[_0x45cb('0x39')](0x194);}return _0x36d857;};}function handleError(_0x39f81c,_0x27242c){_0x27242c=_0x27242c||0x1f4;return function(_0x33fa8a){logger[_0x45cb('0x27')](_0x33fa8a[_0x45cb('0x3a')]);if(_0x33fa8a[_0x45cb('0x3b')]){delete _0x33fa8a[_0x45cb('0x3b')];}_0x39f81c[_0x45cb('0x2d')](_0x27242c)[_0x45cb('0x3c')](_0x33fa8a);};}exports[_0x45cb('0x3d')]=function(_0x348cb7,_0xd43ccd){var _0x3ff144={'include':[{'model':db[_0x45cb('0x3e')],'as':_0x45cb('0x3f')}]},_0xa3191b={},_0x30c1da={'count':0x0,'rows':[]};var _0x22caf4=_['map'](db['ChatWebsite'][_0x45cb('0x40')],function(_0x511389){return{'name':_0x511389[_0x45cb('0x41')],'type':_0x511389[_0x45cb('0x42')]['key']};});_0xa3191b[_0x45cb('0x43')]=_[_0x45cb('0x44')](_0x22caf4,_0x45cb('0x3b'));_0xa3191b[_0x45cb('0x45')]=_['keys'](_0x348cb7['query']);_0xa3191b[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0xa3191b['model'],_0xa3191b['query']);_0x3ff144[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0xa3191b[_0x45cb('0x43')],qs[_0x45cb('0x49')](_0x348cb7[_0x45cb('0x45')][_0x45cb('0x49')]));_0x3ff144['attributes']=_0x3ff144[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x3ff144[_0x45cb('0x48')]:_0xa3191b[_0x45cb('0x43')];if(!_0x348cb7[_0x45cb('0x45')][_0x45cb('0x4b')]('nolimit')){_0x3ff144[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x348cb7[_0x45cb('0x45')][_0x45cb('0x31')]);_0x3ff144[_0x45cb('0x30')]=qs[_0x45cb('0x30')](_0x348cb7['query'][_0x45cb('0x30')]);}_0x3ff144['order']=qs[_0x45cb('0x4c')](_0x348cb7[_0x45cb('0x45')]['sort']);_0x3ff144[_0x45cb('0x4d')]=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x348cb7[_0x45cb('0x45')],_0xa3191b[_0x45cb('0x46')]));if(_0x348cb7[_0x45cb('0x45')]['filter']){_0x3ff144['where']=_['merge'](_0x3ff144[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x22caf4,function(_0x2ef8af){if(_0x2ef8af[_0x45cb('0x42')]!==_0x45cb('0x4f')){var _0x1a2480={};_0x1a2480[_0x2ef8af[_0x45cb('0x3b')]]={'$like':'%'+_0x348cb7[_0x45cb('0x45')][_0x45cb('0x50')]+'%'};return _0x1a2480;}})});}_0x3ff144=_[_0x45cb('0x51')]({},_0x3ff144,_0x348cb7['options']);var _0x42a619={'where':_0x3ff144[_0x45cb('0x4d')]};return db[_0x45cb('0x52')][_0x45cb('0x2f')](_0x42a619)[_0x45cb('0x22')](function(_0x525972){_0x30c1da['count']=_0x525972;if(_0x348cb7[_0x45cb('0x45')][_0x45cb('0x53')]){_0x3ff144[_0x45cb('0x54')]=[{'all':!![]}];}return db[_0x45cb('0x52')][_0x45cb('0x55')](_0x3ff144);})[_0x45cb('0x22')](function(_0x528d91){_0x30c1da[_0x45cb('0x56')]=_0x528d91;return _0x30c1da;})['then'](respondWithFilteredResult(_0xd43ccd,_0x3ff144))[_0x45cb('0x2b')](handleError(_0xd43ccd,null));};exports[_0x45cb('0x57')]=function(_0xac10e1,_0x353fc5){var _0x17c6d2={'raw':![],'where':{'id':_0xac10e1['params']['id']},'include':[{'model':db[_0x45cb('0x3e')],'as':_0x45cb('0x3f')}]},_0x16f7de={};_0x16f7de[_0x45cb('0x43')]=_[_0x45cb('0x58')](db[_0x45cb('0x52')][_0x45cb('0x40')]);_0x16f7de['query']=_[_0x45cb('0x58')](_0xac10e1['query']);_0x16f7de[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0x16f7de[_0x45cb('0x43')],_0x16f7de[_0x45cb('0x45')]);_0x17c6d2[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x16f7de[_0x45cb('0x43')],qs['fields'](_0xac10e1[_0x45cb('0x45')]['fields']));_0x17c6d2[_0x45cb('0x48')]=_0x17c6d2[_0x45cb('0x48')]['length']?_0x17c6d2[_0x45cb('0x48')]:_0x16f7de[_0x45cb('0x43')];if(_0xac10e1[_0x45cb('0x45')][_0x45cb('0x53')]){_0x17c6d2[_0x45cb('0x54')]=[{'all':!![]}];}_0x17c6d2=_[_0x45cb('0x51')]({},_0x17c6d2,_0xac10e1[_0x45cb('0x59')]);return db[_0x45cb('0x52')][_0x45cb('0x5a')](_0x17c6d2)[_0x45cb('0x22')](handleEntityNotFound(_0x353fc5,null))[_0x45cb('0x22')](respondWithResult(_0x353fc5,null))[_0x45cb('0x2b')](handleError(_0x353fc5,null));};exports[_0x45cb('0x5b')]=function(_0x4f3449,_0x3ff00c){return db[_0x45cb('0x52')]['create'](_0x4f3449[_0x45cb('0x5c')],{})[_0x45cb('0x22')](function(_0x561a2f){var _0x55364d=_0x4f3449['user']['get']({'plain':!![]});if(!_0x55364d)throw new Error(_0x45cb('0x5d'));if(_0x55364d[_0x45cb('0x5e')]===_0x45cb('0x5f')){var _0x141e29=_0x561a2f[_0x45cb('0x37')]({'plain':!![]});var _0x42c0ee=_0x45cb('0x60');return db['UserProfileSection'][_0x45cb('0x5a')]({'where':{'name':_0x42c0ee,'userProfileId':_0x55364d[_0x45cb('0x61')]},'raw':!![]})[_0x45cb('0x22')](function(_0x494613){if(_0x494613&&_0x494613[_0x45cb('0x62')]===0x0){return db[_0x45cb('0x38')][_0x45cb('0x5b')]({'name':_0x141e29['name'],'resourceId':_0x141e29['id'],'type':_0x494613[_0x45cb('0x3b')],'sectionId':_0x494613['id']},{})[_0x45cb('0x22')](function(){return _0x561a2f;});}else{return _0x561a2f;}})[_0x45cb('0x2b')](function(_0x2abc95){logger[_0x45cb('0x27')](_0x45cb('0x63'),_0x2abc95);throw _0x2abc95;});}return _0x561a2f;})['then'](respondWithResult(_0x3ff00c,0xc9))['catch'](handleError(_0x3ff00c,null));};exports[_0x45cb('0x35')]=function(_0x5e752f,_0x29b1e1){if(_0x5e752f[_0x45cb('0x5c')]['id']){delete _0x5e752f['body']['id'];}return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x5e752f[_0x45cb('0x64')]['id']},'include':[{'model':db[_0x45cb('0x3e')],'as':_0x45cb('0x3f')}]})['then'](handleEntityNotFound(_0x29b1e1,null))['then'](saveUpdates(_0x5e752f['body'],null))[_0x45cb('0x22')](respondWithResult(_0x29b1e1,null))[_0x45cb('0x2b')](handleError(_0x29b1e1,null));};exports['destroy']=function(_0x1c39e3,_0x3d7d0f){return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x1c39e3[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x3d7d0f,null))[_0x45cb('0x22')](removeEntity(_0x3d7d0f,null))[_0x45cb('0x2b')](handleError(_0x3d7d0f,null));};exports['describe']=function(_0x45cfe5,_0x5e2328){return db[_0x45cb('0x52')]['describe']()['then'](respondWithResult(_0x5e2328,null))[_0x45cb('0x2b')](handleError(_0x5e2328,null));};exports[_0x45cb('0x65')]=function(_0x164206,_0x236fff,_0x4e73fa){if(_0x164206[_0x45cb('0x5c')]['id']){delete _0x164206[_0x45cb('0x5c')]['id'];}return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x164206[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x236fff,null))[_0x45cb('0x22')](function(_0x32e946){if(_0x32e946){_0x164206[_0x45cb('0x5c')][_0x45cb('0x66')]=_0x32e946['id'];return db['Disposition'][_0x45cb('0x5b')](_0x164206[_0x45cb('0x5c')]);}})[_0x45cb('0x22')](respondWithResult(_0x236fff,null))[_0x45cb('0x2b')](handleError(_0x236fff,null));};exports[_0x45cb('0x67')]=function(_0x3f827d,_0x1ab6b5,_0x14dcd1){var _0x14bd29={'raw':![],'where':{}};var _0x181b70={};var _0x29cfbb={'count':0x0,'rows':[]};return db[_0x45cb('0x52')]['findOne']({'where':{'id':_0x3f827d[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x1ab6b5,null))['then'](function(_0x1685d6){if(_0x1685d6){_0x181b70[_0x45cb('0x43')]=_[_0x45cb('0x58')](db['Disposition'][_0x45cb('0x40')]);_0x181b70['query']=_[_0x45cb('0x58')](_0x3f827d[_0x45cb('0x45')]);_0x181b70[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0x181b70['model'],_0x181b70[_0x45cb('0x45')]);_0x14bd29[_0x45cb('0x48')]=_['intersection'](_0x181b70['model'],qs[_0x45cb('0x49')](_0x3f827d[_0x45cb('0x45')][_0x45cb('0x49')]));_0x14bd29[_0x45cb('0x48')]=_0x14bd29[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x14bd29['attributes']:_0x181b70[_0x45cb('0x43')];if(!_0x3f827d[_0x45cb('0x45')][_0x45cb('0x4b')]('nolimit')){_0x14bd29[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x3f827d['query'][_0x45cb('0x31')]);_0x14bd29['offset']=qs[_0x45cb('0x30')](_0x3f827d[_0x45cb('0x45')][_0x45cb('0x30')]);}_0x14bd29[_0x45cb('0x68')]=qs[_0x45cb('0x4c')](_0x3f827d[_0x45cb('0x45')][_0x45cb('0x4c')]);_0x14bd29[_0x45cb('0x4d')]=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x3f827d['query'],_0x181b70['filters']));_0x14bd29[_0x45cb('0x4d')][_0x45cb('0x66')]=_0x1685d6['id'];if(_0x3f827d[_0x45cb('0x45')][_0x45cb('0x50')]){_0x14bd29['where']=_['merge'](_0x14bd29['where'],{'$or':_[_0x45cb('0x44')](_0x14bd29[_0x45cb('0x48')],function(_0x393c21){var _0x3d5dc2={};_0x3d5dc2[_0x393c21]={'$like':'%'+_0x3f827d[_0x45cb('0x45')]['filter']+'%'};return _0x3d5dc2;})});}_0x14bd29=_[_0x45cb('0x51')]({},_0x14bd29,_0x3f827d['options']);return db[_0x45cb('0x69')][_0x45cb('0x2f')]({'where':_0x14bd29[_0x45cb('0x4d')]})[_0x45cb('0x22')](function(_0x332ddf){_0x29cfbb['count']=_0x332ddf;if(_0x3f827d['query']['includeAll']){_0x14bd29[_0x45cb('0x54')]=[{'all':!![]}];}return db[_0x45cb('0x69')]['findAll'](_0x14bd29);})['then'](function(_0x39639c){_0x29cfbb[_0x45cb('0x56')]=_0x39639c;return _0x29cfbb;});}})['then'](respondWithFilteredResult(_0x1ab6b5,_0x14bd29))['catch'](handleError(_0x1ab6b5,null));};exports['removeDispositions']=function(_0x3b52ca,_0x16ba65,_0x42e297){return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x3b52ca['params']['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x16ba65,null))['then'](function(_0x283ab2){if(_0x283ab2){return _0x283ab2['removeDispositions'](_0x3b52ca[_0x45cb('0x45')][_0x45cb('0x6a')]);}})[_0x45cb('0x22')](respondWithStatusCode(_0x16ba65,null))[_0x45cb('0x2b')](handleError(_0x16ba65,null));};exports['addAnswer']=function(_0x409bb3,_0xe611db,_0x295695){if(_0x409bb3[_0x45cb('0x5c')]['id']){delete _0x409bb3[_0x45cb('0x5c')]['id'];}return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x409bb3[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0xe611db,null))[_0x45cb('0x22')](function(_0x445111){if(_0x445111){_0x409bb3[_0x45cb('0x5c')]['ChatWebsiteId']=_0x445111['id'];return db[_0x45cb('0x6b')]['create'](_0x409bb3[_0x45cb('0x5c')]);}})[_0x45cb('0x22')](respondWithResult(_0xe611db,null))[_0x45cb('0x2b')](handleError(_0xe611db,null));};exports[_0x45cb('0x6c')]=function(_0x52ec54,_0x4a50fa,_0x3a6e08){var _0x2e6532={'raw':![],'where':{}};var _0x396bb4={};var _0x1fb4cd={'count':0x0,'rows':[]};return db[_0x45cb('0x52')][_0x45cb('0x6d')]({'where':{'id':_0x52ec54[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x4a50fa,null))['then'](function(_0x210fcd){if(_0x210fcd){_0x396bb4[_0x45cb('0x43')]=_['keys'](db[_0x45cb('0x6b')][_0x45cb('0x40')]);_0x396bb4[_0x45cb('0x45')]=_[_0x45cb('0x58')](_0x52ec54[_0x45cb('0x45')]);_0x396bb4[_0x45cb('0x46')]=_['intersection'](_0x396bb4[_0x45cb('0x43')],_0x396bb4[_0x45cb('0x45')]);_0x2e6532['attributes']=_[_0x45cb('0x47')](_0x396bb4[_0x45cb('0x43')],qs[_0x45cb('0x49')](_0x52ec54[_0x45cb('0x45')]['fields']));_0x2e6532[_0x45cb('0x48')]=_0x2e6532[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x2e6532[_0x45cb('0x48')]:_0x396bb4[_0x45cb('0x43')];if(!_0x52ec54['query'][_0x45cb('0x4b')](_0x45cb('0x6e'))){_0x2e6532['limit']=qs['limit'](_0x52ec54[_0x45cb('0x45')][_0x45cb('0x31')]);_0x2e6532[_0x45cb('0x30')]=qs[_0x45cb('0x30')](_0x52ec54['query'][_0x45cb('0x30')]);}_0x2e6532[_0x45cb('0x68')]=qs['sort'](_0x52ec54[_0x45cb('0x45')][_0x45cb('0x4c')]);_0x2e6532[_0x45cb('0x4d')]=qs['filters'](_['pick'](_0x52ec54['query'],_0x396bb4[_0x45cb('0x46')]));_0x2e6532['where'][_0x45cb('0x66')]=_0x210fcd['id'];if(_0x52ec54[_0x45cb('0x45')][_0x45cb('0x50')]){_0x2e6532[_0x45cb('0x4d')]=_[_0x45cb('0x51')](_0x2e6532[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x2e6532[_0x45cb('0x48')],function(_0x4db018){var _0x521385={};_0x521385[_0x4db018]={'$like':'%'+_0x52ec54[_0x45cb('0x45')][_0x45cb('0x50')]+'%'};return _0x521385;})});}_0x2e6532=_[_0x45cb('0x51')]({},_0x2e6532,_0x52ec54[_0x45cb('0x59')]);return db[_0x45cb('0x6b')][_0x45cb('0x2f')]({'where':_0x2e6532[_0x45cb('0x4d')]})[_0x45cb('0x22')](function(_0x17fa20){_0x1fb4cd[_0x45cb('0x2f')]=_0x17fa20;if(_0x52ec54['query'][_0x45cb('0x53')]){_0x2e6532[_0x45cb('0x54')]=[{'all':!![]}];}return db['CannedAnswer'][_0x45cb('0x55')](_0x2e6532);})[_0x45cb('0x22')](function(_0x4fb920){_0x1fb4cd['rows']=_0x4fb920;return _0x1fb4cd;});}})['then'](respondWithFilteredResult(_0x4a50fa,_0x2e6532))[_0x45cb('0x2b')](handleError(_0x4a50fa,null));};exports[_0x45cb('0x6f')]=function(_0x10daf1,_0x57efc6,_0x4db44a){return db['ChatWebsite'][_0x45cb('0x5a')]({'where':{'id':_0x10daf1[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x57efc6,null))[_0x45cb('0x22')](function(_0x29a202){if(_0x29a202){return _0x29a202[_0x45cb('0x6f')](_0x10daf1['query'][_0x45cb('0x6a')]);}})['then'](respondWithStatusCode(_0x57efc6,null))[_0x45cb('0x2b')](handleError(_0x57efc6,null));};exports[_0x45cb('0x70')]=function(_0x153ea9,_0x4160a8,_0x39ef73){_0x153ea9['body']['sitepic']=_0x153ea9['file']['filename'];return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x153ea9['params']['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x4160a8,null))[_0x45cb('0x22')](saveUpdates(_0x153ea9[_0x45cb('0x5c')],null))['then'](respondWithResult(_0x4160a8,null))[_0x45cb('0x2b')](handleError(_0x4160a8,null));};exports[_0x45cb('0x71')]=function(_0x2f7cc3,_0x46a95d,_0x38b979){_0x2f7cc3['body'][_0x45cb('0x72')]=_0x2f7cc3[_0x45cb('0x73')][_0x45cb('0x74')];return db['ChatWebsite'][_0x45cb('0x5a')]({'where':{'id':_0x2f7cc3[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x46a95d,null))['then'](saveUpdates(_0x2f7cc3[_0x45cb('0x5c')],null))['then'](respondWithResult(_0x46a95d,null))[_0x45cb('0x2b')](handleError(_0x46a95d,null));};exports['addCustomerAvatar']=function(_0x3acc18,_0x2bd9ab,_0x3511b0){_0x3acc18[_0x45cb('0x5c')]['customerAvatar']=_0x3acc18['file'][_0x45cb('0x74')];return db[_0x45cb('0x52')]['find']({'where':{'id':_0x3acc18[_0x45cb('0x64')]['id']}})['then'](handleEntityNotFound(_0x2bd9ab,null))['then'](saveUpdates(_0x3acc18['body'],null))[_0x45cb('0x22')](respondWithResult(_0x2bd9ab,null))[_0x45cb('0x2b')](handleError(_0x2bd9ab,null));};exports[_0x45cb('0x75')]=function(_0x280c61,_0xf6f89d,_0x512669){_0x280c61[_0x45cb('0x5c')]['systemAvatar']=_0x280c61[_0x45cb('0x73')][_0x45cb('0x74')];return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x280c61['params']['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0xf6f89d,null))[_0x45cb('0x22')](saveUpdates(_0x280c61[_0x45cb('0x5c')],null))[_0x45cb('0x22')](respondWithResult(_0xf6f89d,null))[_0x45cb('0x2b')](handleError(_0xf6f89d,null));};exports[_0x45cb('0x76')]=function(_0x19556e,_0x29764c,_0x465aad){var _0x5eeade=path[_0x45cb('0x77')](config[_0x45cb('0x78')],_0x45cb('0x79'));var _0x59b273={'where':{'id':_0x19556e[_0x45cb('0x64')]['id']},'attributes':['id',_0x45cb('0x7a')],'raw':!![]};var _0x18c906=![];return require('../../config/license/util')[_0x45cb('0x7b')]()[_0x45cb('0x22')](function(_0x2356d9){if(_0x2356d9){_0x18c906=_0x2356d9['custom'];}})[_0x45cb('0x22')](function(){return db[_0x45cb('0x52')]['find'](_0x59b273);})['then'](handleEntityNotFound(_0x29764c,null))[_0x45cb('0x22')](function(_0x291d32){if(_0x291d32){if(!_[_0x45cb('0x7c')](_0x291d32[_0x45cb('0x7a')])){if(fs['existsSync'](path['join'](config[_0x45cb('0x78')],_0x45cb('0x7d'),_0x291d32['sitepic']))&&_0x18c906){_0x5eeade=path[_0x45cb('0x77')](config[_0x45cb('0x78')],_0x45cb('0x7d'),_0x291d32['sitepic']);}}return _0x29764c[_0x45cb('0x7e')](_0x5eeade);}})[_0x45cb('0x2b')](handleError(_0x29764c,null));};exports['getAvatar']=function(_0x468693,_0x1fe85f,_0x463d20){var _0x11abe4=path['join'](config[_0x45cb('0x78')],_0x45cb('0x7f'));var _0x1f3297={'where':{'id':_0x468693[_0x45cb('0x64')]['id']},'attributes':['id',_0x45cb('0x72')],'raw':!![]};return db[_0x45cb('0x52')][_0x45cb('0x5a')](_0x1f3297)['then'](handleEntityNotFound(_0x1fe85f,null))[_0x45cb('0x22')](function(_0xd1775c){if(_0xd1775c){if(!_[_0x45cb('0x7c')](_0xd1775c[_0x45cb('0x72')])){if(fs[_0x45cb('0x80')](path[_0x45cb('0x77')](config[_0x45cb('0x78')],'server/files/images/avatars/',_0xd1775c[_0x45cb('0x72')]))){_0x11abe4=path['join'](config[_0x45cb('0x78')],_0x45cb('0x81'),_0xd1775c['agentAvatar']);}}return _0x1fe85f[_0x45cb('0x7e')](_0x11abe4);}})['catch'](handleError(_0x1fe85f,null));};exports[_0x45cb('0x82')]=function(_0x987df3,_0x4bd191,_0x4ffde7){var _0x495c20=path['join'](config['root'],'server/files/images/avatars/customer_avatar.png');var _0x4a65c1={'where':{'id':_0x987df3['params']['id']},'attributes':['id',_0x45cb('0x83'),_0x45cb('0x84')],'raw':!![]};return db['ChatWebsite'][_0x45cb('0x5a')](_0x4a65c1)[_0x45cb('0x22')](handleEntityNotFound(_0x4bd191,null))[_0x45cb('0x22')](function(_0x52f7c2){if(_0x52f7c2){if(!_[_0x45cb('0x7c')](_0x52f7c2[_0x45cb('0x83')])){if(fs[_0x45cb('0x80')](path[_0x45cb('0x77')](config['root'],_0x45cb('0x81'),_0x52f7c2[_0x45cb('0x83')]))&&_0x52f7c2[_0x45cb('0x84')]){_0x495c20=path[_0x45cb('0x77')](config[_0x45cb('0x78')],'server/files/images/avatars/',_0x52f7c2[_0x45cb('0x83')]);}}return _0x4bd191[_0x45cb('0x7e')](_0x495c20);}})['catch'](handleError(_0x4bd191,null));};exports['getSystemAvatar']=function(_0x8ec8b4,_0x7a5d12,_0x1de62e){var _0x55abbb=path['join'](config[_0x45cb('0x78')],_0x45cb('0x85'));var _0x391eea={'where':{'id':_0x8ec8b4['params']['id']},'attributes':['id',_0x45cb('0x86')],'raw':!![]};return db[_0x45cb('0x52')][_0x45cb('0x5a')](_0x391eea)[_0x45cb('0x22')](handleEntityNotFound(_0x7a5d12,null))['then'](function(_0x38ef2a){if(_0x38ef2a){if(!_['isNil'](_0x38ef2a[_0x45cb('0x86')])){if(fs['existsSync'](path[_0x45cb('0x77')](config[_0x45cb('0x78')],_0x45cb('0x81'),_0x38ef2a['systemAvatar']))){_0x55abbb=path[_0x45cb('0x77')](config[_0x45cb('0x78')],_0x45cb('0x81'),_0x38ef2a[_0x45cb('0x86')]);}}return _0x7a5d12['download'](_0x55abbb);}})[_0x45cb('0x2b')](handleError(_0x7a5d12,null));};exports[_0x45cb('0x87')]=function(_0x4d125c,_0x552d68,_0x551843){var _0x32baca=require('user-agent-parser');var _0x19c8a3=new _0x32baca();var _0x383671=_0x19c8a3[_0x45cb('0x88')](_0x4d125c[_0x45cb('0x89')]['user-agent'])[_0x45cb('0x8a')]();var _0x301995={'body':_0x4d125c[_0x45cb('0x5c')],'channel':_0x45cb('0x8b')};var _0x15f5ab=[];var _0x557cf9=[];var _0x16c13f={};var _0x37caf5=![];return db[_0x45cb('0x8c')][_0x45cb('0x8d')]()[_0x45cb('0x22')](function(_0x148f21){if(!_0x148f21){throw new db['Sequelize'][(_0x45cb('0x8e'))](_0x45cb('0x8f'));}_0x15f5ab=_[_0x45cb('0x90')](_['keys'](_0x148f21),[_0x45cb('0x91'),_0x45cb('0x92')]);_0x557cf9=_['difference'](_[_0x45cb('0x58')](_0x148f21),['createdAt',_0x45cb('0x92'),_0x45cb('0x93'),'ListId']);if(_0x4d125c[_0x45cb('0x5c')]['id']){delete _0x4d125c['body']['id'];}if(_['isNil'](_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x94')])){throw new db['Sequelize'][(_0x45cb('0x8e'))](_0x45cb('0x95'));}if(_[_0x45cb('0x7c')](_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x5c')])||_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x5c')]===''){throw new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x96'));}if(_[_0x45cb('0x7c')](_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x97')])){throw new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x98')+_0x557cf9);}if(!_['includes'](_0x557cf9,_0x4d125c[_0x45cb('0x5c')]['mapKey'])){throw new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x99')+_0x557cf9);}_0x16c13f[_0x4d125c['body'][_0x45cb('0x97')]]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x94')];})[_0x45cb('0x22')](function(){return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x4d125c[_0x45cb('0x64')]['id']},'include':[{'model':db[_0x45cb('0x9a')],'as':_0x45cb('0x9b'),'include':[{'model':db[_0x45cb('0x8c')],'as':_0x45cb('0x9c'),'where':_0x16c13f,'limit':0x1,'order':[[_0x45cb('0x92'),_0x45cb('0x9d')]]}]},{'model':db[_0x45cb('0x9e')],'as':_0x45cb('0x9f')}]});})['then'](handleEntityNotFound(_0x552d68,null))['then'](function(_0x7706c3){if(_0x7706c3&&_0x7706c3[_0x45cb('0x9b')]){_0x301995[_0x45cb('0xa0')]=_0x7706c3;_0x301995[_0x45cb('0xa1')]=_0x7706c3[_0x45cb('0x9f')];_0x301995[_0x45cb('0xa2')]=_0x7706c3[_0x45cb('0x9b')];_0x301995[_0x45cb('0xa1')]=_[_0x45cb('0xa3')](_0x301995[_0x45cb('0xa1')],['priority'],['asc']);if(_0x301995[_0x45cb('0xa0')][_0x45cb('0x9f')]){delete _0x301995[_0x45cb('0xa0')][_0x45cb('0x9f')];}if(_0x301995[_0x45cb('0xa0')][_0x45cb('0x9b')]&&_0x301995['account'][_0x45cb('0x9b')]['Contacts'][_0x45cb('0x4a')]){return _0x301995[_0x45cb('0xa0')][_0x45cb('0x9b')][_0x45cb('0x9c')][0x0];}var _0x406b33=_[_0x45cb('0xa4')](_0x4d125c[_0x45cb('0x5c')],{'firstName':_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x94')],'ListId':_0x7706c3[_0x45cb('0xa5')]});_0x406b33[_0x4d125c['body'][_0x45cb('0x97')]]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0x94')];return db[_0x45cb('0x8c')]['create'](_0x406b33,{'fields':_0x15f5ab,'raw':!![]});}})['then'](handleEntityNotFound(_0x552d68,null))[_0x45cb('0x22')](function(_0x401598){_0x301995['contact']=_0x401598;var _0x23bbec=_0x4d125c['body']['customerIp'];if(_0x4d125c[_0x45cb('0x89')][_0x45cb('0xa6')]){_0x23bbec=_0x4d125c[_0x45cb('0x89')][_0x45cb('0xa6')];}else if(_0x4d125c['headers'][_0x45cb('0xa7')]){_0x23bbec=_[_0x45cb('0xa8')](_0x4d125c[_0x45cb('0x89')][_0x45cb('0xa7')]['split'](','));}if(_0x401598){var _0x1a2af6={'ContactId':_0x401598['id'],'ChatWebsiteId':_0x4d125c[_0x45cb('0x64')]['id'],'from':(_0x401598[_0x45cb('0xa9')]||'')+'\x20'+(_0x401598[_0x45cb('0xaa')]||''),'customerIp':_0x23bbec,'customerPort':_0x4d125c['headers'][_0x45cb('0xab')]?_0x4d125c[_0x45cb('0x89')]['x-real-port']:null,'referer':_0x4d125c[_0x45cb('0x5c')]['referer'],'browserName':_0x383671[_0x45cb('0xac')][_0x45cb('0x3b')]&&_0x383671[_0x45cb('0xac')][_0x45cb('0xad')]?util[_0x45cb('0xae')]('%s\x20%s',_0x383671[_0x45cb('0xac')][_0x45cb('0x3b')],_0x383671[_0x45cb('0xac')][_0x45cb('0xad')]):_0x45cb('0xaf'),'browserVersion':_0x383671[_0x45cb('0xac')][_0x45cb('0xad')]||_0x45cb('0xaf'),'osName':util[_0x45cb('0xae')](_0x45cb('0xb0'),_0x383671['os'][_0x45cb('0x3b')],_0x383671['os'][_0x45cb('0xad')]),'osVersion':_0x383671['os'][_0x45cb('0xad')],'deviceModel':_0x383671[_0x45cb('0xb1')][_0x45cb('0x43')]&&_0x383671['device']['vendor']?util[_0x45cb('0xae')](_0x45cb('0xb2'),_0x383671['device'][_0x45cb('0x43')],_0x383671['device']['vendor'],_0x383671[_0x45cb('0xb1')][_0x45cb('0x42')]):null,'deviceVendor':_0x383671[_0x45cb('0xb1')][_0x45cb('0xb3')],'deviceType':_0x383671[_0x45cb('0xb1')][_0x45cb('0x42')],'formData':JSON[_0x45cb('0x26')](_0x4d125c[_0x45cb('0x5c')])};var _0x44b0f2={'ChatWebsiteId':_0x4d125c[_0x45cb('0x64')]['id'],'closed':![]};if(_0x4d125c['body']['threadId']){_0x44b0f2[_0x45cb('0xb4')]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xb4')];return db[_0x45cb('0xb5')][_0x45cb('0x5a')]({'where':_0x44b0f2})[_0x45cb('0x22')](function(_0x2b83b2){if(_0x2b83b2){return[_0x2b83b2,![]];}_0x1a2af6[_0x45cb('0xb4')]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xb4')];_0x1a2af6[_0x45cb('0xb6')]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xb6')];return db[_0x45cb('0xb5')][_0x45cb('0x5b')](_0x1a2af6)[_0x45cb('0x22')](function(_0xf88652){return[_0xf88652,!![]];});});}_0x44b0f2['ContactId']=_0x401598['id'];if(_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xb7')]&&_0x4d125c[_0x45cb('0x5c')]['interaction']['id']){_0x44b0f2['id']=_0x4d125c['body']['interaction']['id'];return db[_0x45cb('0xb5')][_0x45cb('0x5a')]({'where':_0x44b0f2})[_0x45cb('0x22')](function(_0x2b8c2d){if(_0x2b8c2d){return[_0x2b8c2d,![]];}return db['ChatInteraction'][_0x45cb('0x5b')](_0x1a2af6)['then'](function(_0x45cbb3){return[_0x45cbb3,!![]];});});}return db[_0x45cb('0xb5')]['create'](_0x1a2af6)[_0x45cb('0x22')](function(_0x59e48c){return[_0x59e48c,!![]];});}})[_0x45cb('0xb8')](function(_0x4791c7,_0x4d99b1){if(_0x4791c7){_0x37caf5=_0x4d99b1;if(!_0x4d99b1){var _0x50ae00={'from':(_0x301995[_0x45cb('0xb9')]['firstName']||'')+'\x20'+(_0x301995[_0x45cb('0xb9')]['lastName']||'')};if(_0x4d125c['body'][_0x45cb('0xb4')]&&_0x4d125c['body'][_0x45cb('0xba')]&&_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xb4')]!=_0x4d125c[_0x45cb('0x5c')]['messageId']){_0x50ae00[_0x45cb('0xb4')]=_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xba')];}return _0x4791c7[_0x45cb('0x35')](_0x50ae00);}else{return _0x4791c7;}}})['then'](function(_0x24492f){_0x301995['interaction']=_0x24492f[_0x45cb('0x37')]({'plain':!![]});_0x301995[_0x45cb('0xb7')][_0x45cb('0xbb')]=_0x37caf5;if(_0x301995[_0x45cb('0xb7')][_0x45cb('0xbb')]){if(_0x301995[_0x45cb('0xa0')][_0x45cb('0xbc')]){_0x301995[_0x45cb('0xa1')][_0x45cb('0xbd')]({'id':0x0,'priority':_0x301995['applications'][_0x45cb('0x4a')]+0x1,'app':_0x45cb('0xbe'),'appdata':_0x45cb('0xbf'),'interval':'*,*,*,*'});}}return db[_0x45cb('0xc0')][_0x45cb('0x5b')]({'body':_0x4d125c[_0x45cb('0x5c')]['body'],'ChatWebsiteId':_0x4d125c[_0x45cb('0x64')]['id'],'ChatInteractionId':_0x24492f['id'],'direction':'in','ContactId':_0x301995['contact']['id'],'AttachmentId':_0x4d125c[_0x45cb('0x5c')][_0x45cb('0xc1')]});})[_0x45cb('0x22')](function(_0x5a8430){_0x301995[_0x45cb('0x29')]=_0x5a8430;if(_0x301995[_0x45cb('0xb7')]['UserId']){return db['User'][_0x45cb('0x5a')]({'attributes':['id',_0x45cb('0x3b')],'where':{'id':_0x301995[_0x45cb('0xb7')][_0x45cb('0xc2')]}})['then'](function(_0x4f0f9e){if(_0x4f0f9e){_0x301995['applications'][_0x45cb('0xc3')]({'id':0x0,'priority':0x0,'app':_0x45cb('0xc4'),'appdata':_0x4f0f9e[_0x45cb('0x3b')]+','+(_0x301995[_0x45cb('0xa0')][_0x45cb('0xc5')]||0xa),'interval':_0x45cb('0xc6')});_0x301995[_0x45cb('0xc7')]=!![];}return respondWithRpcPromise('Start',_0x45cb('0xc8'),_0x301995);});}return respondWithRpcPromise(_0x45cb('0xc9'),_0x45cb('0xc8'),_0x301995);})['then'](function(_0x3095cb){respondWithRpcPromise(_0x45cb('0xca'),_0x45cb('0xca'),{'event':_0x45cb('0x87'),'message':_0x3095cb},client9002);return _0x3095cb;})[_0x45cb('0x22')](respondWithResult(_0x552d68,null))[_0x45cb('0x2b')](handleError(_0x552d68,null));};exports[_0x45cb('0xcb')]=function(_0x394ad9,_0x2190b9,_0x50e735){var _0x31bf09,_0x48b03c,_0x335067;var _0x47d509=[];var _0x39c535=[];var _0x87d19d={};return db[_0x45cb('0x8c')]['describe']()[_0x45cb('0x22')](function(_0x147e7e){if(!_0x147e7e){throw new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x8f'));}_0x39c535=_['difference'](_[_0x45cb('0x58')](_0x147e7e),['createdAt','updatedAt']);_0x47d509=_[_0x45cb('0x90')](_[_0x45cb('0x58')](_0x147e7e),[_0x45cb('0x91'),_0x45cb('0x92'),_0x45cb('0x93'),_0x45cb('0xa5')]);if(_0x394ad9['body']['id']){delete _0x394ad9['body']['id'];}if(_[_0x45cb('0x7c')](_0x394ad9[_0x45cb('0x5c')][_0x45cb('0x94')])){throw _0x2190b9[_0x45cb('0x2d')](0x1f4)[_0x45cb('0x3c')](new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x95')));}if(_['isNil'](_0x394ad9[_0x45cb('0x5c')][_0x45cb('0x5c')])||_0x394ad9['body'][_0x45cb('0x5c')]===''){throw _0x2190b9[_0x45cb('0x2d')](0x1f4)[_0x45cb('0x3c')](new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0x96')));}if(_[_0x45cb('0x7c')](_0x394ad9[_0x45cb('0x5c')][_0x45cb('0xcc')])){throw _0x2190b9[_0x45cb('0x2d')](0x1f4)[_0x45cb('0x3c')](new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))]('mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x47d509));}if(!_[_0x45cb('0xcd')](_0x47d509,_0x394ad9[_0x45cb('0x5c')][_0x45cb('0xcc')])){throw _0x2190b9[_0x45cb('0x2d')](0x1f4)[_0x45cb('0x3c')](new db[(_0x45cb('0x20'))][(_0x45cb('0x8e'))](_0x45cb('0xce')+_0x47d509));}_0x87d19d[_0x394ad9[_0x45cb('0x5c')]['mapKeyOffline']]=_0x394ad9[_0x45cb('0x5c')][_0x45cb('0x94')];})[_0x45cb('0x22')](function(){return db[_0x45cb('0x52')]['find']({'where':{'id':_0x394ad9[_0x45cb('0x64')]['id']},'include':[{'model':db[_0x45cb('0x9a')],'as':_0x45cb('0x9b')}]});})['then'](handleEntityNotFound(_0x2190b9,null))['then'](function(_0x373bb6){if(_0x373bb6&&_0x373bb6[_0x45cb('0x9b')]){_0x48b03c=_0x373bb6;var _0x48eb0e=_[_0x45cb('0xa4')](_0x394ad9[_0x45cb('0x5c')],{'firstName':_0x394ad9[_0x45cb('0x5c')][_0x45cb('0x94')],'phone':_0x394ad9[_0x45cb('0x5c')]['from'],'ListId':_0x373bb6['ListId']});_0x48eb0e[_0x394ad9[_0x45cb('0x5c')][_0x45cb('0xcc')]]=_0x394ad9[_0x45cb('0x5c')]['from'];return db[_0x45cb('0x8c')][_0x45cb('0xcf')]({'where':_0x87d19d,'defaults':_0x48eb0e});}})[_0x45cb('0xb8')](function(_0x41b4e4){if(_0x41b4e4){_0x335067=_0x41b4e4;var _0x498161=fs['readFileSync'](path[_0x45cb('0x77')](config[_0x45cb('0x78')],'server/files/templates/chatOfflineMessage.ejs'),_0x45cb('0xd0'));var _0x3ceefb=ejs[_0x45cb('0xd1')](_0x498161,{'body':_[_0x45cb('0xd2')](_0x394ad9[_0x45cb('0x5c')][_0x45cb('0x5c')]),'bodyTitle':_0x48b03c[_0x45cb('0xd3')]});return db[_0x45cb('0xd4')]['create']({'body':_0x3ceefb,'ContactId':_0x41b4e4['id'],'ChatWebsiteId':_0x48b03c['id']});}})[_0x45cb('0x22')](function(_0x48373d){if(_0x48373d){_0x31bf09=_0x48373d;return db[_0x45cb('0xd5')][_0x45cb('0x6d')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0x45cb('0xd6'),'raw':!![]}]});}})[_0x45cb('0x22')](function(_0x6b48f2){if(_0x6b48f2&&_0x6b48f2[_0x45cb('0xd6')]&&_0x48b03c[_0x45cb('0xd7')]){var _0x68d400={'tls':{'rejectUnauthorized':![]}};if(_0x6b48f2['Smtp'][_0x45cb('0xd8')]){_0x68d400[_0x45cb('0xd8')]=_0x6b48f2[_0x45cb('0xd6')]['service'];}else{_0x68d400[_0x45cb('0xd9')]=_0x6b48f2[_0x45cb('0xd6')]['host'];_0x68d400['port']=_0x6b48f2[_0x45cb('0xd6')][_0x45cb('0xda')];_0x68d400['secure']=_0x6b48f2[_0x45cb('0xd6')][_0x45cb('0xdb')];}if(_0x6b48f2['Smtp'][_0x45cb('0xdc')]){_0x68d400[_0x45cb('0xdd')]={'user':_0x6b48f2[_0x45cb('0xd6')][_0x45cb('0x5f')],'pass':_0x6b48f2[_0x45cb('0xd6')][_0x45cb('0xde')]};}return respondWithRpcPromise(_0x45cb('0xdf'),'sendMail',{'account':_0x68d400,'message':{'from':util[_0x45cb('0xae')](_0x45cb('0xe0'),_0x6b48f2[_0x45cb('0x3b')],_0x6b48f2[_0x45cb('0xe1')]||_0x6b48f2[_0x45cb('0xd6')][_0x45cb('0x5f')]),'to':_0x48b03c[_0x45cb('0xd7')],'subject':_0x48b03c[_0x45cb('0xe2')],'text':_0x31bf09['body']}},client9003)[_0x45cb('0x22')](function(){return _0x31bf09;})[_0x45cb('0x2b')](function(_0x4e08cc){console['error'](_0x4e08cc);});}})[_0x45cb('0x22')](function(){if(_0x31bf09){return _0x31bf09;}})[_0x45cb('0x22')](respondWithResult(_0x2190b9,null))[_0x45cb('0x2b')](handleError(_0x2190b9,null));};exports[_0x45cb('0xe3')]=function(_0xdf5a94,_0x5b6662,_0x2d5038){return db[_0x45cb('0xb5')][_0x45cb('0x5a')]({'where':{'id':_0xdf5a94[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x5b6662,null))[_0x45cb('0x22')](function(_0x39844d){if(_0x39844d){return _0x39844d[_0x45cb('0xe3')](_0xdf5a94[_0x45cb('0x5c')][_0x45cb('0x6a')],_['omit'](_0xdf5a94[_0x45cb('0x5c')],[_0x45cb('0x6a'),'id'])||{});}})[_0x45cb('0x22')](respondWithResult(_0x5b6662,null))[_0x45cb('0x2b')](handleError(_0x5b6662,null));};exports[_0x45cb('0xe4')]=function(_0x1205db,_0x5b1186,_0x448da3){var _0x3c6fd2={'raw':![],'where':{}};var _0x4095d2={};var _0x279aee={'count':0x0,'rows':[]};return db[_0x45cb('0x52')]['findOne']({'where':{'id':_0x1205db['params']['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x5b1186,null))[_0x45cb('0x22')](function(_0x58e4f4){if(_0x58e4f4){_0x4095d2['model']=_[_0x45cb('0x58')](db['ChatInteraction']['rawAttributes']);_0x4095d2['query']=_['keys'](_0x1205db[_0x45cb('0x45')]);_0x4095d2[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0x4095d2[_0x45cb('0x43')],_0x4095d2[_0x45cb('0x45')]);_0x3c6fd2[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x4095d2['model'],qs[_0x45cb('0x49')](_0x1205db[_0x45cb('0x45')]['fields']));_0x3c6fd2[_0x45cb('0x48')]=_0x3c6fd2['attributes']['length']?_0x3c6fd2[_0x45cb('0x48')]:_0x4095d2[_0x45cb('0x43')];if(!_0x1205db['query']['hasOwnProperty'](_0x45cb('0x6e'))){_0x3c6fd2[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x1205db['query'][_0x45cb('0x31')]);_0x3c6fd2['offset']=qs[_0x45cb('0x30')](_0x1205db[_0x45cb('0x45')][_0x45cb('0x30')]);}_0x3c6fd2[_0x45cb('0x68')]=qs['sort'](_0x1205db[_0x45cb('0x45')]['sort']);_0x3c6fd2[_0x45cb('0x4d')]=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x1205db[_0x45cb('0x45')],_0x4095d2[_0x45cb('0x46')]));_0x3c6fd2[_0x45cb('0x4d')]['ChatWebsiteId']=_0x58e4f4['id'];if(_0x1205db[_0x45cb('0x45')][_0x45cb('0x50')]){_0x3c6fd2['where']=_[_0x45cb('0x51')](_0x3c6fd2[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x3c6fd2['attributes'],function(_0x277b0b){var _0x38509a={};_0x38509a[_0x277b0b]={'$like':'%'+_0x1205db['query'][_0x45cb('0x50')]+'%'};return _0x38509a;})});}_0x3c6fd2=_[_0x45cb('0x51')]({},_0x3c6fd2,_0x1205db['options']);return db[_0x45cb('0xb5')][_0x45cb('0x2f')]({'where':_0x3c6fd2[_0x45cb('0x4d')]})[_0x45cb('0x22')](function(_0x29e0e8){_0x279aee[_0x45cb('0x2f')]=_0x29e0e8;if(_0x1205db[_0x45cb('0x45')][_0x45cb('0x53')]){_0x3c6fd2[_0x45cb('0x54')]=[{'model':db[_0x45cb('0x8c')],'as':_0x45cb('0xe5'),'required':![]},{'model':db[_0x45cb('0xe6')],'as':_0x45cb('0xe7'),'attributes':['name',_0x45cb('0xe8'),_0x45cb('0xe9')],'required':![]},{'model':db[_0x45cb('0xea')],'as':_0x45cb('0xeb'),'attributes':['id','name',_0x45cb('0xec')],'where':_0x1205db['query'][_0x45cb('0xed')]?{'id':_0x1205db[_0x45cb('0x45')]['tag']}:undefined,'required':_0x1205db[_0x45cb('0x45')][_0x45cb('0xed')]?!![]:![]}];}return db[_0x45cb('0xb5')]['findAll'](_0x3c6fd2);})[_0x45cb('0x22')](function(_0xd0d764){_0x279aee[_0x45cb('0x56')]=_0xd0d764;return _0x279aee;});}})['then'](respondWithFilteredResult(_0x5b1186,_0x3c6fd2))['catch'](handleError(_0x5b1186,null));};function iftimePromise(_0x97cd3d,_0x540e99){return respondWithRpcPromise(_0x45cb('0xee'),_0x45cb('0xef'),{'command':_0x540e99['timezone']?util[_0x45cb('0xae')]('iftime\x20%s,%s',_0x97cd3d[_0x45cb('0xf0')],_0x540e99[_0x45cb('0xf1')]):util['format']('iftime\x20%s',_0x97cd3d[_0x45cb('0xf0')])},client9002)[_0x45cb('0x22')](function(_0x3da053){var _0x33416d=_0x3da053&&_0x3da053[_0x45cb('0xf2')](_0x45cb('0xf3'))>=0x0?!![]:![];logger['info'](_0x45cb('0xf4'),_0x540e99['id'],_0x97cd3d['id'],_0x97cd3d[_0x45cb('0xf0')],_0x33416d?'ONLINE':_0x45cb('0xf5'),_0x540e99['timezone']?_0x540e99[_0x45cb('0xf1')]:_0x45cb('0xf6'));return _0x33416d;})[_0x45cb('0x2b')](function(_0x36112f){logger[_0x45cb('0x27')](_0x45cb('0xf4'),_0x540e99['id'],_0x97cd3d['id'],_0x97cd3d[_0x45cb('0xf0')],util[_0x45cb('0xf7')](_0x36112f,{'showHidden':![],'depth':null}),_0x540e99[_0x45cb('0xf1')]?_0x540e99[_0x45cb('0xf1')]:'No\x20timezone');return![];});}exports[_0x45cb('0xef')]=function(_0x1ed4cc,_0x10a05a,_0x3a93c1){var _0x26bd86=0x0;var _0x264642=0x0;var _0x192cfd=![];var _0x31caa4;var _0x2ab452;return db[_0x45cb('0x52')]['find']({'where':{'id':_0x1ed4cc[_0x45cb('0x64')]['id']},'include':[{'model':db[_0x45cb('0xf8')],'as':_0x45cb('0xf8'),'include':[{'model':db[_0x45cb('0xf8')],'as':_0x45cb('0xf9'),'attributes':['id',_0x45cb('0xf0')],'raw':!![]}]}]})['then'](handleEntityNotFound(_0x10a05a,null))[_0x45cb('0x22')](function(_0x20ef36){if(_0x20ef36){_0x31caa4=_0x20ef36;return _0x20ef36['getProactiveActions']({'raw':!![]});}})[_0x45cb('0x22')](function(_0x260611){if(_0x31caa4){if(_0x260611){_0x2ab452=_0x260611;}}return require('../../config/license/util')[_0x45cb('0x7b')]();})[_0x45cb('0x22')](function(_0x53a27d){if(_0x53a27d){_0x264642=_0x53a27d['virtual'];_0x192cfd=_0x53a27d[_0x45cb('0xfa')];}})[_0x45cb('0x22')](function(){return db[_0x45cb('0xb5')][_0x45cb('0x2f')]({'where':{'closed':![]}});})[_0x45cb('0x22')](function(_0x46349f){_0x26bd86=_0x46349f;if(_0x264642&&_0x46349f>_0x264642){return db[_0x45cb('0xfb')]['findOne']({'where':{'id':0x1}})[_0x45cb('0x22')](function(_0x2d7a1e){if(_0x2d7a1e){_0x2d7a1e[_0x45cb('0xfc')](_0x45cb('0xfd'));}});}})['then'](function(){if(_0x31caa4[_0x45cb('0xf8')]&&_0x31caa4[_0x45cb('0xf8')][_0x45cb('0xf9')]){var _0x32dd29=[];for(var _0xa46ada=0x0;_0xa46ada<_0x31caa4[_0x45cb('0xf8')][_0x45cb('0xf9')][_0x45cb('0x4a')];_0xa46ada++){var _0x56c173=_0x31caa4[_0x45cb('0xf8')][_0x45cb('0xf9')][_0xa46ada]['get']({'plain':!![]});_0x32dd29['push'](iftimePromise(_0x56c173,_0x31caa4));}return BPromise[_0x45cb('0xfe')](_0x32dd29)['then'](function(_0x5632bf){return _[_0x45cb('0xff')](_0x5632bf);});}else{return!![];}})[_0x45cb('0x22')](function(_0x1574bf){var _0x37cef3=fs['readFileSync'](path[_0x45cb('0x77')](config[_0x45cb('0x78')],_0x45cb('0x100')),_0x45cb('0xd0'));var _0x213889={'remote':_0x31caa4[_0x45cb('0x101')],'query':querystring['stringify'](_['merge'](_0x31caa4['get']({'plain':!![]}),{'customerIp':_0x1ed4cc['headers']['x-forwarded-for']||_0x1ed4cc[_0x45cb('0x89')][_0x45cb('0x102')]||_0x1ed4cc['connection'][_0x45cb('0x103')]||_0x1ed4cc['ip'],'referer':_0x1ed4cc[_0x45cb('0x89')][_0x45cb('0x104')],'openedInteractions':_0x26bd86,'maxInteractions':_0x264642,'virtual':_0x192cfd[_0x45cb('0x105')],'online':_0x1574bf,'custom':_0x192cfd}))[_0x45cb('0x106')](/'/g,'\x5c\x27')};_0x10a05a[_0x45cb('0x3c')](ejs[_0x45cb('0xd1')](Mustache['render'](_0x37cef3,_0x213889),{'proactiveActions':_0x2ab452,'alignment':_0x31caa4['alignment'],'verticalAlignment':_0x31caa4[_0x45cb('0x107')],'div_color':_0x31caa4[_0x45cb('0xec')],'text_color':_0x31caa4[_0x45cb('0x108')]}));})['catch'](handleError(_0x10a05a,null));};exports[_0x45cb('0x109')]=function(_0x2d2719,_0x5ece9a,_0x30107f){return db[_0x45cb('0x52')]['findOne']({'where':{'id':_0x2d2719['params']['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x5ece9a,null))[_0x45cb('0x22')](function(_0x382dbc){if(_0x382dbc){return db[_0x45cb('0x10a')]['transaction'](function(_0xd7bdf){return db[_0x45cb('0x9e')][_0x45cb('0x36')]({'where':{'ChatWebsiteId':_0x2d2719[_0x45cb('0x64')]['id']},'transaction':_0xd7bdf})[_0x45cb('0x22')](function(_0x3aac77){var _0x26d23b=_[_0x45cb('0x44')](_0x2d2719[_0x45cb('0x5c')],function(_0x1a8eca){_0x1a8eca[_0x45cb('0x66')]=_0x2d2719[_0x45cb('0x64')]['id'];return _0x1a8eca;});return db[_0x45cb('0x9e')][_0x45cb('0x10b')](_0x26d23b,{'transaction':_0xd7bdf});});})[_0x45cb('0x22')](function(){return db[_0x45cb('0x9e')][_0x45cb('0x10c')]({'where':{'ChatWebsiteId':_0x2d2719[_0x45cb('0x64')]['id']},'order':_0x45cb('0x10d')});});}})[_0x45cb('0x22')](respondWithResult(_0x5ece9a,null))['catch'](handleError(_0x5ece9a,null));};exports[_0x45cb('0x10e')]=function(_0x2e87d3,_0x26cf4d,_0x15175d){var _0x5dd4b6={};var _0x555506={};var _0x1bbe9e;var _0xe74cf0;return db[_0x45cb('0x52')][_0x45cb('0x6d')]({'where':{'id':_0x2e87d3[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x26cf4d,null))[_0x45cb('0x22')](function(_0x274ddb){if(_0x274ddb){_0x1bbe9e=_0x274ddb;_0x555506['model']=_[_0x45cb('0x58')](db['ChatApplication'][_0x45cb('0x40')]);_0x555506[_0x45cb('0x45')]=_[_0x45cb('0x58')](_0x2e87d3[_0x45cb('0x45')]);_0x555506[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0x555506[_0x45cb('0x43')],_0x555506[_0x45cb('0x45')]);_0x5dd4b6[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x555506['model'],qs[_0x45cb('0x49')](_0x2e87d3[_0x45cb('0x45')]['fields']));_0x5dd4b6[_0x45cb('0x48')]=_0x5dd4b6[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x5dd4b6['attributes']:_0x555506[_0x45cb('0x43')];_0x5dd4b6[_0x45cb('0x68')]=qs[_0x45cb('0x4c')](_0x2e87d3['query'][_0x45cb('0x4c')]);_0x5dd4b6[_0x45cb('0x4d')]=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x2e87d3[_0x45cb('0x45')],_0x555506[_0x45cb('0x46')]));if(_0x2e87d3[_0x45cb('0x45')][_0x45cb('0x50')]){_0x5dd4b6[_0x45cb('0x4d')]=_[_0x45cb('0x51')](_0x5dd4b6[_0x45cb('0x4d')],{'$or':_['map'](_0x5dd4b6[_0x45cb('0x48')],function(_0xac6df4){var _0x51e6dd={};_0x51e6dd[_0xac6df4]={'$like':'%'+_0x2e87d3['query'][_0x45cb('0x50')]+'%'};return _0x51e6dd;})});}_0x5dd4b6=_[_0x45cb('0x51')]({},_0x5dd4b6,_0x2e87d3[_0x45cb('0x59')]);return _0x1bbe9e[_0x45cb('0x10e')](_0x5dd4b6);}})[_0x45cb('0x22')](function(_0xe94723){if(_0xe94723){_0xe74cf0=_0xe94723[_0x45cb('0x4a')];if(!_0x2e87d3[_0x45cb('0x45')][_0x45cb('0x4b')]('nolimit')){_0x5dd4b6[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x2e87d3[_0x45cb('0x45')][_0x45cb('0x31')]);_0x5dd4b6['offset']=qs[_0x45cb('0x30')](_0x2e87d3[_0x45cb('0x45')][_0x45cb('0x30')]);}return _0x1bbe9e[_0x45cb('0x10e')](_0x5dd4b6);}})[_0x45cb('0x22')](function(_0x357f85){if(_0x357f85){return _0x357f85?{'count':_0xe74cf0,'rows':_0x357f85}:null;}})[_0x45cb('0x22')](respondWithResult(_0x26cf4d,null))[_0x45cb('0x2b')](handleError(_0x26cf4d,null));};exports['addProactiveActions']=function(_0x1b7043,_0x3eaacb,_0x49a272){return db[_0x45cb('0x10f')][_0x45cb('0x5a')]({'where':{'id':_0x1b7043[_0x45cb('0x64')]['id']}})['then'](handleEntityNotFound(_0x3eaacb,null))[_0x45cb('0x22')](function(_0x29daad){if(_0x29daad){return _0x29daad[_0x45cb('0x110')](_0x1b7043['body'][_0x45cb('0x6a')],_[_0x45cb('0x111')](_0x1b7043[_0x45cb('0x5c')],[_0x45cb('0x6a'),'id'])||{});}})[_0x45cb('0x22')](respondWithResult(_0x3eaacb,null))[_0x45cb('0x2b')](handleError(_0x3eaacb,null));};exports[_0x45cb('0x112')]=function(_0x655d3c,_0x173a81,_0x1d16ee){var _0x222903={};var _0x426c8a={};var _0x22bd2d;var _0x4fd964;return db[_0x45cb('0x52')][_0x45cb('0x6d')]({'where':{'id':_0x655d3c[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x173a81,null))[_0x45cb('0x22')](function(_0x63998a){if(_0x63998a){_0x22bd2d=_0x63998a;_0x426c8a[_0x45cb('0x43')]=_[_0x45cb('0x58')](db[_0x45cb('0x113')][_0x45cb('0x40')]);_0x426c8a[_0x45cb('0x45')]=_[_0x45cb('0x58')](_0x655d3c[_0x45cb('0x45')]);_0x426c8a['filters']=_[_0x45cb('0x47')](_0x426c8a[_0x45cb('0x43')],_0x426c8a[_0x45cb('0x45')]);_0x222903[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x426c8a[_0x45cb('0x43')],qs['fields'](_0x655d3c[_0x45cb('0x45')][_0x45cb('0x49')]));_0x222903[_0x45cb('0x48')]=_0x222903[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x222903[_0x45cb('0x48')]:_0x426c8a[_0x45cb('0x43')];_0x222903[_0x45cb('0x68')]=qs[_0x45cb('0x4c')](_0x655d3c[_0x45cb('0x45')][_0x45cb('0x4c')]);_0x222903['where']=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x655d3c[_0x45cb('0x45')],_0x426c8a[_0x45cb('0x46')]));if(_0x655d3c[_0x45cb('0x45')]['filter']){_0x222903[_0x45cb('0x4d')]=_[_0x45cb('0x51')](_0x222903[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x222903[_0x45cb('0x48')],function(_0x39f65a){var _0x114d29={};_0x114d29[_0x39f65a]={'$like':'%'+_0x655d3c[_0x45cb('0x45')][_0x45cb('0x50')]+'%'};return _0x114d29;})});}_0x222903=_[_0x45cb('0x51')]({},_0x222903,_0x655d3c['options']);return _0x22bd2d['getProactiveActions'](_0x222903);}})[_0x45cb('0x22')](function(_0x443d16){if(_0x443d16){_0x4fd964=_0x443d16['length'];if(!_0x655d3c[_0x45cb('0x45')][_0x45cb('0x4b')](_0x45cb('0x6e'))){_0x222903[_0x45cb('0x31')]=qs['limit'](_0x655d3c[_0x45cb('0x45')]['limit']);_0x222903[_0x45cb('0x30')]=qs[_0x45cb('0x30')](_0x655d3c[_0x45cb('0x45')]['offset']);}return _0x22bd2d[_0x45cb('0x112')](_0x222903);}})['then'](function(_0x167a1a){if(_0x167a1a){return _0x167a1a?{'count':_0x4fd964,'rows':_0x167a1a}:null;}})[_0x45cb('0x22')](respondWithResult(_0x173a81,null))['catch'](handleError(_0x173a81,null));};exports[_0x45cb('0x114')]=function(_0x4bbc32,_0x559b0d,_0x3ad979){var _0x27ec34=_0x4bbc32['query'][_0x45cb('0x115')]===_0x45cb('0x116')?'offlineForm':_0x45cb('0x117');return db['ChatWebsite'][_0x45cb('0x5a')]({'attributes':['id',_0x27ec34],'where':{'id':_0x4bbc32[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x559b0d,null))['then'](function(_0x40a0d7){if(_0x40a0d7){var _0x473067=_0x40a0d7[_0x27ec34];var _0x34cac9=_0x473067&&_0x473067[_0x45cb('0x118')]?_0x473067[_0x45cb('0x118')]:[];_0x559b0d[_0x45cb('0x3c')]({'fromKey':_[_0x45cb('0x7c')](_0x473067[_0x45cb('0x119')])?undefined:_0x473067[_0x45cb('0x119')],'count':_0x34cac9[_0x45cb('0x4a')],'rows':_0x34cac9});}})[_0x45cb('0x2b')](handleError(_0x559b0d,null));};exports['getOfflineMessages']=function(_0x20f76e,_0x3bef35,_0x398240){var _0x1fdd43={'raw':!![],'where':{}};var _0x157d36={};var _0x3ee8c0={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x45cb('0x6d')]({'where':{'id':_0x20f76e[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x3bef35,null))[_0x45cb('0x22')](function(_0x5f023f){if(_0x5f023f){_0x157d36[_0x45cb('0x43')]=_[_0x45cb('0x58')](db[_0x45cb('0xd4')][_0x45cb('0x40')]);_0x157d36[_0x45cb('0x45')]=_[_0x45cb('0x58')](_0x20f76e[_0x45cb('0x45')]);_0x157d36['filters']=_[_0x45cb('0x47')](_0x157d36[_0x45cb('0x43')],_0x157d36[_0x45cb('0x45')]);_0x1fdd43[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x157d36[_0x45cb('0x43')],qs[_0x45cb('0x49')](_0x20f76e['query'][_0x45cb('0x49')]));_0x1fdd43[_0x45cb('0x48')]=_0x1fdd43[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x1fdd43[_0x45cb('0x48')]:_0x157d36[_0x45cb('0x43')];if(!_0x20f76e[_0x45cb('0x45')][_0x45cb('0x4b')]('nolimit')){_0x1fdd43[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x20f76e[_0x45cb('0x45')][_0x45cb('0x31')]);_0x1fdd43[_0x45cb('0x30')]=qs[_0x45cb('0x30')](_0x20f76e[_0x45cb('0x45')][_0x45cb('0x30')]);}_0x1fdd43[_0x45cb('0x68')]=qs[_0x45cb('0x4c')](_0x20f76e['query'][_0x45cb('0x4c')]);_0x1fdd43[_0x45cb('0x4d')]=qs[_0x45cb('0x46')](_[_0x45cb('0x4e')](_0x20f76e[_0x45cb('0x45')],_0x157d36['filters']));_0x1fdd43['where']['ChatWebsiteId']=_0x5f023f['id'];if(_0x20f76e[_0x45cb('0x45')][_0x45cb('0x50')]){_0x1fdd43[_0x45cb('0x4d')]=_[_0x45cb('0x51')](_0x1fdd43[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x1fdd43['attributes'],function(_0x4c77f8){var _0x5f3f05={};_0x5f3f05[_0x4c77f8]={'$like':'%'+_0x20f76e[_0x45cb('0x45')][_0x45cb('0x50')]+'%'};return _0x5f3f05;})});}_0x1fdd43=_['merge']({},_0x1fdd43,_0x20f76e['options']);return db['ChatOfflineMessage']['count']({'where':_0x1fdd43[_0x45cb('0x4d')]})['then'](function(_0x35371b){_0x3ee8c0[_0x45cb('0x2f')]=_0x35371b;if(_0x20f76e[_0x45cb('0x45')]['includeAll']){_0x1fdd43[_0x45cb('0x54')]=[{'all':!![]}];}return db[_0x45cb('0xd4')]['findAll'](_0x1fdd43);})[_0x45cb('0x22')](function(_0x476c14){_0x3ee8c0[_0x45cb('0x56')]=_0x476c14;return _0x3ee8c0;});}})['then'](respondWithFilteredResult(_0x3bef35,_0x1fdd43))['catch'](handleError(_0x3bef35,null));};exports['addAgents']=function(_0x4cd2ee,_0x4869e7,_0xbdc82f){return db[_0x45cb('0x52')]['find']({'where':{'id':_0x4cd2ee[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0x4869e7,null))['then'](function(_0x403f1c){if(_0x403f1c){return _0x403f1c['addAgents'](_0x4cd2ee['body'][_0x45cb('0x6a')],_[_0x45cb('0x111')](_0x4cd2ee[_0x45cb('0x5c')],[_0x45cb('0x6a'),'id'])||{})[_0x45cb('0xb8')](function(_0x1ffdbd){for(var _0x453172=0x0;_0x453172<_0x4cd2ee[_0x45cb('0x5c')][_0x45cb('0x6a')][_0x45cb('0x4a')];_0x453172+=0x1){socket[_0x45cb('0x11a')](_0x45cb('0x11b'),{'UserId':_0x4cd2ee[_0x45cb('0x5c')][_0x45cb('0x6a')][_0x453172],'ChatWebsiteId':_0x4cd2ee[_0x45cb('0x64')]['id']});}return _0x1ffdbd;});}})[_0x45cb('0x22')](respondWithResult(_0x4869e7,null))[_0x45cb('0x2b')](handleError(_0x4869e7,null));};exports['removeAgents']=function(_0x509228,_0x6d2cbc,_0x1cf247){return db[_0x45cb('0x52')][_0x45cb('0x5a')]({'where':{'id':_0x509228['params']['id']}})['then'](handleEntityNotFound(_0x6d2cbc,null))[_0x45cb('0x22')](function(_0x429556){if(_0x429556){return _0x429556['removeAgents'](_0x509228[_0x45cb('0x45')][_0x45cb('0x6a')])[_0x45cb('0x22')](function(){if(_[_0x45cb('0x11c')](_0x509228[_0x45cb('0x45')][_0x45cb('0x6a')])){for(var _0x32be5f=0x0;_0x32be5f<_0x509228[_0x45cb('0x45')][_0x45cb('0x6a')][_0x45cb('0x4a')];_0x32be5f+=0x1){socket[_0x45cb('0x11a')](_0x45cb('0x11d'),{'UserId':Number(_0x509228[_0x45cb('0x45')][_0x45cb('0x6a')][_0x32be5f]),'ChatWebsiteId':Number(_0x509228['params']['id'])});}}else{socket[_0x45cb('0x11a')](_0x45cb('0x11d'),{'UserId':Number(_0x509228['query'][_0x45cb('0x6a')]),'ChatWebsiteId':Number(_0x509228[_0x45cb('0x64')]['id'])});}});}})[_0x45cb('0x22')](respondWithStatusCode(_0x6d2cbc,null))['catch'](handleError(_0x6d2cbc,null));};exports[_0x45cb('0x11e')]=function(_0x42a2df,_0xe9dc4,_0x1423df){var _0x365a29={};var _0x4d72ab={};var _0x44bd5d;var _0x1e2339;return db[_0x45cb('0x52')][_0x45cb('0x6d')]({'where':{'id':_0x42a2df[_0x45cb('0x64')]['id']}})[_0x45cb('0x22')](handleEntityNotFound(_0xe9dc4,null))[_0x45cb('0x22')](function(_0x4d262c){if(_0x4d262c){_0x44bd5d=_0x4d262c;_0x4d72ab[_0x45cb('0x43')]=_['keys'](db[_0x45cb('0xe6')][_0x45cb('0x40')]);_0x4d72ab['query']=_[_0x45cb('0x58')](_0x42a2df[_0x45cb('0x45')]);_0x4d72ab[_0x45cb('0x46')]=_[_0x45cb('0x47')](_0x4d72ab['model'],_0x4d72ab[_0x45cb('0x45')]);_0x365a29[_0x45cb('0x48')]=_[_0x45cb('0x47')](_0x4d72ab[_0x45cb('0x43')],qs[_0x45cb('0x49')](_0x42a2df[_0x45cb('0x45')][_0x45cb('0x49')]));_0x365a29['attributes']=_0x365a29[_0x45cb('0x48')][_0x45cb('0x4a')]?_0x365a29['attributes']:_0x4d72ab[_0x45cb('0x43')];_0x365a29[_0x45cb('0x68')]=qs[_0x45cb('0x4c')](_0x42a2df[_0x45cb('0x45')][_0x45cb('0x4c')]);_0x365a29['where']=qs['filters'](_['pick'](_0x42a2df[_0x45cb('0x45')],_0x4d72ab['filters']));if(_0x42a2df[_0x45cb('0x45')][_0x45cb('0x50')]){_0x365a29[_0x45cb('0x4d')]=_[_0x45cb('0x51')](_0x365a29[_0x45cb('0x4d')],{'$or':_[_0x45cb('0x44')](_0x365a29[_0x45cb('0x48')],function(_0xdbafe4){var _0x1ab6fa={};_0x1ab6fa[_0xdbafe4]={'$like':'%'+_0x42a2df['query'][_0x45cb('0x50')]+'%'};return _0x1ab6fa;})});}_0x365a29=_[_0x45cb('0x51')]({},_0x365a29,_0x42a2df['options']);return _0x44bd5d[_0x45cb('0x11e')](_0x365a29);}})[_0x45cb('0x22')](function(_0x349075){if(_0x349075){_0x1e2339=_0x349075[_0x45cb('0x4a')];if(!_0x42a2df[_0x45cb('0x45')][_0x45cb('0x4b')](_0x45cb('0x6e'))){_0x365a29[_0x45cb('0x31')]=qs[_0x45cb('0x31')](_0x42a2df[_0x45cb('0x45')][_0x45cb('0x31')]);_0x365a29[_0x45cb('0x30')]=qs['offset'](_0x42a2df['query']['offset']);}return _0x44bd5d[_0x45cb('0x11e')](_0x365a29);}})[_0x45cb('0x22')](function(_0x175161){if(_0x175161){return _0x175161?{'count':_0x1e2339,'rows':_0x175161}:null;}})['then'](respondWithResult(_0xe9dc4,null))['catch'](handleError(_0xe9dc4,null));};
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js
index 2594d1a..6830271 100644
--- a/server/api/chatWebsite/chatWebsite.events.js
+++ b/server/api/chatWebsite/chatWebsite.events.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3de2=['exports','events','ChatWebsite','setMaxListeners','save','update','emit','hasOwnProperty'];(function(_0x396466,_0xe9857b){var _0x5e9ab4=function(_0x362f66){while(--_0x362f66){_0x396466['push'](_0x396466['shift']());}};_0x5e9ab4(++_0xe9857b);}(_0x3de2,0x79));var _0x23de=function(_0x3c8e9a,_0x384306){_0x3c8e9a=_0x3c8e9a-0x0;var _0x2d4c57=_0x3de2[_0x3c8e9a];return _0x2d4c57;};'use strict';var EventEmitter=require(_0x23de('0x0'));var ChatWebsite=require('../../mysqldb')['db'][_0x23de('0x1')];var ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x23de('0x2')](0x0);var events={'afterCreate':_0x23de('0x3'),'afterUpdate':_0x23de('0x4'),'afterDestroy':'remove'};function emitEvent(_0x523818){return function(_0x13f461,_0x408e6a,_0x211040){ChatWebsiteEvents[_0x23de('0x5')](_0x523818+':'+_0x13f461['id'],_0x13f461);ChatWebsiteEvents['emit'](_0x523818,_0x13f461);_0x211040(null);};}for(var e in events){if(events[_0x23de('0x6')](e)){var event=events[e];ChatWebsite['hook'](e,emitEvent(event));}}module[_0x23de('0x7')]=ChatWebsiteEvents;
\ No newline at end of file
+var _0x64f0=['emit','hasOwnProperty','events','setMaxListeners','save','update'];(function(_0xaf8f29,_0x5754cf){var _0x391fed=function(_0x322809){while(--_0x322809){_0xaf8f29['push'](_0xaf8f29['shift']());}};_0x391fed(++_0x5754cf);}(_0x64f0,0x1a0));var _0x064f=function(_0x102ff9,_0x907658){_0x102ff9=_0x102ff9-0x0;var _0x24fa97=_0x64f0[_0x102ff9];return _0x24fa97;};'use strict';var EventEmitter=require(_0x064f('0x0'));var ChatWebsite=require('../../mysqldb')['db']['ChatWebsite'];var ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x064f('0x1')](0x0);var events={'afterCreate':_0x064f('0x2'),'afterUpdate':_0x064f('0x3'),'afterDestroy':'remove'};function emitEvent(_0x304ece){return function(_0x3a730c,_0x5f5391,_0x1e6f40){ChatWebsiteEvents[_0x064f('0x4')](_0x304ece+':'+_0x3a730c['id'],_0x3a730c);ChatWebsiteEvents['emit'](_0x304ece,_0x3a730c);_0x1e6f40(null);};}for(var e in events){if(events[_0x064f('0x5')](e)){var event=events[e];ChatWebsite['hook'](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents;
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js
index 7452e44..53ff4d3 100644
--- a/server/api/chatWebsite/chatWebsite.model.js
+++ b/server/api/chatWebsite/chatWebsite.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xb62e=['../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./chatWebsite.attributes','define','chat_websites','lodash','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xb62e,0x1de));var _0xeb62=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0xb62e[_0x397e5f];return _0x5302b8;};'use strict';var _=require(_0xeb62('0x0'));var util=require(_0xeb62('0x1'));var logger=require(_0xeb62('0x2'))(_0xeb62('0x3'));var moment=require('moment');var BPromise=require(_0xeb62('0x4'));var rp=require(_0xeb62('0x5'));var fs=require('fs');var path=require(_0xeb62('0x6'));var rimraf=require(_0xeb62('0x7'));var config=require(_0xeb62('0x8'));var attributes=require(_0xeb62('0x9'));module['exports']=function(_0x3ec879,_0x455e1a){return _0x3ec879[_0xeb62('0xa')]('ChatWebsite',attributes,{'tableName':_0xeb62('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xfc03=['./chatWebsite.attributes','exports','define','chat_websites','lodash','../../config/logger','api','bluebird','path','rimraf','../../config/environment'];(function(_0x4192ad,_0x488f5c){var _0x415dc3=function(_0x288ed5){while(--_0x288ed5){_0x4192ad['push'](_0x4192ad['shift']());}};_0x415dc3(++_0x488f5c);}(_0xfc03,0x16f));var _0x3fc0=function(_0x368fb9,_0x1a9895){_0x368fb9=_0x368fb9-0x0;var _0x4892fb=_0xfc03[_0x368fb9];return _0x4892fb;};'use strict';var _=require(_0x3fc0('0x0'));var util=require('util');var logger=require(_0x3fc0('0x1'))(_0x3fc0('0x2'));var moment=require('moment');var BPromise=require(_0x3fc0('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3fc0('0x4'));var rimraf=require(_0x3fc0('0x5'));var config=require(_0x3fc0('0x6'));var attributes=require(_0x3fc0('0x7'));module[_0x3fc0('0x8')]=function(_0x389bfb,_0x2b4ef6){return _0x389bfb[_0x3fc0('0x9')]('ChatWebsite',attributes,{'tableName':_0x3fc0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js
index 8455d4d..4003e33 100644
--- a/server/api/chatWebsite/chatWebsite.rpc.js
+++ b/server/api/chatWebsite/chatWebsite.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x47c5=['ChatWebsite,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','./chatWebsite.socket','register','request','then','ChatWebsite,\x20%s,\x20%s','request\x20sent'];(function(_0x2b636b,_0xe5406d){var _0x23ac77=function(_0x52ddb6){while(--_0x52ddb6){_0x2b636b['push'](_0x2b636b['shift']());}};_0x23ac77(++_0xe5406d);}(_0x47c5,0x165));var _0x547c=function(_0x1657b6,_0x5b8def){_0x1657b6=_0x1657b6-0x0;var _0x2fdb3c=_0x47c5[_0x1657b6];return _0x2fdb3c;};'use strict';var _=require(_0x547c('0x0'));var util=require(_0x547c('0x1'));var moment=require(_0x547c('0x2'));var BPromise=require(_0x547c('0x3'));var rs=require(_0x547c('0x4'));var fs=require('fs');var Redis=require(_0x547c('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x547c('0x6'));var logger=require(_0x547c('0x7'))('rpc');var config=require(_0x547c('0x8'));var jayson=require(_0x547c('0x9'));var client=jayson['client'][_0x547c('0xa')]({'port':0x232a});config[_0x547c('0xb')]=_[_0x547c('0xc')](config[_0x547c('0xb')],{'host':_0x547c('0xd'),'port':0x18eb});var socket=require(_0x547c('0xe'))(new Redis(config[_0x547c('0xb')]));require(_0x547c('0xf'))[_0x547c('0x10')](socket);function respondWithRpcPromise(_0x44a581,_0x72828d,_0x2c54e){return new BPromise(function(_0x111457,_0x2455e9){return client[_0x547c('0x11')](_0x44a581,_0x2c54e)[_0x547c('0x12')](function(_0x44ab17){logger['info'](_0x547c('0x13'),_0x72828d,_0x547c('0x14'));logger['debug'](_0x547c('0x15'),_0x72828d,_0x547c('0x14'),JSON[_0x547c('0x16')](_0x44ab17));if(_0x44ab17[_0x547c('0x17')]){if(_0x44ab17[_0x547c('0x17')][_0x547c('0x18')]===0x1f4){logger[_0x547c('0x17')](_0x547c('0x13'),_0x72828d,_0x44ab17[_0x547c('0x17')][_0x547c('0x19')]);return _0x2455e9(_0x44ab17[_0x547c('0x17')][_0x547c('0x19')]);}logger[_0x547c('0x17')](_0x547c('0x13'),_0x72828d,_0x44ab17[_0x547c('0x17')][_0x547c('0x19')]);return _0x111457(_0x44ab17[_0x547c('0x17')][_0x547c('0x19')]);}else{logger['info']('ChatWebsite,\x20%s,\x20%s',_0x72828d,_0x547c('0x14'));_0x111457(_0x44ab17[_0x547c('0x1a')][_0x547c('0x19')]);}})['catch'](function(_0x248aca){logger[_0x547c('0x17')](_0x547c('0x13'),_0x72828d,_0x248aca);_0x2455e9(_0x248aca);});});}
\ No newline at end of file
+var _0x5f2f=['util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','register','then','ChatWebsite,\x20%s,\x20%s','request\x20sent','debug','ChatWebsite,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash'];(function(_0x331eca,_0x54a7d1){var _0x38beec=function(_0x576633){while(--_0x576633){_0x331eca['push'](_0x331eca['shift']());}};_0x38beec(++_0x54a7d1);}(_0x5f2f,0x73));var _0xf5f2=function(_0x4116ae,_0x4a45a4){_0x4116ae=_0x4116ae-0x0;var _0x585db7=_0x5f2f[_0x4116ae];return _0x585db7;};'use strict';var _=require(_0xf5f2('0x0'));var util=require(_0xf5f2('0x1'));var moment=require(_0xf5f2('0x2'));var BPromise=require(_0xf5f2('0x3'));var rs=require(_0xf5f2('0x4'));var fs=require('fs');var Redis=require(_0xf5f2('0x5'));var db=require(_0xf5f2('0x6'))['db'];var utils=require(_0xf5f2('0x7'));var logger=require('../../config/logger')('rpc');var config=require(_0xf5f2('0x8'));var jayson=require(_0xf5f2('0x9'));var client=jayson[_0xf5f2('0xa')][_0xf5f2('0xb')]({'port':0x232a});config[_0xf5f2('0xc')]=_[_0xf5f2('0xd')](config['redis'],{'host':_0xf5f2('0xe'),'port':0x18eb});var socket=require(_0xf5f2('0xf'))(new Redis(config[_0xf5f2('0xc')]));require('./chatWebsite.socket')[_0xf5f2('0x10')](socket);function respondWithRpcPromise(_0x15dd7c,_0x218ae3,_0x4e0e6b){return new BPromise(function(_0x977a59,_0x4ebbbe){return client['request'](_0x15dd7c,_0x4e0e6b)[_0xf5f2('0x11')](function(_0x151aba){logger['info'](_0xf5f2('0x12'),_0x218ae3,_0xf5f2('0x13'));logger[_0xf5f2('0x14')](_0xf5f2('0x15'),_0x218ae3,_0xf5f2('0x13'),JSON[_0xf5f2('0x16')](_0x151aba));if(_0x151aba['error']){if(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x18')]===0x1f4){logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x151aba[_0xf5f2('0x17')]['message']);return _0x4ebbbe(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);}logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);return _0x977a59(_0x151aba[_0xf5f2('0x17')][_0xf5f2('0x19')]);}else{logger[_0xf5f2('0x1a')](_0xf5f2('0x12'),_0x218ae3,_0xf5f2('0x13'));_0x977a59(_0x151aba[_0xf5f2('0x1b')][_0xf5f2('0x19')]);}})[_0xf5f2('0x1c')](function(_0x3cf5ea){logger[_0xf5f2('0x17')](_0xf5f2('0x12'),_0x218ae3,_0x3cf5ea);_0x4ebbbe(_0x3cf5ea);});});}
\ No newline at end of file
diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js
index fcab2d6..3c7e6ad 100644
--- a/server/api/chatWebsite/chatWebsite.socket.js
+++ b/server/api/chatWebsite/chatWebsite.socket.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x5f2f=['remove','update','emit','removeListener','register','length','chatWebsite:','./chatWebsite.events','save'];(function(_0x5a2436,_0x11375a){var _0x2d8468=function(_0x5b77b9){while(--_0x5b77b9){_0x5a2436['push'](_0x5a2436['shift']());}};_0x2d8468(++_0x11375a);}(_0x5f2f,0x73));var _0xf5f2=function(_0x2b98aa,_0x4b893f){_0x2b98aa=_0x2b98aa-0x0;var _0x4a9028=_0x5f2f[_0x2b98aa];return _0x4a9028;};'use strict';var ChatWebsiteEvents=require(_0xf5f2('0x0'));var events=[_0xf5f2('0x1'),_0xf5f2('0x2'),_0xf5f2('0x3')];function createListener(_0x1172dd,_0x174bc7){return function(_0x3c72ee){_0x174bc7[_0xf5f2('0x4')](_0x1172dd,_0x3c72ee);};}function removeListener(_0x501fbd,_0x4854b6){return function(){ChatWebsiteEvents[_0xf5f2('0x5')](_0x501fbd,_0x4854b6);};}exports[_0xf5f2('0x6')]=function(_0xad7f65){for(var _0x3eebf6=0x0,_0x3133bc=events[_0xf5f2('0x7')];_0x3eebf6<_0x3133bc;_0x3eebf6++){var _0x5907aa=events[_0x3eebf6];var _0x466882=createListener(_0xf5f2('0x8')+_0x5907aa,_0xad7f65);ChatWebsiteEvents['on'](_0x5907aa,_0x466882);}};
\ No newline at end of file
+var _0x5f2f=['remove','update','emit','removeListener','register','length','chatWebsite:','./chatWebsite.events','save'];(function(_0x3767fb,_0x3b917c){var _0x9bd1b9=function(_0x37d2ba){while(--_0x37d2ba){_0x3767fb['push'](_0x3767fb['shift']());}};_0x9bd1b9(++_0x3b917c);}(_0x5f2f,0x73));var _0xf5f2=function(_0x4f0e5b,_0x1a5bce){_0x4f0e5b=_0x4f0e5b-0x0;var _0x4dad9d=_0x5f2f[_0x4f0e5b];return _0x4dad9d;};'use strict';var ChatWebsiteEvents=require(_0xf5f2('0x0'));var events=[_0xf5f2('0x1'),_0xf5f2('0x2'),_0xf5f2('0x3')];function createListener(_0x1172dd,_0x174bc7){return function(_0x3c72ee){_0x174bc7[_0xf5f2('0x4')](_0x1172dd,_0x3c72ee);};}function removeListener(_0x501fbd,_0x4854b6){return function(){ChatWebsiteEvents[_0xf5f2('0x5')](_0x501fbd,_0x4854b6);};}exports[_0xf5f2('0x6')]=function(_0xad7f65){for(var _0x3eebf6=0x0,_0x3133bc=events[_0xf5f2('0x7')];_0x3eebf6<_0x3133bc;_0x3eebf6++){var _0x5907aa=events[_0x3eebf6];var _0x466882=createListener(_0xf5f2('0x8')+_0x5907aa,_0xad7f65);ChatWebsiteEvents['on'](_0x5907aa,_0x466882);}};
\ No newline at end of file
diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js
index 32133e0..303fd3a 100644
--- a/server/api/chatWebsite/index.js
+++ b/server/api/chatWebsite/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3405=['/:id/dispositions','getDispositions','getAnswers','/:id/logo','getLogo','/:id/avatar','getAvatar','/:id/customer_avatar','getSystemAvatar','/:id/interactions','getInteractions','/:id/snippet','getSnippet','/:id/applications','getApplications','/:id/proactive_actions','getProactiveActions','/:id/fields','getFields','/:id/offline_messages','/:id/users','getAgents','create','post','addDisposition','/:id/canned_answers','addAnswer','diskStorage','join','root','server/files/images/logos/','format','%s-%s','now','originalname','single','file','addLogo','server/files/images/avatars/','addAvatar','addSystemAvatar','/:id/notify','notify','/:id/offline','addInteraction','addApplications','addProactiveActions','addAgents','put','/:id','delete','destroy','removeDispositions','removeAnswers','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','show'];(function(_0x15fcbb,_0x3430de){var _0x7b1037=function(_0x2adff0){while(--_0x2adff0){_0x15fcbb['push'](_0x15fcbb['shift']());}};_0x7b1037(++_0x3430de);}(_0x3405,0x142));var _0x5340=function(_0x40220a,_0x22feb1){_0x40220a=_0x40220a-0x0;var _0x3903cc=_0x3405[_0x40220a];return _0x3903cc;};'use strict';var multer=require(_0x5340('0x0'));var util=require(_0x5340('0x1'));var path=require(_0x5340('0x2'));var timeout=require(_0x5340('0x3'));var express=require('express');var router=express[_0x5340('0x4')]();var auth=require(_0x5340('0x5'));var interaction=require(_0x5340('0x6'));var config=require(_0x5340('0x7'));var controller=require('./chatWebsite.controller');router[_0x5340('0x8')]('/',auth[_0x5340('0x9')](),controller['index']);router[_0x5340('0x8')](_0x5340('0xa'),auth['isAuthenticated'](),controller[_0x5340('0xb')]);router['get']('/:id',auth[_0x5340('0x9')](),controller[_0x5340('0xc')]);router['get'](_0x5340('0xd'),auth[_0x5340('0x9')](),controller[_0x5340('0xe')]);router[_0x5340('0x8')]('/:id/canned_answers',auth[_0x5340('0x9')](),controller[_0x5340('0xf')]);router[_0x5340('0x8')](_0x5340('0x10'),controller[_0x5340('0x11')]);router['get'](_0x5340('0x12'),controller[_0x5340('0x13')]);router[_0x5340('0x8')](_0x5340('0x14'),controller['getCustomerAvatar']);router[_0x5340('0x8')]('/:id/system_avatar',controller[_0x5340('0x15')]);router[_0x5340('0x8')](_0x5340('0x16'),auth[_0x5340('0x9')](),controller[_0x5340('0x17')]);router['get'](_0x5340('0x18'),controller[_0x5340('0x19')]);router['get'](_0x5340('0x1a'),auth[_0x5340('0x9')](),controller[_0x5340('0x1b')]);router[_0x5340('0x8')](_0x5340('0x1c'),auth[_0x5340('0x9')](),controller[_0x5340('0x1d')]);router[_0x5340('0x8')](_0x5340('0x1e'),controller[_0x5340('0x1f')]);router['get'](_0x5340('0x20'),auth[_0x5340('0x9')](),controller['getOfflineMessages']);router[_0x5340('0x8')](_0x5340('0x21'),auth[_0x5340('0x9')](),controller[_0x5340('0x22')]);router['post']('/',auth[_0x5340('0x9')](),controller[_0x5340('0x23')]);router[_0x5340('0x24')](_0x5340('0xd'),auth[_0x5340('0x9')](),controller[_0x5340('0x25')]);router[_0x5340('0x24')](_0x5340('0x26'),auth['isAuthenticated'](),controller[_0x5340('0x27')]);var upload=multer({'storage':multer[_0x5340('0x28')]({'destination':function(_0x4cc1df,_0x5ac873,_0x5a69bb){_0x5a69bb(null,path[_0x5340('0x29')](config[_0x5340('0x2a')],_0x5340('0x2b')));},'filename':function(_0x3d6a01,_0x220fd6,_0x5a6188){_0x5a6188(null,util[_0x5340('0x2c')](_0x5340('0x2d'),Date[_0x5340('0x2e')](),_0x220fd6[_0x5340('0x2f')]));}})});router[_0x5340('0x24')]('/:id/logo',upload[_0x5340('0x30')](_0x5340('0x31')),controller[_0x5340('0x32')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x5860f9,_0x46d1ee,_0x38f064){_0x38f064(null,path[_0x5340('0x29')](config[_0x5340('0x2a')],_0x5340('0x33')));},'filename':function(_0x546b46,_0x39f3fe,_0x2676a5){_0x2676a5(null,util[_0x5340('0x2c')](_0x5340('0x2d'),Date[_0x5340('0x2e')](),_0x39f3fe[_0x5340('0x2f')]));}})});router['post'](_0x5340('0x12'),upload[_0x5340('0x30')](_0x5340('0x31')),controller[_0x5340('0x34')]);var upload=multer({'storage':multer[_0x5340('0x28')]({'destination':function(_0x18a783,_0x31df57,_0x5f546f){_0x5f546f(null,path['join'](config[_0x5340('0x2a')],_0x5340('0x33')));},'filename':function(_0x53af8b,_0x4daa14,_0x593990){_0x593990(null,util[_0x5340('0x2c')](_0x5340('0x2d'),Date[_0x5340('0x2e')](),_0x4daa14[_0x5340('0x2f')]));}})});router[_0x5340('0x24')]('/:id/customer_avatar',upload['single'](_0x5340('0x31')),controller['addCustomerAvatar']);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x23d017,_0x66ecf1,_0x5be408){_0x5be408(null,path[_0x5340('0x29')](config[_0x5340('0x2a')],_0x5340('0x33')));},'filename':function(_0x2d7381,_0xab3555,_0x2a0531){_0x2a0531(null,util[_0x5340('0x2c')](_0x5340('0x2d'),Date['now'](),_0xab3555[_0x5340('0x2f')]));}})});router[_0x5340('0x24')]('/:id/system_avatar',upload['single'](_0x5340('0x31')),controller[_0x5340('0x35')]);router[_0x5340('0x24')](_0x5340('0x36'),controller[_0x5340('0x37')]);router[_0x5340('0x24')](_0x5340('0x38'),controller['offline']);router[_0x5340('0x24')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x5340('0x39')]);router[_0x5340('0x24')](_0x5340('0x1a'),auth[_0x5340('0x9')](),controller[_0x5340('0x3a')]);router[_0x5340('0x24')](_0x5340('0x1c'),auth['isAuthenticated'](),controller[_0x5340('0x3b')]);router['post'](_0x5340('0x21'),auth[_0x5340('0x9')](),controller[_0x5340('0x3c')]);router[_0x5340('0x3d')](_0x5340('0x3e'),auth[_0x5340('0x9')](),controller['update']);router[_0x5340('0x3f')](_0x5340('0x3e'),auth[_0x5340('0x9')](),controller[_0x5340('0x40')]);router[_0x5340('0x3f')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x5340('0x41')]);router['delete'](_0x5340('0x26'),auth[_0x5340('0x9')](),controller[_0x5340('0x42')]);router[_0x5340('0x3f')](_0x5340('0x21'),auth[_0x5340('0x9')](),controller['removeAgents']);module['exports']=router;
\ No newline at end of file
+var _0xac18=['post','create','addDisposition','addAnswer','diskStorage','root','server/files/images/logos/','format','originalname','single','file','addLogo','join','server/files/images/avatars/','%s-%s','now','/:id/notify','notify','/:id/offline','offline','addInteraction','addApplications','addAgents','put','update','delete','removeDispositions','/:id/canned_answers','removeAnswers','removeAgents','util','path','connect-timeout','../../config/environment','./chatWebsite.controller','index','isAuthenticated','describe','get','/:id','show','/:id/dispositions','getDispositions','getAnswers','/:id/logo','/:id/avatar','getAvatar','/:id/system_avatar','getSystemAvatar','/:id/interactions','getInteractions','getSnippet','/:id/applications','getApplications','/:id/proactive_actions','getFields','/:id/offline_messages','/:id/users'];(function(_0x3a55c6,_0x19ace8){var _0x547dd0=function(_0x2b4b9b){while(--_0x2b4b9b){_0x3a55c6['push'](_0x3a55c6['shift']());}};_0x547dd0(++_0x19ace8);}(_0xac18,0x1b4));var _0x8ac1=function(_0x376167,_0x33fa92){_0x376167=_0x376167-0x0;var _0x3e3bd0=_0xac18[_0x376167];return _0x3e3bd0;};'use strict';var multer=require('multer');var util=require(_0x8ac1('0x0'));var path=require(_0x8ac1('0x1'));var timeout=require(_0x8ac1('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8ac1('0x3'));var controller=require(_0x8ac1('0x4'));router['get']('/',auth['isAuthenticated'](),controller[_0x8ac1('0x5')]);router['get']('/describe',auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x7')]);router[_0x8ac1('0x8')](_0x8ac1('0x9'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0xa')]);router[_0x8ac1('0x8')](_0x8ac1('0xb'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0xc')]);router[_0x8ac1('0x8')]('/:id/canned_answers',auth[_0x8ac1('0x6')](),controller[_0x8ac1('0xd')]);router[_0x8ac1('0x8')](_0x8ac1('0xe'),controller['getLogo']);router[_0x8ac1('0x8')](_0x8ac1('0xf'),controller[_0x8ac1('0x10')]);router[_0x8ac1('0x8')]('/:id/customer_avatar',controller['getCustomerAvatar']);router[_0x8ac1('0x8')](_0x8ac1('0x11'),controller[_0x8ac1('0x12')]);router[_0x8ac1('0x8')](_0x8ac1('0x13'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x14')]);router[_0x8ac1('0x8')]('/:id/snippet',controller[_0x8ac1('0x15')]);router[_0x8ac1('0x8')](_0x8ac1('0x16'),auth['isAuthenticated'](),controller[_0x8ac1('0x17')]);router[_0x8ac1('0x8')](_0x8ac1('0x18'),auth['isAuthenticated'](),controller['getProactiveActions']);router['get']('/:id/fields',controller[_0x8ac1('0x19')]);router[_0x8ac1('0x8')](_0x8ac1('0x1a'),auth[_0x8ac1('0x6')](),controller['getOfflineMessages']);router[_0x8ac1('0x8')](_0x8ac1('0x1b'),auth[_0x8ac1('0x6')](),controller['getAgents']);router[_0x8ac1('0x1c')]('/',auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x1d')]);router[_0x8ac1('0x1c')](_0x8ac1('0xb'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x1e')]);router[_0x8ac1('0x1c')]('/:id/canned_answers',auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x1f')]);var upload=multer({'storage':multer[_0x8ac1('0x20')]({'destination':function(_0x1e3b9e,_0x25d926,_0xd24c5e){_0xd24c5e(null,path['join'](config[_0x8ac1('0x21')],_0x8ac1('0x22')));},'filename':function(_0x53d7ed,_0x5361e5,_0xecbebc){_0xecbebc(null,util[_0x8ac1('0x23')]('%s-%s',Date['now'](),_0x5361e5[_0x8ac1('0x24')]));}})});router[_0x8ac1('0x1c')](_0x8ac1('0xe'),upload[_0x8ac1('0x25')](_0x8ac1('0x26')),controller[_0x8ac1('0x27')]);var upload=multer({'storage':multer['diskStorage']({'destination':function(_0x5c444a,_0x9b24b0,_0x10790d){_0x10790d(null,path[_0x8ac1('0x28')](config[_0x8ac1('0x21')],_0x8ac1('0x29')));},'filename':function(_0x9927c0,_0x173447,_0x31523c){_0x31523c(null,util['format']('%s-%s',Date['now'](),_0x173447[_0x8ac1('0x24')]));}})});router[_0x8ac1('0x1c')](_0x8ac1('0xf'),upload[_0x8ac1('0x25')](_0x8ac1('0x26')),controller['addAvatar']);var upload=multer({'storage':multer[_0x8ac1('0x20')]({'destination':function(_0x242715,_0x1bcee4,_0x2a7c9c){_0x2a7c9c(null,path[_0x8ac1('0x28')](config[_0x8ac1('0x21')],_0x8ac1('0x29')));},'filename':function(_0x5507a5,_0x1f8b9e,_0x3493de){_0x3493de(null,util[_0x8ac1('0x23')](_0x8ac1('0x2a'),Date[_0x8ac1('0x2b')](),_0x1f8b9e[_0x8ac1('0x24')]));}})});router[_0x8ac1('0x1c')]('/:id/customer_avatar',upload['single'](_0x8ac1('0x26')),controller['addCustomerAvatar']);var upload=multer({'storage':multer[_0x8ac1('0x20')]({'destination':function(_0xc70888,_0x528e9f,_0x4bc1f6){_0x4bc1f6(null,path[_0x8ac1('0x28')](config[_0x8ac1('0x21')],_0x8ac1('0x29')));},'filename':function(_0x4d730f,_0x31594b,_0xa8e2c6){_0xa8e2c6(null,util[_0x8ac1('0x23')](_0x8ac1('0x2a'),Date['now'](),_0x31594b[_0x8ac1('0x24')]));}})});router['post'](_0x8ac1('0x11'),upload[_0x8ac1('0x25')](_0x8ac1('0x26')),controller['addSystemAvatar']);router[_0x8ac1('0x1c')](_0x8ac1('0x2c'),controller[_0x8ac1('0x2d')]);router[_0x8ac1('0x1c')](_0x8ac1('0x2e'),controller[_0x8ac1('0x2f')]);router[_0x8ac1('0x1c')](_0x8ac1('0x13'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x30')]);router['post'](_0x8ac1('0x16'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x31')]);router[_0x8ac1('0x1c')](_0x8ac1('0x18'),auth[_0x8ac1('0x6')](),controller['addProactiveActions']);router[_0x8ac1('0x1c')]('/:id/users',auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x32')]);router[_0x8ac1('0x33')](_0x8ac1('0x9'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x34')]);router['delete'](_0x8ac1('0x9'),auth[_0x8ac1('0x6')](),controller['destroy']);router[_0x8ac1('0x35')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x8ac1('0x36')]);router['delete'](_0x8ac1('0x37'),auth['isAuthenticated'](),controller[_0x8ac1('0x38')]);router[_0x8ac1('0x35')](_0x8ac1('0x1b'),auth[_0x8ac1('0x6')](),controller[_0x8ac1('0x39')]);module['exports']=router;
\ No newline at end of file
diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js
index d9495df..9ce28de 100644
--- a/server/api/cmCompany/cmCompany.attributes.js
+++ b/server/api/cmCompany/cmCompany.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x481a=['exports','name','STRING','sequelize'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x481a,0xf7));var _0xa481=function(_0x2fc5a5,_0x528e48){_0x2fc5a5=_0x2fc5a5-0x0;var _0x5f0cbd=_0x481a[_0x2fc5a5];return _0x5f0cbd;};'use strict';var Sequelize=require(_0xa481('0x0'));module[_0xa481('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0xa481('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xa481('0x3')]},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0xa481('0x3')]},'street':{'type':Sequelize[_0xa481('0x3')]},'postalCode':{'type':Sequelize[_0xa481('0x3')]},'city':{'type':Sequelize[_0xa481('0x3')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xa481('0x3')]},'sStreet':{'type':Sequelize[_0xa481('0x3')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize[_0xa481('0x3')]},'sCountry':{'type':Sequelize[_0xa481('0x3')]},'description':{'type':Sequelize[_0xa481('0x3')]}};
\ No newline at end of file
+var _0xbbc1=['STRING','name','sequelize'];(function(_0x307f13,_0x27e474){var _0x28eab2=function(_0x427d1d){while(--_0x427d1d){_0x307f13['push'](_0x307f13['shift']());}};_0x28eab2(++_0x27e474);}(_0xbbc1,0x7d));var _0x1bbc=function(_0x2e7698,_0x2d1bb8){_0x2e7698=_0x2e7698-0x0;var _0x438792=_0xbbc1[_0x2e7698];return _0x438792;};'use strict';var Sequelize=require(_0x1bbc('0x0'));module['exports']={'name':{'type':Sequelize[_0x1bbc('0x1')],'unique':_0x1bbc('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x1bbc('0x1')]},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize[_0x1bbc('0x1')]},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x1bbc('0x1')]},'street':{'type':Sequelize[_0x1bbc('0x1')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x1bbc('0x1')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x1bbc('0x1')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize[_0x1bbc('0x1')]},'sPostalCode':{'type':Sequelize[_0x1bbc('0x1')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x1bbc('0x1')]}};
\ No newline at end of file
diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js
index 40bee01..f9c5127 100644
--- a/server/api/cmCompany/cmCompany.controller.js
+++ b/server/api/cmCompany/cmCompany.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x1947=['show','params','rawAttributes','length','find','create','body','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','Companies','UserProfileSection','userProfileId','autoAssociation','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','describe','addContacts','CmContact','ids','getContacts','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','crypto','jsforce','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/environment','../../mysqldb','end','status','json','offset','limit','set','Content-Range','apply','reject','update','then','get','destroy','sendStatus','error','stack','name','send','index','CmCompany','model','keys','query','filters','intersection','attributes','fields','hasOwnProperty','nolimit','order','sort','where','map','filter','merge','options','count','includeAll','include','catch'];(function(_0x3f9d1c,_0x1b71a1){var _0x333bb6=function(_0x4ecabc){while(--_0x4ecabc){_0x3f9d1c['push'](_0x3f9d1c['shift']());}};_0x333bb6(++_0x1b71a1);}(_0x1947,0x111));var _0x7194=function(_0x2f1101,_0x2c8de3){_0x2f1101=_0x2f1101-0x0;var _0x2e1ff8=_0x1947[_0x2f1101];return _0x2e1ff8;};'use strict';var pdf=require(_0x7194('0x0'));var emlformat=require(_0x7194('0x1'));var rimraf=require(_0x7194('0x2'));var zipdir=require(_0x7194('0x3'));var jsonpatch=require(_0x7194('0x4'));var rp=require(_0x7194('0x5'));var moment=require(_0x7194('0x6'));var BPromise=require(_0x7194('0x7'));var Mustache=require(_0x7194('0x8'));var util=require(_0x7194('0x9'));var path=require(_0x7194('0xa'));var sox=require(_0x7194('0xb'));var csv=require(_0x7194('0xc'));var ejs=require('ejs');var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require(_0x7194('0xd'));var jsforce=require(_0x7194('0xe'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x7194('0xf'));var Papa=require(_0x7194('0x10'));var Redis=require('ioredis');var authService=require(_0x7194('0x11'));var qs=require(_0x7194('0x12'));var as=require(_0x7194('0x13'));var hardwareService=require(_0x7194('0x14'));var logger=require('../../config/logger')('api');var utils=require('../../config/utils');var config=require(_0x7194('0x15'));var db=require(_0x7194('0x16'))['db'];function respondWithStatusCode(_0x20f56d,_0x28b384){_0x28b384=_0x28b384||0xcc;return function(_0x908ef0){if(_0x908ef0){return _0x20f56d['sendStatus'](_0x28b384);}return _0x20f56d['status'](_0x28b384)[_0x7194('0x17')]();};}function respondWithResult(_0x59c930,_0x5c1886){_0x5c1886=_0x5c1886||0xc8;return function(_0x5c9ede){if(_0x5c9ede){return _0x59c930[_0x7194('0x18')](_0x5c1886)[_0x7194('0x19')](_0x5c9ede);}};}function respondWithFilteredResult(_0x4f7487,_0x4c0e22){return function(_0x768079){if(_0x768079){var _0x299f1b=_0x768079['count'],_0x84768f=_0x4c0e22['offset'],_0x2cf4df=_0x4c0e22[_0x7194('0x1a')]+_0x4c0e22[_0x7194('0x1b')],_0x519720;if(_0x2cf4df>=_0x299f1b){_0x2cf4df=_0x299f1b;_0x519720=0xc8;}else{_0x519720=0xce;}_0x4f7487['status'](_0x519720);return _0x4f7487[_0x7194('0x1c')](_0x7194('0x1d'),_0x84768f+'-'+_0x2cf4df+'/'+_0x299f1b)[_0x7194('0x19')](_0x768079);}return null;};}function patchUpdates(_0x1ebe83){return function(_0x35fe5f){try{jsonpatch[_0x7194('0x1e')](_0x35fe5f,_0x1ebe83,!![]);}catch(_0x3c5f0a){return BPromise[_0x7194('0x1f')](_0x3c5f0a);}return _0x35fe5f['save']();};}function saveUpdates(_0x2bc232,_0x3669b4){return function(_0x419896){if(_0x419896){return _0x419896[_0x7194('0x20')](_0x2bc232)[_0x7194('0x21')](function(_0x212d98){return _0x212d98;});}return null;};}function removeEntity(_0x2b42c0,_0x520abf){return function(_0x5b75a1){if(_0x5b75a1){return _0x5b75a1['destroy']()[_0x7194('0x21')](function(){var _0x5f28c0=_0x5b75a1[_0x7194('0x22')]({'plain':!![]});var _0x2ddd91='Companies';return db['UserProfileResource'][_0x7194('0x23')]({'where':{'type':_0x2ddd91,'resourceId':_0x5f28c0['id']}})[_0x7194('0x21')](function(){return _0x5b75a1;});})['then'](function(){_0x2b42c0[_0x7194('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x27930b,_0x50d977){return function(_0x32a6c5){if(!_0x32a6c5){_0x27930b[_0x7194('0x24')](0x194);}return _0x32a6c5;};}function handleError(_0x5e5458,_0x3498e7){_0x3498e7=_0x3498e7||0x1f4;return function(_0x156e33){logger[_0x7194('0x25')](_0x156e33[_0x7194('0x26')]);if(_0x156e33[_0x7194('0x27')]){delete _0x156e33[_0x7194('0x27')];}_0x5e5458['status'](_0x3498e7)[_0x7194('0x28')](_0x156e33);};}exports[_0x7194('0x29')]=function(_0x1f6fc6,_0x2be936){var _0x27484d={},_0x5a0e4d={},_0x4ef9db={'count':0x0,'rows':[]};return db[_0x7194('0x2a')]['describe']()[_0x7194('0x21')](function(_0x17734d){_0x5a0e4d[_0x7194('0x2b')]=_[_0x7194('0x2c')](_0x17734d);_0x5a0e4d[_0x7194('0x2d')]=_[_0x7194('0x2c')](_0x1f6fc6[_0x7194('0x2d')]);_0x5a0e4d[_0x7194('0x2e')]=_[_0x7194('0x2f')](_0x5a0e4d[_0x7194('0x2b')],_0x5a0e4d[_0x7194('0x2d')]);_0x27484d[_0x7194('0x30')]=_['intersection'](_0x5a0e4d[_0x7194('0x2b')],qs['fields'](_0x1f6fc6['query'][_0x7194('0x31')]));_0x27484d[_0x7194('0x30')]=_0x27484d[_0x7194('0x30')]['length']?_0x27484d['attributes']:_0x5a0e4d[_0x7194('0x2b')];if(!_0x1f6fc6[_0x7194('0x2d')][_0x7194('0x32')](_0x7194('0x33'))){_0x27484d[_0x7194('0x1b')]=qs[_0x7194('0x1b')](_0x1f6fc6['query'][_0x7194('0x1b')]);_0x27484d['offset']=qs[_0x7194('0x1a')](_0x1f6fc6[_0x7194('0x2d')][_0x7194('0x1a')]);}_0x27484d[_0x7194('0x34')]=qs[_0x7194('0x35')](_0x1f6fc6['query'][_0x7194('0x35')]);_0x27484d['where']=qs[_0x7194('0x2e')](_['pick'](_0x1f6fc6['query'],_0x5a0e4d['filters']));if(_0x1f6fc6[_0x7194('0x2d')]['filter']){_0x27484d[_0x7194('0x36')]=_['merge'](_0x27484d[_0x7194('0x36')],{'$or':_[_0x7194('0x37')](_0x27484d[_0x7194('0x30')],function(_0x3c795b){var _0x1684a4={};_0x1684a4[_0x3c795b]={'$like':'%'+_0x1f6fc6[_0x7194('0x2d')][_0x7194('0x38')]+'%'};return _0x1684a4;})});}_0x27484d=_[_0x7194('0x39')]({},_0x27484d,_0x1f6fc6[_0x7194('0x3a')]);var _0x3ebd37={'where':_0x27484d[_0x7194('0x36')]};return db['CmCompany'][_0x7194('0x3b')](_0x3ebd37)['then'](function(_0x4b8cd8){_0x4ef9db[_0x7194('0x3b')]=_0x4b8cd8;if(_0x1f6fc6['query'][_0x7194('0x3c')]){_0x27484d[_0x7194('0x3d')]=[{'all':!![]}];}return db['CmCompany']['findAll'](_0x27484d);})[_0x7194('0x21')](function(_0x5b0748){_0x4ef9db['rows']=_0x5b0748;return _0x4ef9db;})[_0x7194('0x21')](respondWithFilteredResult(_0x2be936,_0x27484d))[_0x7194('0x3e')](handleError(_0x2be936,null));})['catch'](handleError(_0x2be936,null));};exports[_0x7194('0x3f')]=function(_0x5ee433,_0x20767e){var _0x5f57c0={'raw':![],'where':{'id':_0x5ee433[_0x7194('0x40')]['id']}},_0x3d7152={};_0x3d7152[_0x7194('0x2b')]=_['keys'](db[_0x7194('0x2a')][_0x7194('0x41')]);_0x3d7152['query']=_[_0x7194('0x2c')](_0x5ee433[_0x7194('0x2d')]);_0x3d7152[_0x7194('0x2e')]=_[_0x7194('0x2f')](_0x3d7152[_0x7194('0x2b')],_0x3d7152[_0x7194('0x2d')]);_0x5f57c0[_0x7194('0x30')]=_[_0x7194('0x2f')](_0x3d7152[_0x7194('0x2b')],qs[_0x7194('0x31')](_0x5ee433[_0x7194('0x2d')][_0x7194('0x31')]));_0x5f57c0[_0x7194('0x30')]=_0x5f57c0[_0x7194('0x30')][_0x7194('0x42')]?_0x5f57c0[_0x7194('0x30')]:_0x3d7152[_0x7194('0x2b')];if(_0x5ee433['query']['includeAll']){_0x5f57c0[_0x7194('0x3d')]=[{'all':!![]}];}_0x5f57c0=_[_0x7194('0x39')]({},_0x5f57c0,_0x5ee433[_0x7194('0x3a')]);return db[_0x7194('0x2a')][_0x7194('0x43')](_0x5f57c0)[_0x7194('0x21')](handleEntityNotFound(_0x20767e,null))[_0x7194('0x21')](respondWithResult(_0x20767e,null))['catch'](handleError(_0x20767e,null));};exports[_0x7194('0x44')]=function(_0x3c08eb,_0x341cfa){return db['CmCompany'][_0x7194('0x44')](_0x3c08eb[_0x7194('0x45')],{})[_0x7194('0x21')](function(_0x1c36e2){var _0x524524=_0x3c08eb[_0x7194('0x46')][_0x7194('0x22')]({'plain':!![]});if(!_0x524524)throw new Error(_0x7194('0x47'));if(_0x524524[_0x7194('0x48')]===_0x7194('0x46')){var _0x3093d6=_0x1c36e2[_0x7194('0x22')]({'plain':!![]});var _0x4e48b9=_0x7194('0x49');return db[_0x7194('0x4a')][_0x7194('0x43')]({'where':{'name':_0x4e48b9,'userProfileId':_0x524524[_0x7194('0x4b')]},'raw':!![]})[_0x7194('0x21')](function(_0x39e893){if(_0x39e893&&_0x39e893[_0x7194('0x4c')]===0x0){return db[_0x7194('0x4d')][_0x7194('0x44')]({'name':_0x3093d6[_0x7194('0x27')],'resourceId':_0x3093d6['id'],'type':_0x39e893[_0x7194('0x27')],'sectionId':_0x39e893['id']},{})[_0x7194('0x21')](function(){return _0x1c36e2;});}else{return _0x1c36e2;}})[_0x7194('0x3e')](function(_0x175c9f){logger[_0x7194('0x25')](_0x7194('0x4e'),_0x175c9f);throw _0x175c9f;});}return _0x1c36e2;})[_0x7194('0x21')](respondWithResult(_0x341cfa,0xc9))[_0x7194('0x3e')](handleError(_0x341cfa,null));};exports[_0x7194('0x20')]=function(_0x5d3f05,_0xf921de){if(_0x5d3f05[_0x7194('0x45')]['id']){delete _0x5d3f05['body']['id'];}return db[_0x7194('0x2a')][_0x7194('0x43')]({'where':{'id':_0x5d3f05[_0x7194('0x40')]['id']}})[_0x7194('0x21')](handleEntityNotFound(_0xf921de,null))[_0x7194('0x21')](saveUpdates(_0x5d3f05[_0x7194('0x45')],null))[_0x7194('0x21')](respondWithResult(_0xf921de,null))[_0x7194('0x3e')](handleError(_0xf921de,null));};exports[_0x7194('0x23')]=function(_0x49bda7,_0x3709f9){return db[_0x7194('0x2a')][_0x7194('0x43')]({'where':{'id':_0x49bda7[_0x7194('0x40')]['id']}})[_0x7194('0x21')](handleEntityNotFound(_0x3709f9,null))[_0x7194('0x21')](removeEntity(_0x3709f9,null))[_0x7194('0x3e')](handleError(_0x3709f9,null));};exports[_0x7194('0x4f')]=function(_0x45b02e,_0x11260f){return db[_0x7194('0x2a')]['describe']()[_0x7194('0x21')](respondWithResult(_0x11260f,null))[_0x7194('0x3e')](handleError(_0x11260f,null));};exports[_0x7194('0x50')]=function(_0x25ab19,_0x4b1b7d,_0x35aadc){return db[_0x7194('0x51')]['find']({'where':{'id':_0x25ab19['params']['id']}})[_0x7194('0x21')](handleEntityNotFound(_0x4b1b7d,null))['then'](function(_0xffb9b2){if(_0xffb9b2){return _0xffb9b2[_0x7194('0x50')](_0x25ab19[_0x7194('0x45')][_0x7194('0x52')],_['omit'](_0x25ab19[_0x7194('0x45')],['ids','id'])||{});}})['then'](respondWithResult(_0x4b1b7d,null))[_0x7194('0x3e')](handleError(_0x4b1b7d,null));};exports[_0x7194('0x53')]=function(_0xd6e34c,_0x32f7ad,_0x4894bf){var _0x500ec3={};var _0x101245={};var _0xe2d11f;var _0x539e33;return db[_0x7194('0x2a')]['findOne']({'where':{'id':_0xd6e34c['params']['id']}})['then'](handleEntityNotFound(_0x32f7ad,null))[_0x7194('0x21')](function(_0x43fa68){if(_0x43fa68){_0xe2d11f=_0x43fa68;_0x101245[_0x7194('0x2b')]=_[_0x7194('0x2c')](db[_0x7194('0x51')][_0x7194('0x41')]);_0x101245['query']=_[_0x7194('0x2c')](_0xd6e34c[_0x7194('0x2d')]);_0x101245[_0x7194('0x2e')]=_['intersection'](_0x101245[_0x7194('0x2b')],_0x101245[_0x7194('0x2d')]);_0x500ec3[_0x7194('0x30')]=_[_0x7194('0x2f')](_0x101245[_0x7194('0x2b')],qs[_0x7194('0x31')](_0xd6e34c[_0x7194('0x2d')][_0x7194('0x31')]));_0x500ec3[_0x7194('0x30')]=_0x500ec3['attributes'][_0x7194('0x42')]?_0x500ec3['attributes']:_0x101245[_0x7194('0x2b')];_0x500ec3[_0x7194('0x34')]=qs[_0x7194('0x35')](_0xd6e34c[_0x7194('0x2d')]['sort']);_0x500ec3[_0x7194('0x36')]=qs[_0x7194('0x2e')](_['pick'](_0xd6e34c[_0x7194('0x2d')],_0x101245[_0x7194('0x2e')]));if(_0xd6e34c[_0x7194('0x2d')][_0x7194('0x38')]){_0x500ec3[_0x7194('0x36')]=_[_0x7194('0x39')](_0x500ec3[_0x7194('0x36')],{'$or':_[_0x7194('0x37')](_0x500ec3[_0x7194('0x30')],function(_0x1c1354){var _0x2554a7={};_0x2554a7[_0x1c1354]={'$like':'%'+_0xd6e34c[_0x7194('0x2d')][_0x7194('0x38')]+'%'};return _0x2554a7;})});}_0x500ec3=_[_0x7194('0x39')]({},_0x500ec3,_0xd6e34c[_0x7194('0x3a')]);return _0xe2d11f[_0x7194('0x53')](_0x500ec3);}})[_0x7194('0x21')](function(_0x41e767){if(_0x41e767){_0x539e33=_0x41e767[_0x7194('0x42')];if(!_0xd6e34c[_0x7194('0x2d')][_0x7194('0x32')](_0x7194('0x33'))){_0x500ec3['limit']=qs['limit'](_0xd6e34c[_0x7194('0x2d')][_0x7194('0x1b')]);_0x500ec3[_0x7194('0x1a')]=qs['offset'](_0xd6e34c[_0x7194('0x2d')][_0x7194('0x1a')]);}return _0xe2d11f[_0x7194('0x53')](_0x500ec3);}})[_0x7194('0x21')](function(_0x4577c3){if(_0x4577c3){return _0x4577c3?{'count':_0x539e33,'rows':_0x4577c3}:null;}})['then'](respondWithResult(_0x32f7ad,null))[_0x7194('0x3e')](handleError(_0x32f7ad,null));};
\ No newline at end of file
+var _0x681f=['create','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','role','UserProfileSection','autoAssociation','UserProfileResource','name','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','body','addContacts','CmContact','ids','omit','getContacts','nolimit','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','get','Companies','error','index','CmCompany','describe','model','keys','query','filters','intersection','fields','attributes','length','order','sort','pick','filter','where','map','merge','options','includeAll','include','findAll','rows','catch','show','params','rawAttributes','find'];(function(_0x1fdf47,_0x1da0d0){var _0x2f42d3=function(_0x56f2b3){while(--_0x56f2b3){_0x1fdf47['push'](_0x1fdf47['shift']());}};_0x2f42d3(++_0x1da0d0);}(_0x681f,0x15c));var _0xf681=function(_0x41c104,_0x11ddc4){_0x41c104=_0x41c104-0x0;var _0xf82b41=_0x681f[_0x41c104];return _0xf82b41;};'use strict';var pdf=require(_0xf681('0x0'));var emlformat=require(_0xf681('0x1'));var rimraf=require(_0xf681('0x2'));var zipdir=require(_0xf681('0x3'));var jsonpatch=require(_0xf681('0x4'));var rp=require('request-promise');var moment=require(_0xf681('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xf681('0x6'));var util=require(_0xf681('0x7'));var path=require(_0xf681('0x8'));var sox=require(_0xf681('0x9'));var csv=require(_0xf681('0xa'));var ejs=require(_0xf681('0xb'));var fs=require('fs');var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0xf681('0xc'));var toCsv=require(_0xf681('0xa'));var querystring=require(_0xf681('0xd'));var Papa=require(_0xf681('0xe'));var Redis=require(_0xf681('0xf'));var authService=require(_0xf681('0x10'));var qs=require(_0xf681('0x11'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xf681('0x12'));var logger=require(_0xf681('0x13'))(_0xf681('0x14'));var utils=require('../../config/utils');var config=require('../../config/environment');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1f73e9,_0x418da3){_0x418da3=_0x418da3||0xcc;return function(_0x75209e){if(_0x75209e){return _0x1f73e9[_0xf681('0x15')](_0x418da3);}return _0x1f73e9[_0xf681('0x16')](_0x418da3)[_0xf681('0x17')]();};}function respondWithResult(_0x128799,_0x1c7589){_0x1c7589=_0x1c7589||0xc8;return function(_0x2524aa){if(_0x2524aa){return _0x128799[_0xf681('0x16')](_0x1c7589)[_0xf681('0x18')](_0x2524aa);}};}function respondWithFilteredResult(_0x3d1d4d,_0x48274b){return function(_0x44a380){if(_0x44a380){var _0x357281=_0x44a380[_0xf681('0x19')],_0x3f4f1d=_0x48274b[_0xf681('0x1a')],_0x34bf85=_0x48274b[_0xf681('0x1a')]+_0x48274b[_0xf681('0x1b')],_0x52d2c7;if(_0x34bf85>=_0x357281){_0x34bf85=_0x357281;_0x52d2c7=0xc8;}else{_0x52d2c7=0xce;}_0x3d1d4d[_0xf681('0x16')](_0x52d2c7);return _0x3d1d4d[_0xf681('0x1c')](_0xf681('0x1d'),_0x3f4f1d+'-'+_0x34bf85+'/'+_0x357281)['json'](_0x44a380);}return null;};}function patchUpdates(_0x9910cf){return function(_0x2ecd88){try{jsonpatch[_0xf681('0x1e')](_0x2ecd88,_0x9910cf,!![]);}catch(_0x443393){return BPromise[_0xf681('0x1f')](_0x443393);}return _0x2ecd88[_0xf681('0x20')]();};}function saveUpdates(_0x8cebd9,_0x323b53){return function(_0x1a3af5){if(_0x1a3af5){return _0x1a3af5[_0xf681('0x21')](_0x8cebd9)[_0xf681('0x22')](function(_0x250821){return _0x250821;});}return null;};}function removeEntity(_0x1fb1df,_0x11a25b){return function(_0x396cc5){if(_0x396cc5){return _0x396cc5[_0xf681('0x23')]()[_0xf681('0x22')](function(){var _0x32aa9b=_0x396cc5[_0xf681('0x24')]({'plain':!![]});var _0x464019=_0xf681('0x25');return db['UserProfileResource'][_0xf681('0x23')]({'where':{'type':_0x464019,'resourceId':_0x32aa9b['id']}})[_0xf681('0x22')](function(){return _0x396cc5;});})[_0xf681('0x22')](function(){_0x1fb1df[_0xf681('0x16')](0xcc)[_0xf681('0x17')]();});}};}function handleEntityNotFound(_0x1d41bb,_0x26c426){return function(_0x28e04a){if(!_0x28e04a){_0x1d41bb[_0xf681('0x15')](0x194);}return _0x28e04a;};}function handleError(_0x53ddfd,_0x468aa1){_0x468aa1=_0x468aa1||0x1f4;return function(_0xb3d398){logger[_0xf681('0x26')](_0xb3d398['stack']);if(_0xb3d398['name']){delete _0xb3d398['name'];}_0x53ddfd[_0xf681('0x16')](_0x468aa1)['send'](_0xb3d398);};}exports[_0xf681('0x27')]=function(_0x4f1e08,_0x1abee9){var _0x208f8c={},_0x27ebee={},_0x3c38e1={'count':0x0,'rows':[]};return db[_0xf681('0x28')][_0xf681('0x29')]()[_0xf681('0x22')](function(_0x3c2989){_0x27ebee[_0xf681('0x2a')]=_[_0xf681('0x2b')](_0x3c2989);_0x27ebee[_0xf681('0x2c')]=_[_0xf681('0x2b')](_0x4f1e08[_0xf681('0x2c')]);_0x27ebee[_0xf681('0x2d')]=_[_0xf681('0x2e')](_0x27ebee[_0xf681('0x2a')],_0x27ebee[_0xf681('0x2c')]);_0x208f8c['attributes']=_[_0xf681('0x2e')](_0x27ebee[_0xf681('0x2a')],qs[_0xf681('0x2f')](_0x4f1e08[_0xf681('0x2c')]['fields']));_0x208f8c[_0xf681('0x30')]=_0x208f8c[_0xf681('0x30')][_0xf681('0x31')]?_0x208f8c[_0xf681('0x30')]:_0x27ebee[_0xf681('0x2a')];if(!_0x4f1e08[_0xf681('0x2c')]['hasOwnProperty']('nolimit')){_0x208f8c[_0xf681('0x1b')]=qs[_0xf681('0x1b')](_0x4f1e08[_0xf681('0x2c')]['limit']);_0x208f8c[_0xf681('0x1a')]=qs[_0xf681('0x1a')](_0x4f1e08['query'][_0xf681('0x1a')]);}_0x208f8c[_0xf681('0x32')]=qs[_0xf681('0x33')](_0x4f1e08[_0xf681('0x2c')][_0xf681('0x33')]);_0x208f8c['where']=qs[_0xf681('0x2d')](_[_0xf681('0x34')](_0x4f1e08[_0xf681('0x2c')],_0x27ebee[_0xf681('0x2d')]));if(_0x4f1e08[_0xf681('0x2c')][_0xf681('0x35')]){_0x208f8c['where']=_['merge'](_0x208f8c[_0xf681('0x36')],{'$or':_[_0xf681('0x37')](_0x208f8c['attributes'],function(_0x46b7a1){var _0x4773ef={};_0x4773ef[_0x46b7a1]={'$like':'%'+_0x4f1e08[_0xf681('0x2c')][_0xf681('0x35')]+'%'};return _0x4773ef;})});}_0x208f8c=_[_0xf681('0x38')]({},_0x208f8c,_0x4f1e08[_0xf681('0x39')]);var _0x10a399={'where':_0x208f8c[_0xf681('0x36')]};return db[_0xf681('0x28')][_0xf681('0x19')](_0x10a399)[_0xf681('0x22')](function(_0x2593f4){_0x3c38e1[_0xf681('0x19')]=_0x2593f4;if(_0x4f1e08['query'][_0xf681('0x3a')]){_0x208f8c[_0xf681('0x3b')]=[{'all':!![]}];}return db[_0xf681('0x28')][_0xf681('0x3c')](_0x208f8c);})[_0xf681('0x22')](function(_0x20f605){_0x3c38e1[_0xf681('0x3d')]=_0x20f605;return _0x3c38e1;})['then'](respondWithFilteredResult(_0x1abee9,_0x208f8c))[_0xf681('0x3e')](handleError(_0x1abee9,null));})[_0xf681('0x3e')](handleError(_0x1abee9,null));};exports[_0xf681('0x3f')]=function(_0x48b7c2,_0x5c326d){var _0x42a4b7={'raw':![],'where':{'id':_0x48b7c2[_0xf681('0x40')]['id']}},_0x195fdf={};_0x195fdf[_0xf681('0x2a')]=_[_0xf681('0x2b')](db[_0xf681('0x28')][_0xf681('0x41')]);_0x195fdf[_0xf681('0x2c')]=_[_0xf681('0x2b')](_0x48b7c2['query']);_0x195fdf[_0xf681('0x2d')]=_['intersection'](_0x195fdf[_0xf681('0x2a')],_0x195fdf[_0xf681('0x2c')]);_0x42a4b7[_0xf681('0x30')]=_['intersection'](_0x195fdf['model'],qs[_0xf681('0x2f')](_0x48b7c2[_0xf681('0x2c')][_0xf681('0x2f')]));_0x42a4b7[_0xf681('0x30')]=_0x42a4b7['attributes'][_0xf681('0x31')]?_0x42a4b7['attributes']:_0x195fdf[_0xf681('0x2a')];if(_0x48b7c2[_0xf681('0x2c')][_0xf681('0x3a')]){_0x42a4b7[_0xf681('0x3b')]=[{'all':!![]}];}_0x42a4b7=_[_0xf681('0x38')]({},_0x42a4b7,_0x48b7c2['options']);return db[_0xf681('0x28')][_0xf681('0x42')](_0x42a4b7)['then'](handleEntityNotFound(_0x5c326d,null))[_0xf681('0x22')](respondWithResult(_0x5c326d,null))[_0xf681('0x3e')](handleError(_0x5c326d,null));};exports[_0xf681('0x43')]=function(_0x2cd213,_0x1a48e6){return db[_0xf681('0x28')][_0xf681('0x43')](_0x2cd213['body'],{})['then'](function(_0x200e3c){var _0x134004=_0x2cd213[_0xf681('0x44')][_0xf681('0x24')]({'plain':!![]});if(!_0x134004)throw new Error(_0xf681('0x45'));if(_0x134004[_0xf681('0x46')]==='user'){var _0x65c6b2=_0x200e3c['get']({'plain':!![]});var _0x20dcf3=_0xf681('0x25');return db[_0xf681('0x47')][_0xf681('0x42')]({'where':{'name':_0x20dcf3,'userProfileId':_0x134004['userProfileId']},'raw':!![]})[_0xf681('0x22')](function(_0x127640){if(_0x127640&&_0x127640[_0xf681('0x48')]===0x0){return db[_0xf681('0x49')][_0xf681('0x43')]({'name':_0x65c6b2['name'],'resourceId':_0x65c6b2['id'],'type':_0x127640[_0xf681('0x4a')],'sectionId':_0x127640['id']},{})[_0xf681('0x22')](function(){return _0x200e3c;});}else{return _0x200e3c;}})['catch'](function(_0x4efbbb){logger[_0xf681('0x26')](_0xf681('0x4b'),_0x4efbbb);throw _0x4efbbb;});}return _0x200e3c;})[_0xf681('0x22')](respondWithResult(_0x1a48e6,0xc9))[_0xf681('0x3e')](handleError(_0x1a48e6,null));};exports[_0xf681('0x21')]=function(_0x29a0c5,_0x1bfa97){if(_0x29a0c5[_0xf681('0x4c')]['id']){delete _0x29a0c5[_0xf681('0x4c')]['id'];}return db[_0xf681('0x28')]['find']({'where':{'id':_0x29a0c5['params']['id']}})[_0xf681('0x22')](handleEntityNotFound(_0x1bfa97,null))[_0xf681('0x22')](saveUpdates(_0x29a0c5[_0xf681('0x4c')],null))[_0xf681('0x22')](respondWithResult(_0x1bfa97,null))[_0xf681('0x3e')](handleError(_0x1bfa97,null));};exports['destroy']=function(_0x1f885e,_0x2e899f){return db[_0xf681('0x28')]['find']({'where':{'id':_0x1f885e[_0xf681('0x40')]['id']}})[_0xf681('0x22')](handleEntityNotFound(_0x2e899f,null))[_0xf681('0x22')](removeEntity(_0x2e899f,null))['catch'](handleError(_0x2e899f,null));};exports[_0xf681('0x29')]=function(_0x3446ae,_0x20b5f2){return db[_0xf681('0x28')][_0xf681('0x29')]()[_0xf681('0x22')](respondWithResult(_0x20b5f2,null))[_0xf681('0x3e')](handleError(_0x20b5f2,null));};exports[_0xf681('0x4d')]=function(_0x47ee3e,_0x49b962,_0x593c70){return db[_0xf681('0x4e')][_0xf681('0x42')]({'where':{'id':_0x47ee3e[_0xf681('0x40')]['id']}})[_0xf681('0x22')](handleEntityNotFound(_0x49b962,null))['then'](function(_0x411a04){if(_0x411a04){return _0x411a04[_0xf681('0x4d')](_0x47ee3e[_0xf681('0x4c')][_0xf681('0x4f')],_[_0xf681('0x50')](_0x47ee3e[_0xf681('0x4c')],[_0xf681('0x4f'),'id'])||{});}})['then'](respondWithResult(_0x49b962,null))[_0xf681('0x3e')](handleError(_0x49b962,null));};exports['getContacts']=function(_0x1823f8,_0x45efc7,_0x59e559){var _0x4edaa7={};var _0x16b134={};var _0x1a4653;var _0x1d10a2;return db[_0xf681('0x28')]['findOne']({'where':{'id':_0x1823f8[_0xf681('0x40')]['id']}})[_0xf681('0x22')](handleEntityNotFound(_0x45efc7,null))[_0xf681('0x22')](function(_0x32859c){if(_0x32859c){_0x1a4653=_0x32859c;_0x16b134[_0xf681('0x2a')]=_[_0xf681('0x2b')](db[_0xf681('0x4e')]['rawAttributes']);_0x16b134[_0xf681('0x2c')]=_['keys'](_0x1823f8[_0xf681('0x2c')]);_0x16b134[_0xf681('0x2d')]=_['intersection'](_0x16b134[_0xf681('0x2a')],_0x16b134[_0xf681('0x2c')]);_0x4edaa7['attributes']=_['intersection'](_0x16b134['model'],qs[_0xf681('0x2f')](_0x1823f8[_0xf681('0x2c')]['fields']));_0x4edaa7['attributes']=_0x4edaa7[_0xf681('0x30')][_0xf681('0x31')]?_0x4edaa7[_0xf681('0x30')]:_0x16b134[_0xf681('0x2a')];_0x4edaa7['order']=qs[_0xf681('0x33')](_0x1823f8[_0xf681('0x2c')][_0xf681('0x33')]);_0x4edaa7[_0xf681('0x36')]=qs[_0xf681('0x2d')](_['pick'](_0x1823f8[_0xf681('0x2c')],_0x16b134[_0xf681('0x2d')]));if(_0x1823f8[_0xf681('0x2c')]['filter']){_0x4edaa7['where']=_['merge'](_0x4edaa7[_0xf681('0x36')],{'$or':_['map'](_0x4edaa7[_0xf681('0x30')],function(_0xcc836b){var _0x533fec={};_0x533fec[_0xcc836b]={'$like':'%'+_0x1823f8[_0xf681('0x2c')][_0xf681('0x35')]+'%'};return _0x533fec;})});}_0x4edaa7=_['merge']({},_0x4edaa7,_0x1823f8[_0xf681('0x39')]);return _0x1a4653[_0xf681('0x51')](_0x4edaa7);}})['then'](function(_0x5abdbf){if(_0x5abdbf){_0x1d10a2=_0x5abdbf[_0xf681('0x31')];if(!_0x1823f8[_0xf681('0x2c')]['hasOwnProperty'](_0xf681('0x52'))){_0x4edaa7[_0xf681('0x1b')]=qs['limit'](_0x1823f8[_0xf681('0x2c')][_0xf681('0x1b')]);_0x4edaa7[_0xf681('0x1a')]=qs['offset'](_0x1823f8[_0xf681('0x2c')]['offset']);}return _0x1a4653[_0xf681('0x51')](_0x4edaa7);}})[_0xf681('0x22')](function(_0x240653){if(_0x240653){return _0x240653?{'count':_0x1d10a2,'rows':_0x240653}:null;}})[_0xf681('0x22')](respondWithResult(_0x45efc7,null))[_0xf681('0x3e')](handleError(_0x45efc7,null));};
\ No newline at end of file
diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js
index 99046e6..44ad915 100644
--- a/server/api/cmCompany/cmCompany.model.js
+++ b/server/api/cmCompany/cmCompany.model.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x6bac=['../../config/environment','./cmCompany.attributes','define','CmCompany','cm_companies','lodash','../../config/logger','api','moment','bluebird'];(function(_0x4f3489,_0x196bd8){var _0x524cd3=function(_0x27a36e){while(--_0x27a36e){_0x4f3489['push'](_0x4f3489['shift']());}};_0x524cd3(++_0x196bd8);}(_0x6bac,0xa5));var _0xc6ba=function(_0x4bc43a,_0x2f36cf){_0x4bc43a=_0x4bc43a-0x0;var _0x20fd47=_0x6bac[_0x4bc43a];return _0x20fd47;};'use strict';var _=require(_0xc6ba('0x0'));var util=require('util');var logger=require(_0xc6ba('0x1'))(_0xc6ba('0x2'));var moment=require(_0xc6ba('0x3'));var BPromise=require(_0xc6ba('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xc6ba('0x5'));var attributes=require(_0xc6ba('0x6'));module['exports']=function(_0x222f20,_0x2a16af){return _0x222f20[_0xc6ba('0x7')](_0xc6ba('0x8'),attributes,{'tableName':_0xc6ba('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
+var _0xaa7c=['../../config/environment','./cmCompany.attributes','exports','define','lodash','bluebird','request-promise','rimraf'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0xaa7c,0x1ec));var _0xcaa7=function(_0x4967d0,_0x3347d9){_0x4967d0=_0x4967d0-0x0;var _0x2ecc6b=_0xaa7c[_0x4967d0];return _0x2ecc6b;};'use strict';var _=require(_0xcaa7('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xcaa7('0x1'));var rp=require(_0xcaa7('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0xcaa7('0x3'));var config=require(_0xcaa7('0x4'));var attributes=require(_0xcaa7('0x5'));module[_0xcaa7('0x6')]=function(_0x27e610,_0x5a3674){return _0x27e610[_0xcaa7('0x7')]('CmCompany',attributes,{'tableName':'cm_companies','paranoid':![],'indexes':[],'timestamps':!![]});};
\ No newline at end of file
diff --git a/server/api/cmCompany/cmCompany.rpc.js b/server/api/cmCompany/cmCompany.rpc.js
index be33534..770d527 100644
--- a/server/api/cmCompany/cmCompany.rpc.js
+++ b/server/api/cmCompany/cmCompany.rpc.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x53c2=['../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','http','then','info','CmCompany,\x20%s,\x20%s','request\x20sent','debug','CmCompany,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis'];(function(_0x39d643,_0x1c6dec){var _0x248cfe=function(_0x2fae89){while(--_0x2fae89){_0x39d643['push'](_0x39d643['shift']());}};_0x248cfe(++_0x1c6dec);}(_0x53c2,0x181));var _0x253c=function(_0x49259b,_0x3126bf){_0x49259b=_0x49259b-0x0;var _0x1d85fb=_0x53c2[_0x49259b];return _0x1d85fb;};'use strict';var _=require(_0x253c('0x0'));var util=require(_0x253c('0x1'));var moment=require(_0x253c('0x2'));var BPromise=require(_0x253c('0x3'));var rs=require(_0x253c('0x4'));var fs=require('fs');var Redis=require(_0x253c('0x5'));var db=require(_0x253c('0x6'))['db'];var utils=require(_0x253c('0x7'));var logger=require(_0x253c('0x8'))(_0x253c('0x9'));var config=require(_0x253c('0xa'));var jayson=require('jayson/promise');var client=jayson['client'][_0x253c('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x2475ee,_0x23f0ac,_0x1cbbd0){return new BPromise(function(_0x468168,_0x4a0032){return client['request'](_0x2475ee,_0x1cbbd0)[_0x253c('0xc')](function(_0x25a8d9){logger[_0x253c('0xd')](_0x253c('0xe'),_0x23f0ac,_0x253c('0xf'));logger[_0x253c('0x10')](_0x253c('0x11'),_0x23f0ac,'request\x20sent',JSON[_0x253c('0x12')](_0x25a8d9));if(_0x25a8d9[_0x253c('0x13')]){if(_0x25a8d9['error'][_0x253c('0x14')]===0x1f4){logger[_0x253c('0x13')](_0x253c('0xe'),_0x23f0ac,_0x25a8d9[_0x253c('0x13')]['message']);return _0x4a0032(_0x25a8d9[_0x253c('0x13')][_0x253c('0x15')]);}logger[_0x253c('0x13')]('CmCompany,\x20%s,\x20%s',_0x23f0ac,_0x25a8d9['error'][_0x253c('0x15')]);return _0x468168(_0x25a8d9[_0x253c('0x13')][_0x253c('0x15')]);}else{logger[_0x253c('0xd')](_0x253c('0xe'),_0x23f0ac,_0x253c('0xf'));_0x468168(_0x25a8d9['result'][_0x253c('0x15')]);}})[_0x253c('0x16')](function(_0x4f56b0){logger[_0x253c('0x13')](_0x253c('0xe'),_0x23f0ac,_0x4f56b0);_0x4a0032(_0x4f56b0);});});}
\ No newline at end of file
+var _0xb0ff=['message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug','CmCompany,\x20%s,\x20%s,\x20%s','error','code','CmCompany,\x20%s,\x20%s'];(function(_0x5d770a,_0x116144){var _0x1ebaf5=function(_0x7621f6){while(--_0x7621f6){_0x5d770a['push'](_0x5d770a['shift']());}};_0x1ebaf5(++_0x116144);}(_0xb0ff,0xe3));var _0xfb0f=function(_0x361937,_0x29ab30){_0x361937=_0x361937-0x0;var _0x4b77d3=_0xb0ff[_0x361937];return _0x4b77d3;};'use strict';var _=require(_0xfb0f('0x0'));var util=require(_0xfb0f('0x1'));var moment=require(_0xfb0f('0x2'));var BPromise=require(_0xfb0f('0x3'));var rs=require(_0xfb0f('0x4'));var fs=require('fs');var Redis=require(_0xfb0f('0x5'));var db=require(_0xfb0f('0x6'))['db'];var utils=require(_0xfb0f('0x7'));var logger=require(_0xfb0f('0x8'))(_0xfb0f('0x9'));var config=require(_0xfb0f('0xa'));var jayson=require(_0xfb0f('0xb'));var client=jayson[_0xfb0f('0xc')][_0xfb0f('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x43d75a,_0x313062,_0x432156){return new BPromise(function(_0x2e8f19,_0x1adc6e){return client[_0xfb0f('0xe')](_0x43d75a,_0x432156)[_0xfb0f('0xf')](function(_0x37e8ad){logger[_0xfb0f('0x10')]('CmCompany,\x20%s,\x20%s',_0x313062,_0xfb0f('0x11'));logger[_0xfb0f('0x12')](_0xfb0f('0x13'),_0x313062,'request\x20sent',JSON['stringify'](_0x37e8ad));if(_0x37e8ad[_0xfb0f('0x14')]){if(_0x37e8ad[_0xfb0f('0x14')][_0xfb0f('0x15')]===0x1f4){logger['error'](_0xfb0f('0x16'),_0x313062,_0x37e8ad['error'][_0xfb0f('0x17')]);return _0x1adc6e(_0x37e8ad[_0xfb0f('0x14')]['message']);}logger[_0xfb0f('0x14')]('CmCompany,\x20%s,\x20%s',_0x313062,_0x37e8ad[_0xfb0f('0x14')][_0xfb0f('0x17')]);return _0x2e8f19(_0x37e8ad[_0xfb0f('0x14')][_0xfb0f('0x17')]);}else{logger[_0xfb0f('0x10')]('CmCompany,\x20%s,\x20%s',_0x313062,'request\x20sent');_0x2e8f19(_0x37e8ad[_0xfb0f('0x18')]['message']);}})['catch'](function(_0x294471){logger['error'](_0xfb0f('0x16'),_0x313062,_0x294471);_0x1adc6e(_0x294471);});});}
\ No newline at end of file
diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js
index 7b47d58..4eac323 100644
--- a/server/api/cmCompany/index.js
+++ b/server/api/cmCompany/index.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa456=['update','delete','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./cmCompany.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/contacts','getContacts','post'];(function(_0x2635c0,_0x3086c0){var _0x214668=function(_0x385d36){while(--_0x385d36){_0x2635c0['push'](_0x2635c0['shift']());}};_0x214668(++_0x3086c0);}(_0xa456,0x142));var _0x6a45=function(_0x36ed48,_0x1ee0d4){_0x36ed48=_0x36ed48-0x0;var _0x51c63a=_0xa456[_0x36ed48];return _0x51c63a;};'use strict';var multer=require(_0x6a45('0x0'));var util=require(_0x6a45('0x1'));var path=require(_0x6a45('0x2'));var timeout=require(_0x6a45('0x3'));var express=require('express');var router=express[_0x6a45('0x4')]();var auth=require(_0x6a45('0x5'));var interaction=require(_0x6a45('0x6'));var config=require('../../config/environment');var controller=require(_0x6a45('0x7'));router[_0x6a45('0x8')]('/',auth[_0x6a45('0x9')](),controller[_0x6a45('0xa')]);router['get'](_0x6a45('0xb'),auth[_0x6a45('0x9')](),controller[_0x6a45('0xc')]);router[_0x6a45('0x8')](_0x6a45('0xd'),auth['isAuthenticated'](),controller[_0x6a45('0xe')]);router['get'](_0x6a45('0xf'),auth[_0x6a45('0x9')](),controller[_0x6a45('0x10')]);router[_0x6a45('0x11')]('/',auth[_0x6a45('0x9')](),controller['create']);router['post'](_0x6a45('0xf'),auth[_0x6a45('0x9')](),controller['addContacts']);router['put']('/:id',auth[_0x6a45('0x9')](),controller[_0x6a45('0x12')]);router[_0x6a45('0x13')](_0x6a45('0xd'),auth[_0x6a45('0x9')](),controller['destroy']);module['exports']=router;
\ No newline at end of file
+var _0x1a85=['../../config/environment','./cmCompany.controller','isAuthenticated','get','describe','/:id','/:id/contacts','getContacts','post','create','addContacts','put','update','delete','destroy','exports','path','connect-timeout','express','../../components/interaction/service'];(function(_0x235482,_0x14b833){var _0x5f5bea=function(_0x17a254){while(--_0x17a254){_0x235482['push'](_0x235482['shift']());}};_0x5f5bea(++_0x14b833);}(_0x1a85,0x178));var _0x51a8=function(_0x1619c1,_0x21b9fd){_0x1619c1=_0x1619c1-0x0;var _0x424d3f=_0x1a85[_0x1619c1];return _0x424d3f;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x51a8('0x0'));var timeout=require(_0x51a8('0x1'));var express=require(_0x51a8('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x51a8('0x3'));var config=require(_0x51a8('0x4'));var controller=require(_0x51a8('0x5'));router['get']('/',auth[_0x51a8('0x6')](),controller['index']);router[_0x51a8('0x7')]('/describe',auth[_0x51a8('0x6')](),controller[_0x51a8('0x8')]);router['get'](_0x51a8('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x51a8('0x7')](_0x51a8('0xa'),auth[_0x51a8('0x6')](),controller[_0x51a8('0xb')]);router[_0x51a8('0xc')]('/',auth[_0x51a8('0x6')](),controller[_0x51a8('0xd')]);router[_0x51a8('0xc')](_0x51a8('0xa'),auth[_0x51a8('0x6')](),controller[_0x51a8('0xe')]);router[_0x51a8('0xf')](_0x51a8('0x9'),auth[_0x51a8('0x6')](),controller[_0x51a8('0x10')]);router[_0x51a8('0x11')](_0x51a8('0x9'),auth['isAuthenticated'](),controller[_0x51a8('0x12')]);module[_0x51a8('0x13')]=router;
\ No newline at end of file
diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js
index 7621b56..fd2a1f4 100644
--- a/server/api/cmContact/cmContact.attributes.js
+++ b/server/api/cmContact/cmContact.attributes.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x3b6d=['DATE','lodash','sequelize','STRING','TEXT','INTEGER','UNSIGNED'];(function(_0x15abd9,_0x46b856){var _0x58fd5f=function(_0x1668a3){while(--_0x1668a3){_0x15abd9['push'](_0x15abd9['shift']());}};_0x58fd5f(++_0x46b856);}(_0x3b6d,0x86));var _0xd3b6=function(_0x815947,_0x519bbc){_0x815947=_0x815947-0x0;var _0x4d13b4=_0x3b6d[_0x815947];return _0x4d13b4;};'use strict';var _=require(_0xd3b6('0x0'));var Sequelize=require(_0xd3b6('0x1'));module['exports']={'firstName':{'type':Sequelize['STRING'],'allowNull':![]},'lastName':{'type':Sequelize[_0xd3b6('0x2')]},'street':{'type':Sequelize[_0xd3b6('0x2')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0xd3b6('0x2')]},'country':{'type':Sequelize[_0xd3b6('0x2')]},'dateOfBirth':{'type':Sequelize[_0xd3b6('0x2')]},'description':{'type':Sequelize[_0xd3b6('0x3')]},'phone':{'type':Sequelize[_0xd3b6('0x2')]},'mobile':{'type':Sequelize['STRING']},'fax':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING']},'url':{'type':Sequelize['STRING']},'facebook':{'type':Sequelize['STRING']},'fb_data':{'type':Sequelize[_0xd3b6('0x2')]},'twitter':{'type':Sequelize[_0xd3b6('0x2')]},'skype':{'type':Sequelize[_0xd3b6('0x2')]},'teams':{'type':Sequelize['STRING']},'viber':{'type':Sequelize[_0xd3b6('0x2')]},'line':{'type':Sequelize[_0xd3b6('0x2')]},'wechat':{'type':Sequelize[_0xd3b6('0x2')]},'telegram':{'type':Sequelize[_0xd3b6('0x2')]},'UserId':{'type':Sequelize[_0xd3b6('0x4')]},'priority':{'type':Sequelize[_0xd3b6('0x4')](0x2)[_0xd3b6('0x5')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0xd3b6('0x6')],'defaultValue':Sequelize['NOW']}};
\ No newline at end of file
+var _0x1b39=['DATE','NOW','lodash','exports','STRING','INTEGER'];(function(_0xc5a279,_0x155360){var _0xc755d3=function(_0x15051c){while(--_0x15051c){_0xc5a279['push'](_0xc5a279['shift']());}};_0xc755d3(++_0x155360);}(_0x1b39,0x188));var _0x91b3=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x1b39[_0x57b54c];return _0x59cc19;};'use strict';var _=require(_0x91b3('0x0'));var Sequelize=require('sequelize');module[_0x91b3('0x1')]={'firstName':{'type':Sequelize[_0x91b3('0x2')],'allowNull':![]},'lastName':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x91b3('0x2')]},'postalCode':{'type':Sequelize[_0x91b3('0x2')]},'city':{'type':Sequelize[_0x91b3('0x2')]},'country':{'type':Sequelize[_0x91b3('0x2')]},'dateOfBirth':{'type':Sequelize[_0x91b3('0x2')]},'description':{'type':Sequelize['TEXT']},'phone':{'type':Sequelize[_0x91b3('0x2')]},'mobile':{'type':Sequelize[_0x91b3('0x2')]},'fax':{'type':Sequelize[_0x91b3('0x2')]},'email':{'type':Sequelize[_0x91b3('0x2')]},'url':{'type':Sequelize[_0x91b3('0x2')]},'facebook':{'type':Sequelize[_0x91b3('0x2')]},'fb_data':{'type':Sequelize[_0x91b3('0x2')]},'twitter':{'type':Sequelize['STRING']},'skype':{'type':Sequelize[_0x91b3('0x2')]},'teams':{'type':Sequelize[_0x91b3('0x2')]},'viber':{'type':Sequelize[_0x91b3('0x2')]},'line':{'type':Sequelize[_0x91b3('0x2')]},'wechat':{'type':Sequelize[_0x91b3('0x2')]},'telegram':{'type':Sequelize[_0x91b3('0x2')]},'UserId':{'type':Sequelize['INTEGER']},'priority':{'type':Sequelize[_0x91b3('0x3')](0x2)['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x91b3('0x4')],'defaultValue':Sequelize[_0x91b3('0x5')]}};
\ No newline at end of file
diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js
index 87a0e71..4bdd0ea 100644
--- a/server/api/cmContact/cmContact.controller.js
+++ b/server/api/cmContact/cmContact.controller.js
@@ -15,4 +15,4 @@
// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x6a7b=['color','from','tools_tags','left_join','uc.CmContactId\x20=\x20c.id','cm_contact_has_tags','ct.CmContactId\x20=\x20c.id','t.id\x20=\x20ct.TagId','c.deletedAt\x20IS\x20NULL','expr','search','parseSearch','sqlOperator','find','Tag','value','map','union','User','uc.UserId\x20=\x20?','datetime','DATE','buildExpression','text','start','isNil','Contact','forEach','ListId','where','\x20=\x20?','tag','isArray','filter','replace','\x27\x27\x27\x27','split','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','getFullTextValue','c.id\x20LIKE\x20?','c.phone\x20LIKE\x20?','c.fax\x20LIKE\x20?','isEmail','c.firstName\x20LIKE\x20?','c.lastName\x20LIKE\x20?','c.email\x20LIKE\x20?','group','c.id','Sequelize','QueryTypes','SELECT','DESC','isEmpty','having','t.id\x20IN\x20?','resolve','some','user','getLists','c.ListId\x20IS\x20NULL','c.ListId\x20IN\x20?','sequelize','toString','count','keyBy','merge','c.firstName','c.lastName','c.phone','c.mobile','c.fax','c.email','TagIds','Tags','rows','catch','params','tags','columnName','displayName','CmCustomField','findAll','alias','custom','body','get','mergeWith','info','[CmContact][merge][destroy][CmHopper],\x20%s','CmHopperBlack','[CmContact][merge][destroy][CmHopperBlack],\x20%s','create','ChatInteraction','ChatMessage','ChatOfflineMessage','MailInteraction','MailMessage','SmsInteraction','SmsMessage','FaxMessage','OpenchannelInteraction','OpenchannelMessage','CmHopperFinal','CmHopperHistory','VoiceCallReport','ChatQueueReport','MailQueueReport','OpenchannelQueueReport','join','bulkCreate','each','duplicates','$or','spread','show','$and','omit','pickBy','format','cf_%d','table','cm_contacts','setFields','toParam','values','phone','CmHopper','getTags','options','setTags','includeAll','getHopperHistories','rawAttributes','ContactId','include','getJscriptySessions','JscriptySessionReport','No\x20ListId\x20specified','binding_keys','No\x20association\x20keys\x20specified!','No\x20association\x20values\x20specified!','socket_timestamp','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','binding_values','Incorrect\x20binding\x20parameters\x20passed!','zipObject','No\x20phone\x20column\x20specified','firstName','No\x20firstName\x20column\x20specified','root','file','filename','0777','child_process','fork','../../components/import/cm/csv','CompanyId','createReadStream','parse','meta','import','binding','../../components/import/cm/csv2','stringify','message','pid','exit','error\x20child\x20process','html-pdf','fast-json-patch','moment','bluebird','util','path','to-csv','ejs','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','redis','defaults','localhost','sendStatus','end','status','offset','limit','set','Content-Range','json','reject','save','update','then','destroy','stack','name','send','index','CmContact','describe','keys','length','startsWith','cf_','push','findOne','trimStart','all','fieldType','type','query','intersection','model','fields','attributes','hasOwnProperty','nolimit','order','sort','filters','pick','select','field'];(function(_0x5e2d7e,_0x3b172d){var _0x34bef0=function(_0x7fe324){while(--_0x7fe324){_0x5e2d7e['push'](_0x5e2d7e['shift']());}};_0x34bef0(++_0x3b172d);}(_0x6a7b,0x192));var _0xb6a7=function(_0x5d8eb7,_0x2b87c4){_0x5d8eb7=_0x5d8eb7-0x0;var _0x42d426=_0x6a7b[_0x5d8eb7];return _0x42d426;};'use strict';var pdf=require(_0xb6a7('0x0'));var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xb6a7('0x1'));var rp=require('request-promise');var moment=require(_0xb6a7('0x2'));var BPromise=require(_0xb6a7('0x3'));var Mustache=require('mustache');var util=require(_0xb6a7('0x4'));var path=require(_0xb6a7('0x5'));var sox=require('sox');var csv=require(_0xb6a7('0x6'));var ejs=require(_0xb6a7('0x7'));var fs=require('fs');var _=require(_0xb6a7('0x8'));var squel=require('squel');var crypto=require(_0xb6a7('0x9'));var jsforce=require(_0xb6a7('0xa'));var deskjs=require(_0xb6a7('0xb'));var toCsv=require(_0xb6a7('0x6'));var querystring=require(_0xb6a7('0xc'));var Papa=require(_0xb6a7('0xd'));var Redis=require(_0xb6a7('0xe'));var authService=require('../../components/auth/service');var qs=require(_0xb6a7('0xf'));var as=require(_0xb6a7('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xb6a7('0x11'))(_0xb6a7('0x12'));var utils=require(_0xb6a7('0x13'));var config=require(_0xb6a7('0x14'));var db=require('../../mysqldb')['db'];config[_0xb6a7('0x15')]=_[_0xb6a7('0x16')](config[_0xb6a7('0x15')],{'host':_0xb6a7('0x17'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require('./cmContact.socket')['register'](socket);function respondWithStatusCode(_0x426a66,_0x41a6a9){_0x41a6a9=_0x41a6a9||0xcc;return function(_0x5f1536){if(_0x5f1536){return _0x426a66[_0xb6a7('0x18')](_0x41a6a9);}return _0x426a66['status'](_0x41a6a9)[_0xb6a7('0x19')]();};}function respondWithResult(_0x391a13,_0x5d4ff0){_0x5d4ff0=_0x5d4ff0||0xc8;return function(_0x223f4c){if(_0x223f4c){return _0x391a13[_0xb6a7('0x1a')](_0x5d4ff0)['json'](_0x223f4c);}};}function respondWithFilteredResult(_0x10dca9,_0x2ef459){return function(_0x4ce482){if(_0x4ce482){var _0x87056=_0x4ce482['count'],_0x4e56d7=_0x2ef459[_0xb6a7('0x1b')],_0x2353ce=_0x2ef459[_0xb6a7('0x1b')]+_0x2ef459[_0xb6a7('0x1c')],_0xfbfc9c;if(_0x2353ce>=_0x87056){_0x2353ce=_0x87056;_0xfbfc9c=0xc8;}else{_0xfbfc9c=0xce;}_0x10dca9[_0xb6a7('0x1a')](_0xfbfc9c);return _0x10dca9[_0xb6a7('0x1d')](_0xb6a7('0x1e'),_0x4e56d7+'-'+_0x2353ce+'/'+_0x87056)[_0xb6a7('0x1f')](_0x4ce482);}return null;};}function patchUpdates(_0x390375){return function(_0x533b1b){try{jsonpatch['apply'](_0x533b1b,_0x390375,!![]);}catch(_0x50ca1d){return BPromise[_0xb6a7('0x20')](_0x50ca1d);}return _0x533b1b[_0xb6a7('0x21')]();};}function saveUpdates(_0x5f24d6,_0x5ab215){return function(_0x4e2462){if(_0x4e2462){return _0x4e2462[_0xb6a7('0x22')](_0x5f24d6)[_0xb6a7('0x23')](function(_0x3de9c8){return _0x3de9c8;});}return null;};}function removeEntity(_0x4a9255,_0x66bd8f){return function(_0x4c6b0){if(_0x4c6b0){return _0x4c6b0[_0xb6a7('0x24')]()[_0xb6a7('0x23')](function(){_0x4a9255[_0xb6a7('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x54b813,_0x5a6820){return function(_0x2c26c4){if(!_0x2c26c4){_0x54b813['sendStatus'](0x194);}return _0x2c26c4;};}function handleError(_0x5f4bfb,_0x51a710){_0x51a710=_0x51a710||0x1f4;return function(_0x414f9c){logger['error'](_0x414f9c[_0xb6a7('0x25')]);if(_0x414f9c[_0xb6a7('0x26')]){delete _0x414f9c[_0xb6a7('0x26')];}_0x5f4bfb[_0xb6a7('0x1a')](_0x51a710)[_0xb6a7('0x27')](_0x414f9c);};}exports[_0xb6a7('0x28')]=function(_0x15831e,_0x15bd67){var _0xed208c={},_0x5f0936={},_0xd001d7={'count':0x0,'rows':[]};return db[_0xb6a7('0x29')][_0xb6a7('0x2a')]()[_0xb6a7('0x23')](function(_0x57a9a2){var _0x36c54c=[];for(var _0x1a57f2=0x0;_0x1a57f2','getHost','gmail','imap.gmail.com','yahoo','hotmail','outlook365','outlook.office365.com','127.0.0.1','lodash','moment','randomstring','path','node-tnef','../../../config/logger','email','../../../config/environment','head','value','address','anonymous','@xcally.com','split','slice'];(function(_0x3c9ea9,_0x54d1ff){var _0x72390e=function(_0x34e75b){while(--_0x34e75b){_0x3c9ea9['push'](_0x3c9ea9['shift']());}};_0x72390e(++_0x54d1ff);}(_0x0d87,0x1b8));var _0x70d8=function(_0x2877b3,_0x4ba4a3){_0x2877b3=_0x2877b3-0x0;var _0x384fd8=_0x0d87[_0x2877b3];return _0x384fd8;};'use strict';var _=require(_0x70d8('0x0'));var moment=require(_0x70d8('0x1'));var random=require(_0x70d8('0x2'));var fs=require('fs');var path=require(_0x70d8('0x3'));var util=require('util');var tnef=require(_0x70d8('0x4'));var logger=require(_0x70d8('0x5'))(_0x70d8('0x6'));var config=require(_0x70d8('0x7'));function getAddress(_0x148484){var _0x134e1e=_[_0x70d8('0x8')](_0x148484[_0x70d8('0x9')]);return _0x134e1e&&_0x134e1e[_0x70d8('0xa')]?_0x134e1e[_0x70d8('0xa')]:_0x70d8('0xb')+random['generate'](0x6)+_0x70d8('0xc');}function getFirstName(_0x14a3ef){var _0x5138e2=_[_0x70d8('0x8')](_0x14a3ef[_0x70d8('0x9')]);if(_0x5138e2&&_0x5138e2['name']){var _0x436a55=_0x5138e2['name'][_0x70d8('0xd')](/\s+/);return _0x436a55['length']?_0x436a55[_0x70d8('0xe')](0x0,-0x1)[_0x70d8('0xf')]('\x20'):_0x5138e2[_0x70d8('0x10')];}return'Anonymous';}function getLastName(_0x10eaa1){var _0x566e66=_[_0x70d8('0x8')](_0x10eaa1['value']);if(_0x566e66&&_0x566e66[_0x70d8('0x10')]){var _0x1e650d=_0x566e66[_0x70d8('0x10')][_0x70d8('0xd')](/\s+/);return _0x1e650d[_0x70d8('0x11')]>0x1?_0x1e650d[_0x70d8('0x12')]():'';}return'';}function getMails(_0x1516e3,_0x2ee510){var _0x2a95a2='';for(var _0x304bed=0x0;_0x304bed<_0x2ee510[_0x70d8('0x9')][_0x70d8('0x11')];_0x304bed+=0x1){if(_0x2ee510[_0x70d8('0x9')][_0x304bed][_0x70d8('0xa')]!==_0x1516e3){if(!_['isEmpty'](_0x2a95a2)){_0x2a95a2+=',';}_0x2a95a2+=_0x2ee510[_0x70d8('0x9')][_0x304bed][_0x70d8('0x10')]||_0x2ee510[_0x70d8('0x9')][_0x304bed][_0x70d8('0xa')]||'';_0x2a95a2+='\x20<';_0x2a95a2+=_0x2ee510['value'][_0x304bed]['address']?_0x2ee510[_0x70d8('0x9')][_0x304bed]['address']:_0x70d8('0xb')+random[_0x70d8('0x13')](0x6)+_0x70d8('0xc');_0x2a95a2+='>';}}return _0x2a95a2;}function parseEmail(_0x25e0c4,_0x13cd29,_0x338f8b){if(_0x13cd29['html']){var _0x5bf42d=/
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-