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 _0xf435=['key','ListId','TemplateId','Imap','MailServerOut','Smtp','notify','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','name','service','active'];(function(_0x17e426,_0x137e4d){var _0x1570ea=function(_0x10146b){while(--_0x10146b){_0x17e426['push'](_0x17e426['shift']());}};_0x1570ea(++_0x137e4d);}(_0xf435,0x174));var _0x5f43=function(_0x253042,_0x16a417){_0x253042=_0x253042-0x0;var _0xaf096a=_0xf435[_0x253042];return _0xaf096a;};'use strict';var client=require('../client');exports[_0x5f43('0x0')]=function(){return function(){return client[_0x5f43('0x1')](_0x5f43('0x2'),{'options':{'attributes':['id',_0x5f43('0x3'),_0x5f43('0x4'),'email',_0x5f43('0x5'),_0x5f43('0x6'),_0x5f43('0x7'),_0x5f43('0x8')],'raw':![],'include':[{'model':'MailServerIn','as':_0x5f43('0x9')},{'model':_0x5f43('0xa'),'as':_0x5f43('0xb')}]},'log':'getMailAccount'});};};exports[_0x5f43('0xc')]=function(_0x2dc16e,_0x2a5620){return client[_0x5f43('0x1')](_0x5f43('0xd'),{'account':{'id':_0x2dc16e},'body':_0x2a5620,'log':_0x5f43('0xd')});};