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 _0xdd4b=['TemplateId','MailServerIn','Imap','getMailAccount','notify','NotifyMailAccount','Request','GetMailAccount','service','email','active','key','ListId'];(function(_0x2f2036,_0x11175){var _0x3aaf7e=function(_0x20961b){while(--_0x20961b){_0x2f2036['push'](_0x2f2036['shift']());}};_0x3aaf7e(++_0x11175);}(_0xdd4b,0xbc));var _0xbdd4=function(_0x1035c1,_0x2d8583){_0x1035c1=_0x1035c1-0x0;var _0x308d67=_0xdd4b[_0x1035c1];return _0x308d67;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0xbdd4('0x0')](_0xbdd4('0x1'),{'options':{'attributes':['id','name',_0xbdd4('0x2'),_0xbdd4('0x3'),_0xbdd4('0x4'),_0xbdd4('0x5'),_0xbdd4('0x6'),_0xbdd4('0x7')],'raw':![],'include':[{'model':_0xbdd4('0x8'),'as':_0xbdd4('0x9')},{'model':'MailServerOut','as':'Smtp'}]},'log':_0xbdd4('0xa')});};};exports[_0xbdd4('0xb')]=function(_0x70fb66,_0x2185b4){return client[_0xbdd4('0x0')](_0xbdd4('0xc'),{'account':{'id':_0x70fb66},'body':_0x2185b4,'log':'NotifyMailAccount'});};