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 _0x7d5d=['Imap','name','type','CloudProvider','MailServerOut','data5','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request','provider','service','email','key','ListId','TemplateId','MailServerIn'];(function(_0x23ce9a,_0x1d7064){var _0x681ab2=function(_0x432edb){while(--_0x432edb){_0x23ce9a['push'](_0x23ce9a['shift']());}};_0x681ab2(++_0x1d7064);}(_0x7d5d,0x1dd));var _0xd7d5=function(_0x982d02,_0x4ef5e6){_0x982d02=_0x982d02-0x0;var _0xaf3078=_0x7d5d[_0x982d02];return _0xaf3078;};'use strict';var client=require('../client');exports[_0xd7d5('0x0')]=function(){return function(){return client[_0xd7d5('0x1')]('GetMailAccount',{'options':{'attributes':['id','name',_0xd7d5('0x2'),_0xd7d5('0x3'),_0xd7d5('0x4'),'active',_0xd7d5('0x5'),_0xd7d5('0x6'),_0xd7d5('0x7')],'raw':![],'include':[{'model':_0xd7d5('0x8'),'as':_0xd7d5('0x9'),'include':[{'model':'CloudProvider','attributes':['id',_0xd7d5('0xa'),_0xd7d5('0x3'),_0xd7d5('0xb'),'data5'],'as':_0xd7d5('0xc')}]},{'model':_0xd7d5('0xd'),'as':'Smtp','include':[{'model':_0xd7d5('0xc'),'attributes':['id',_0xd7d5('0xa'),_0xd7d5('0x3'),'type',_0xd7d5('0xe')],'as':_0xd7d5('0xc')}]}]},'log':_0xd7d5('0xf')});};};exports[_0xd7d5('0x10')]=function(_0x4be025,_0x59d51c){return client[_0xd7d5('0x1')](_0xd7d5('0x11'),{'account':{'id':_0x4be025},'body':_0x59d51c,'log':_0xd7d5('0x11')});};