a057291f493bfed6679661a578107f57f03501a4
[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 _0x6df0=['key','ListId','TemplateId','CloudProvider','service','type','data5','MailServerOut','Smtp','../client','getMailAccounts','Request','GetMailAccount','name','provider','email','active'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x6df0,0x15d));var _0x06df=function(_0x50007c,_0x1cbf11){_0x50007c=_0x50007c-0x0;var _0x5c1ec7=_0x6df0[_0x50007c];return _0x5c1ec7;};'use strict';var client=require(_0x06df('0x0'));exports[_0x06df('0x1')]=function(){return function(){return client[_0x06df('0x2')](_0x06df('0x3'),{'options':{'attributes':['id',_0x06df('0x4'),_0x06df('0x5'),'service',_0x06df('0x6'),_0x06df('0x7'),_0x06df('0x8'),_0x06df('0x9'),_0x06df('0xa')],'raw':![],'include':[{'model':'MailServerIn','as':'Imap','include':[{'model':_0x06df('0xb'),'attributes':['id',_0x06df('0x4'),_0x06df('0xc'),_0x06df('0xd'),_0x06df('0xe')],'as':_0x06df('0xb')}]},{'model':_0x06df('0xf'),'as':_0x06df('0x10'),'include':[{'model':_0x06df('0xb'),'attributes':['id','name',_0x06df('0xc'),'type',_0x06df('0xe')],'as':'CloudProvider'}]}]},'log':'getMailAccount'});};};exports['notify']=function(_0x1f7afa,_0x1b722d){return client['Request']('NotifyMailAccount',{'account':{'id':_0x1f7afa},'body':_0x1b722d,'log':'NotifyMailAccount'});};