64f79bfb6f32e263037d1d7b1fefc38fbb8d0399
[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 _0xff6f=['data5','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','email','active','key','TemplateId','Imap','CloudProvider','service','type'];(function(_0x1b7368,_0x3286ed){var _0x25d54c=function(_0x2366da){while(--_0x2366da){_0x1b7368['push'](_0x1b7368['shift']());}};_0x25d54c(++_0x3286ed);}(_0xff6f,0x11e));var _0xfff6=function(_0x475ace,_0x42d817){_0x475ace=_0x475ace-0x0;var _0xaa85a5=_0xff6f[_0x475ace];return _0xaa85a5;};'use strict';var client=require(_0xfff6('0x0'));exports[_0xfff6('0x1')]=function(){return function(){return client[_0xfff6('0x2')](_0xfff6('0x3'),{'options':{'attributes':['id',_0xfff6('0x4'),_0xfff6('0x5'),'service',_0xfff6('0x6'),_0xfff6('0x7'),_0xfff6('0x8'),'ListId',_0xfff6('0x9')],'raw':![],'include':[{'model':'MailServerIn','as':_0xfff6('0xa'),'include':[{'model':_0xfff6('0xb'),'attributes':['id',_0xfff6('0x4'),_0xfff6('0xc'),_0xfff6('0xd'),_0xfff6('0xe')],'as':_0xfff6('0xb')}]},{'model':_0xfff6('0xf'),'as':_0xfff6('0x10'),'include':[{'model':_0xfff6('0xb'),'attributes':['id','name',_0xfff6('0xc'),_0xfff6('0xd'),_0xfff6('0xe')],'as':_0xfff6('0xb')}]}]},'log':_0xfff6('0x11')});};};exports[_0xfff6('0x12')]=function(_0x2afa0,_0x13df9b){return client['Request'](_0xfff6('0x13'),{'account':{'id':_0x2afa0},'body':_0x13df9b,'log':_0xfff6('0x13')});};