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 _0x71c3=['../client','getMailAccounts','GetMailAccount','name','provider','service','email','active','key','MailServerIn','CloudProvider','data5','Smtp','type','getMailAccount','notify','Request','NotifyMailAccount'];(function(_0x16f0dd,_0x5c327e){var _0x4efab2=function(_0x5d4365){while(--_0x5d4365){_0x16f0dd['push'](_0x16f0dd['shift']());}};_0x4efab2(++_0x5c327e);}(_0x71c3,0xc6));var _0x371c=function(_0x254ab6,_0x44d133){_0x254ab6=_0x254ab6-0x0;var _0x2ba4c8=_0x71c3[_0x254ab6];return _0x2ba4c8;};'use strict';var client=require(_0x371c('0x0'));exports[_0x371c('0x1')]=function(){return function(){return client['Request'](_0x371c('0x2'),{'options':{'attributes':['id',_0x371c('0x3'),_0x371c('0x4'),_0x371c('0x5'),_0x371c('0x6'),_0x371c('0x7'),_0x371c('0x8'),'ListId','TemplateId'],'raw':![],'include':[{'model':_0x371c('0x9'),'as':'Imap','include':[{'model':_0x371c('0xa'),'attributes':['id',_0x371c('0x3'),_0x371c('0x5'),'type',_0x371c('0xb')],'as':'CloudProvider'}]},{'model':'MailServerOut','as':_0x371c('0xc'),'include':[{'model':_0x371c('0xa'),'attributes':['id',_0x371c('0x3'),_0x371c('0x5'),_0x371c('0xd'),_0x371c('0xb')],'as':_0x371c('0xa')}]}]},'log':_0x371c('0xe')});};};exports[_0x371c('0xf')]=function(_0x5a146f,_0x22d4f4){return client[_0x371c('0x10')](_0x371c('0x11'),{'account':{'id':_0x5a146f},'body':_0x22d4f4,'log':_0x371c('0x11')});};