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 _0x7a5b=['TemplateId','Imap','CloudProvider','type','data5','Smtp','getMailAccount','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','provider','service','active','key','ListId'];(function(_0x3ff085,_0x27c92e){var _0x2b68c3=function(_0x37811e){while(--_0x37811e){_0x3ff085['push'](_0x3ff085['shift']());}};_0x2b68c3(++_0x27c92e);}(_0x7a5b,0x1d3));var _0xb7a5=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x7a5b[_0x3b380d];return _0x54502b;};'use strict';var client=require(_0xb7a5('0x0'));exports[_0xb7a5('0x1')]=function(){return function(){return client['Request'](_0xb7a5('0x2'),{'options':{'attributes':['id',_0xb7a5('0x3'),_0xb7a5('0x4'),_0xb7a5('0x5'),'email',_0xb7a5('0x6'),_0xb7a5('0x7'),_0xb7a5('0x8'),_0xb7a5('0x9')],'raw':![],'include':[{'model':'MailServerIn','as':_0xb7a5('0xa'),'include':[{'model':_0xb7a5('0xb'),'attributes':['id',_0xb7a5('0x3'),_0xb7a5('0x5'),_0xb7a5('0xc'),_0xb7a5('0xd')],'as':_0xb7a5('0xb')}]},{'model':'MailServerOut','as':_0xb7a5('0xe'),'include':[{'model':'CloudProvider','attributes':['id',_0xb7a5('0x3'),_0xb7a5('0x5'),_0xb7a5('0xc'),'data5'],'as':_0xb7a5('0xb')}]}]},'log':_0xb7a5('0xf')});};};exports['notify']=function(_0x28789f,_0xfa43a8){return client['Request'](_0xb7a5('0x10'),{'account':{'id':_0x28789f},'body':_0xfa43a8,'log':_0xb7a5('0x10')});};