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 _0xa4dc=['name','service','email','active','key','TemplateId','MailServerIn','Imap','Smtp','notify','Request','NotifyMailAccount','../client','getMailAccounts'];(function(_0x53cc0a,_0x30848e){var _0x58044c=function(_0x5ac32a){while(--_0x5ac32a){_0x53cc0a['push'](_0x53cc0a['shift']());}};_0x58044c(++_0x30848e);}(_0xa4dc,0x16a));var _0xca4d=function(_0x3e44fa,_0x75ed2a){_0x3e44fa=_0x3e44fa-0x0;var _0x2a0aba=_0xa4dc[_0x3e44fa];return _0x2a0aba;};'use strict';var client=require(_0xca4d('0x0'));exports[_0xca4d('0x1')]=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0xca4d('0x2'),_0xca4d('0x3'),_0xca4d('0x4'),_0xca4d('0x5'),_0xca4d('0x6'),'ListId',_0xca4d('0x7')],'raw':![],'include':[{'model':_0xca4d('0x8'),'as':_0xca4d('0x9')},{'model':'MailServerOut','as':_0xca4d('0xa')}]},'log':'getMailAccount'});};};exports[_0xca4d('0xb')]=function(_0x2fa52a,_0x21c434){return client[_0xca4d('0xc')]('NotifyMailAccount',{'account':{'id':_0x2fa52a},'body':_0x21c434,'log':_0xca4d('0xd')});};