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 _0x67d5=['key','ListId','TemplateId','MailServerIn','CloudProvider','type','data5','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request','name','service','email','active'];(function(_0x570ebc,_0x454b4a){var _0x5ccce4=function(_0x15d687){while(--_0x15d687){_0x570ebc['push'](_0x570ebc['shift']());}};_0x5ccce4(++_0x454b4a);}(_0x67d5,0x18a));var _0x567d=function(_0xeaaa86,_0x47aa05){_0xeaaa86=_0xeaaa86-0x0;var _0xd2bd82=_0x67d5[_0xeaaa86];return _0xd2bd82;};'use strict';var client=require('../client');exports[_0x567d('0x0')]=function(){return function(){return client[_0x567d('0x1')]('GetMailAccount',{'options':{'attributes':['id',_0x567d('0x2'),'provider',_0x567d('0x3'),_0x567d('0x4'),_0x567d('0x5'),_0x567d('0x6'),_0x567d('0x7'),_0x567d('0x8')],'raw':![],'include':[{'model':_0x567d('0x9'),'as':'Imap','include':[{'model':_0x567d('0xa'),'attributes':['id',_0x567d('0x2'),_0x567d('0x3'),_0x567d('0xb'),_0x567d('0xc')],'as':_0x567d('0xa')}]},{'model':'MailServerOut','as':'Smtp','include':[{'model':_0x567d('0xa'),'attributes':['id',_0x567d('0x2'),_0x567d('0x3'),_0x567d('0xb'),_0x567d('0xc')],'as':_0x567d('0xa')}]}]},'log':_0x567d('0xd')});};};exports[_0x567d('0xe')]=function(_0x51d021,_0xd02cdc){return client[_0x567d('0x1')](_0x567d('0xf'),{'account':{'id':_0x51d021},'body':_0xd02cdc,'log':_0x567d('0xf')});};