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 _0x0427=['CloudProvider','type','data5','MailServerOut','Smtp','getMailAccount','Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','provider','service','email','key','ListId','TemplateId','MailServerIn','Imap'];(function(_0x5b8450,_0x477fd1){var _0x3d7b4e=function(_0xa70fe1){while(--_0xa70fe1){_0x5b8450['push'](_0x5b8450['shift']());}};_0x3d7b4e(++_0x477fd1);}(_0x0427,0x6c));var _0x7042=function(_0x2437af,_0x43bcd9){_0x2437af=_0x2437af-0x0;var _0x2d8b4c=_0x0427[_0x2437af];return _0x2d8b4c;};'use strict';var client=require(_0x7042('0x0'));exports[_0x7042('0x1')]=function(){return function(){return client['Request'](_0x7042('0x2'),{'options':{'attributes':['id',_0x7042('0x3'),_0x7042('0x4'),_0x7042('0x5'),_0x7042('0x6'),'active',_0x7042('0x7'),_0x7042('0x8'),_0x7042('0x9')],'raw':![],'include':[{'model':_0x7042('0xa'),'as':_0x7042('0xb'),'include':[{'model':_0x7042('0xc'),'attributes':['id',_0x7042('0x3'),'service',_0x7042('0xd'),_0x7042('0xe')],'as':_0x7042('0xc')}]},{'model':_0x7042('0xf'),'as':_0x7042('0x10'),'include':[{'model':_0x7042('0xc'),'attributes':['id',_0x7042('0x3'),'service','type',_0x7042('0xe')],'as':_0x7042('0xc')}]}]},'log':_0x7042('0x11')});};};exports['notify']=function(_0x2b308a,_0x3ece0c){return client[_0x7042('0x12')](_0x7042('0x13'),{'account':{'id':_0x2b308a},'body':_0x3ece0c,'log':_0x7042('0x13')});};