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 _0x3fc6=['MailServerOut','Smtp','getMailAccount','NotifyMailAccount','../client','Request','GetMailAccount','name','service','active','key','ListId','MailServerIn'];(function(_0x77bf1f,_0x598df6){var _0x35cef3=function(_0x2e450f){while(--_0x2e450f){_0x77bf1f['push'](_0x77bf1f['shift']());}};_0x35cef3(++_0x598df6);}(_0x3fc6,0x115));var _0x63fc=function(_0x33c77c,_0x4a4af7){_0x33c77c=_0x33c77c-0x0;var _0x140a9f=_0x3fc6[_0x33c77c];return _0x140a9f;};'use strict';var client=require(_0x63fc('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x63fc('0x1')](_0x63fc('0x2'),{'options':{'attributes':['id',_0x63fc('0x3'),_0x63fc('0x4'),'email',_0x63fc('0x5'),_0x63fc('0x6'),_0x63fc('0x7'),'TemplateId'],'raw':![],'include':[{'model':_0x63fc('0x8'),'as':'Imap'},{'model':_0x63fc('0x9'),'as':_0x63fc('0xa')}]},'log':_0x63fc('0xb')});};};exports['notify']=function(_0x3ec832,_0xffe000){return client[_0x63fc('0x1')](_0x63fc('0xc'),{'account':{'id':_0x3ec832},'body':_0xffe000,'log':_0x63fc('0xc')});};