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 _0x39e6=['Smtp','getMailAccount','notify','NotifyMailAccount','../client','Request','service','email','key','ListId','TemplateId','MailServerIn','Imap','MailServerOut'];(function(_0xaa1b3e,_0x47d976){var _0x454d7d=function(_0x575b32){while(--_0x575b32){_0xaa1b3e['push'](_0xaa1b3e['shift']());}};_0x454d7d(++_0x47d976);}(_0x39e6,0x9e));var _0x639e=function(_0x32b39d,_0x32dd69){_0x32b39d=_0x32b39d-0x0;var _0x5ec6ee=_0x39e6[_0x32b39d];return _0x5ec6ee;};'use strict';var client=require(_0x639e('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x639e('0x1')]('GetMailAccount',{'options':{'attributes':['id','name',_0x639e('0x2'),_0x639e('0x3'),'active',_0x639e('0x4'),_0x639e('0x5'),_0x639e('0x6')],'raw':![],'include':[{'model':_0x639e('0x7'),'as':_0x639e('0x8')},{'model':_0x639e('0x9'),'as':_0x639e('0xa')}]},'log':_0x639e('0xb')});};};exports[_0x639e('0xc')]=function(_0x134eec,_0x29e806){return client[_0x639e('0x1')](_0x639e('0xd'),{'account':{'id':_0x134eec},'body':_0x29e806,'log':_0x639e('0xd')});};