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 _0x02ca=['TemplateId','MailServerIn','Imap','CloudProvider','service','type','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','Request','GetMailAccount','name','provider','email','active','key','ListId'];(function(_0x3cb8db,_0x55129b){var _0x26b555=function(_0x5d1eea){while(--_0x5d1eea){_0x3cb8db['push'](_0x3cb8db['shift']());}};_0x26b555(++_0x55129b);}(_0x02ca,0x97));var _0xa02c=function(_0x16268e,_0x49d117){_0x16268e=_0x16268e-0x0;var _0x1df8f6=_0x02ca[_0x16268e];return _0x1df8f6;};'use strict';var client=require(_0xa02c('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0xa02c('0x1')](_0xa02c('0x2'),{'options':{'attributes':['id',_0xa02c('0x3'),_0xa02c('0x4'),'service',_0xa02c('0x5'),_0xa02c('0x6'),_0xa02c('0x7'),_0xa02c('0x8'),_0xa02c('0x9')],'raw':![],'include':[{'model':_0xa02c('0xa'),'as':_0xa02c('0xb'),'include':[{'model':_0xa02c('0xc'),'attributes':['id',_0xa02c('0x3'),_0xa02c('0xd'),_0xa02c('0xe'),'data5'],'as':_0xa02c('0xc')}]},{'model':_0xa02c('0xf'),'as':_0xa02c('0x10'),'include':[{'model':_0xa02c('0xc'),'attributes':['id',_0xa02c('0x3'),'service','type','data5'],'as':'CloudProvider'}]}]},'log':_0xa02c('0x11')});};};exports[_0xa02c('0x12')]=function(_0x363d4c,_0x3509a4){return client['Request'](_0xa02c('0x13'),{'account':{'id':_0x363d4c},'body':_0x3509a4,'log':_0xa02c('0x13')});};