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 _0x972c=['Request','GetMailAccount','service','email','ListId','TemplateId','MailServerIn','MailServerOut','getMailAccount','notify','NotifyMailAccount'];(function(_0x21d8bc,_0x479268){var _0x3014bf=function(_0x1fc5c6){while(--_0x1fc5c6){_0x21d8bc['push'](_0x21d8bc['shift']());}};_0x3014bf(++_0x479268);}(_0x972c,0xf2));var _0xc972=function(_0x50d64a,_0x51e412){_0x50d64a=_0x50d64a-0x0;var _0x5c47a5=_0x972c[_0x50d64a];return _0x5c47a5;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0xc972('0x0')](_0xc972('0x1'),{'options':{'attributes':['id','name',_0xc972('0x2'),_0xc972('0x3'),'active','key',_0xc972('0x4'),_0xc972('0x5')],'raw':![],'include':[{'model':_0xc972('0x6'),'as':'Imap'},{'model':_0xc972('0x7'),'as':'Smtp'}]},'log':_0xc972('0x8')});};};exports[_0xc972('0x9')]=function(_0x304d08,_0x5ef7c4){return client['Request']('NotifyMailAccount',{'account':{'id':_0x304d08},'body':_0x5ef7c4,'log':_0xc972('0xa')});};