bc9476a3b60c6fb2d2815d9124223c7e7bac145b
[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 _0x2d2c=['TemplateId','MailServerIn','Imap','service','type','data5','CloudProvider','MailServerOut','Smtp','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','email','key','ListId'];(function(_0x5512d4,_0x1cdf72){var _0x107ea9=function(_0x2478da){while(--_0x2478da){_0x5512d4['push'](_0x5512d4['shift']());}};_0x107ea9(++_0x1cdf72);}(_0x2d2c,0x1d7));var _0xc2d2=function(_0x4c4042,_0x1ea485){_0x4c4042=_0x4c4042-0x0;var _0xbd10dc=_0x2d2c[_0x4c4042];return _0xbd10dc;};'use strict';var client=require(_0xc2d2('0x0'));exports[_0xc2d2('0x1')]=function(){return function(){return client[_0xc2d2('0x2')](_0xc2d2('0x3'),{'options':{'attributes':['id',_0xc2d2('0x4'),_0xc2d2('0x5'),'service',_0xc2d2('0x6'),'active',_0xc2d2('0x7'),_0xc2d2('0x8'),_0xc2d2('0x9')],'raw':![],'include':[{'model':_0xc2d2('0xa'),'as':_0xc2d2('0xb'),'include':[{'model':'CloudProvider','attributes':['id','name',_0xc2d2('0xc'),_0xc2d2('0xd'),_0xc2d2('0xe')],'as':_0xc2d2('0xf')}]},{'model':_0xc2d2('0x10'),'as':_0xc2d2('0x11'),'include':[{'model':_0xc2d2('0xf'),'attributes':['id',_0xc2d2('0x4'),_0xc2d2('0xc'),_0xc2d2('0xd'),_0xc2d2('0xe')],'as':_0xc2d2('0xf')}]}]},'log':'getMailAccount'});};};exports[_0xc2d2('0x12')]=function(_0x13a247,_0x1e0cbc){return client['Request'](_0xc2d2('0x13'),{'account':{'id':_0x13a247},'body':_0x1e0cbc,'log':_0xc2d2('0x13')});};