a8192e460cab556cf1f6afd901be705a22ed7fbc
[motion2.git] / server / services / email / rpc / mailAccount.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x8917=['getMailAccount','notify','NotifyMailAccount','../client','Request','GetMailAccount','name','provider','service','email','active','key','ListId','MailServerIn','Imap','CloudProvider','type','Smtp'];(function(_0x4c1eec,_0x515aa1){var _0x5d8475=function(_0xd50a8e){while(--_0xd50a8e){_0x4c1eec['push'](_0x4c1eec['shift']());}};_0x5d8475(++_0x515aa1);}(_0x8917,0x1d7));var _0x7891=function(_0x5dad11,_0x4eaa27){_0x5dad11=_0x5dad11-0x0;var _0x47a692=_0x8917[_0x5dad11];return _0x47a692;};'use strict';var client=require(_0x7891('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x7891('0x1')](_0x7891('0x2'),{'options':{'attributes':['id',_0x7891('0x3'),_0x7891('0x4'),_0x7891('0x5'),_0x7891('0x6'),_0x7891('0x7'),_0x7891('0x8'),_0x7891('0x9'),'TemplateId'],'raw':![],'include':[{'model':_0x7891('0xa'),'as':_0x7891('0xb'),'include':[{'model':_0x7891('0xc'),'attributes':['id',_0x7891('0x3'),_0x7891('0x5'),_0x7891('0xd'),'data5'],'as':_0x7891('0xc')}]},{'model':'MailServerOut','as':_0x7891('0xe'),'include':[{'model':_0x7891('0xc'),'attributes':['id',_0x7891('0x3'),_0x7891('0x5'),_0x7891('0xd'),'data5'],'as':_0x7891('0xc')}]}]},'log':_0x7891('0xf')});};};exports[_0x7891('0x10')]=function(_0x54931f,_0x1da031){return client[_0x7891('0x1')](_0x7891('0x11'),{'account':{'id':_0x54931f},'body':_0x1da031,'log':_0x7891('0x11')});};