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 _0xc492=['ListId','MailServerIn','MailServerOut','Smtp','notify','NotifyMailAccount','../client','getMailAccounts','Request','service','key'];(function(_0x399a29,_0x466cdf){var _0x2ac308=function(_0x10d479){while(--_0x10d479){_0x399a29['push'](_0x399a29['shift']());}};_0x2ac308(++_0x466cdf);}(_0xc492,0xd7));var _0x2c49=function(_0x31c816,_0x3d0c10){_0x31c816=_0x31c816-0x0;var _0x1cc0c5=_0xc492[_0x31c816];return _0x1cc0c5;};'use strict';var client=require(_0x2c49('0x0'));exports[_0x2c49('0x1')]=function(){return function(){return client[_0x2c49('0x2')]('GetMailAccount',{'options':{'attributes':['id','name',_0x2c49('0x3'),'email','active',_0x2c49('0x4'),_0x2c49('0x5'),'TemplateId'],'raw':![],'include':[{'model':_0x2c49('0x6'),'as':'Imap'},{'model':_0x2c49('0x7'),'as':_0x2c49('0x8')}]},'log':'getMailAccount'});};};exports[_0x2c49('0x9')]=function(_0x17f596,_0x26f8c1){return client[_0x2c49('0x2')](_0x2c49('0xa'),{'account':{'id':_0x17f596},'body':_0x26f8c1,'log':'NotifyMailAccount'});};