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 _0xf6da=['GetMailAccount','name','provider','service','email','active','key','TemplateId','MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request'];(function(_0x43d106,_0x96a475){var _0x2160bc=function(_0x1219fb){while(--_0x1219fb){_0x43d106['push'](_0x43d106['shift']());}};_0x2160bc(++_0x96a475);}(_0xf6da,0x19f));var _0xaf6d=function(_0x54b774,_0x2bc4a3){_0x54b774=_0x54b774-0x0;var _0x3065d4=_0xf6da[_0x54b774];return _0x3065d4;};'use strict';var client=require(_0xaf6d('0x0'));exports[_0xaf6d('0x1')]=function(){return function(){return client[_0xaf6d('0x2')](_0xaf6d('0x3'),{'options':{'attributes':['id',_0xaf6d('0x4'),_0xaf6d('0x5'),_0xaf6d('0x6'),_0xaf6d('0x7'),_0xaf6d('0x8'),_0xaf6d('0x9'),'ListId',_0xaf6d('0xa')],'raw':![],'include':[{'model':_0xaf6d('0xb'),'as':_0xaf6d('0xc'),'include':[{'model':_0xaf6d('0xd'),'attributes':['id',_0xaf6d('0x4'),_0xaf6d('0x6'),_0xaf6d('0xe'),_0xaf6d('0xf')],'as':'CloudProvider'}]},{'model':_0xaf6d('0x10'),'as':'Smtp','include':[{'model':'CloudProvider','attributes':['id',_0xaf6d('0x4'),_0xaf6d('0x6'),_0xaf6d('0xe'),_0xaf6d('0xf')],'as':_0xaf6d('0xd')}]}]},'log':_0xaf6d('0x11')});};};exports['notify']=function(_0x2ec5b8,_0x28e257){return client[_0xaf6d('0x2')](_0xaf6d('0x12'),{'account':{'id':_0x2ec5b8},'body':_0x28e257,'log':_0xaf6d('0x12')});};