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 _0x9048=['MailServerOut','Smtp','notify','NotifyMailAccount','../client','Request','service','email','key','ListId','TemplateId','MailServerIn','Imap','CloudProvider','name','type','data5'];(function(_0x178483,_0x3751ef){var _0xcc543f=function(_0x42919e){while(--_0x42919e){_0x178483['push'](_0x178483['shift']());}};_0xcc543f(++_0x3751ef);}(_0x9048,0xf2));var _0x8904=function(_0x360a63,_0x4040cf){_0x360a63=_0x360a63-0x0;var _0x6774d8=_0x9048[_0x360a63];return _0x6774d8;};'use strict';var client=require(_0x8904('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x8904('0x1')]('GetMailAccount',{'options':{'attributes':['id','name','provider',_0x8904('0x2'),_0x8904('0x3'),'active',_0x8904('0x4'),_0x8904('0x5'),_0x8904('0x6')],'raw':![],'include':[{'model':_0x8904('0x7'),'as':_0x8904('0x8'),'include':[{'model':_0x8904('0x9'),'attributes':['id',_0x8904('0xa'),_0x8904('0x2'),_0x8904('0xb'),_0x8904('0xc')],'as':_0x8904('0x9')}]},{'model':_0x8904('0xd'),'as':_0x8904('0xe'),'include':[{'model':_0x8904('0x9'),'attributes':['id','name','service',_0x8904('0xb'),'data5'],'as':'CloudProvider'}]}]},'log':'getMailAccount'});};};exports[_0x8904('0xf')]=function(_0x548d60,_0x1b1a6e){return client[_0x8904('0x1')](_0x8904('0x10'),{'account':{'id':_0x548d60},'body':_0x1b1a6e,'log':_0x8904('0x10')});};