1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x720b=['name','provider','email','active','key','TemplateId','MailServerIn','Imap','CloudProvider','data5','MailServerOut','Smtp','service','type','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request'];(function(_0x219bcd,_0x54ddfe){var _0x154f01=function(_0x2e9685){while(--_0x2e9685){_0x219bcd['push'](_0x219bcd['shift']());}};_0x154f01(++_0x54ddfe);}(_0x720b,0x1d8));var _0xb720=function(_0xfd0780,_0x3f6251){_0xfd0780=_0xfd0780-0x0;var _0x1fbaf7=_0x720b[_0xfd0780];return _0x1fbaf7;};'use strict';var client=require(_0xb720('0x0'));exports[_0xb720('0x1')]=function(){return function(){return client[_0xb720('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0xb720('0x3'),_0xb720('0x4'),'service',_0xb720('0x5'),_0xb720('0x6'),_0xb720('0x7'),'ListId',_0xb720('0x8')],'raw':![],'include':[{'model':_0xb720('0x9'),'as':_0xb720('0xa'),'include':[{'model':_0xb720('0xb'),'attributes':['id',_0xb720('0x3'),'service','type',_0xb720('0xc')],'as':_0xb720('0xb')}]},{'model':_0xb720('0xd'),'as':_0xb720('0xe'),'include':[{'model':_0xb720('0xb'),'attributes':['id',_0xb720('0x3'),_0xb720('0xf'),_0xb720('0x10'),'data5'],'as':_0xb720('0xb')}]}]},'log':_0xb720('0x11')});};};exports['notify']=function(_0x1ac12f,_0x572f11){return client[_0xb720('0x2')]('NotifyMailAccount',{'account':{'id':_0x1ac12f},'body':_0x572f11,'log':_0xb720('0x12')});};