Built motion from commit 8356fca3.|2.6.19
[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 _0x1419=['service','type','data5','MailServerOut','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','email','active','TemplateId','MailServerIn','Imap','CloudProvider'];(function(_0x4e90da,_0x15a81f){var _0x5279e4=function(_0x4c0b5a){while(--_0x4c0b5a){_0x4e90da['push'](_0x4e90da['shift']());}};_0x5279e4(++_0x15a81f);}(_0x1419,0x127));var _0x9141=function(_0x5080cb,_0x24f94e){_0x5080cb=_0x5080cb-0x0;var _0x15dbc2=_0x1419[_0x5080cb];return _0x15dbc2;};'use strict';var client=require(_0x9141('0x0'));exports[_0x9141('0x1')]=function(){return function(){return client[_0x9141('0x2')](_0x9141('0x3'),{'options':{'attributes':['id',_0x9141('0x4'),'provider','service',_0x9141('0x5'),_0x9141('0x6'),'key','ListId',_0x9141('0x7')],'raw':![],'include':[{'model':_0x9141('0x8'),'as':_0x9141('0x9'),'include':[{'model':_0x9141('0xa'),'attributes':['id',_0x9141('0x4'),_0x9141('0xb'),_0x9141('0xc'),_0x9141('0xd')],'as':_0x9141('0xa')}]},{'model':_0x9141('0xe'),'as':'Smtp','include':[{'model':_0x9141('0xa'),'attributes':['id',_0x9141('0x4'),_0x9141('0xb'),_0x9141('0xc'),_0x9141('0xd')],'as':_0x9141('0xa')}]}]},'log':_0x9141('0xf')});};};exports[_0x9141('0x10')]=function(_0x4495ad,_0xeea0f5){return client['Request'](_0x9141('0x11'),{'account':{'id':_0x4495ad},'body':_0xeea0f5,'log':_0x9141('0x11')});};