50d0018a9c99edf320b50f8292c65f393ae4c553
[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 _0x65f9=['key','ListId','TemplateId','MailServerIn','Imap','CloudProvider','name','type','MailServerOut','Smtp','data5','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','service','email','active'];(function(_0x2d6f1e,_0x112d0f){var _0x6454e9=function(_0x263d63){while(--_0x263d63){_0x2d6f1e['push'](_0x2d6f1e['shift']());}};_0x6454e9(++_0x112d0f);}(_0x65f9,0x19d));var _0x965f=function(_0x34d1fc,_0x188455){_0x34d1fc=_0x34d1fc-0x0;var _0x2226b9=_0x65f9[_0x34d1fc];return _0x2226b9;};'use strict';var client=require(_0x965f('0x0'));exports[_0x965f('0x1')]=function(){return function(){return client[_0x965f('0x2')](_0x965f('0x3'),{'options':{'attributes':['id','name','provider',_0x965f('0x4'),_0x965f('0x5'),_0x965f('0x6'),_0x965f('0x7'),_0x965f('0x8'),_0x965f('0x9')],'raw':![],'include':[{'model':_0x965f('0xa'),'as':_0x965f('0xb'),'include':[{'model':_0x965f('0xc'),'attributes':['id',_0x965f('0xd'),_0x965f('0x4'),_0x965f('0xe'),'data5'],'as':_0x965f('0xc')}]},{'model':_0x965f('0xf'),'as':_0x965f('0x10'),'include':[{'model':_0x965f('0xc'),'attributes':['id','name',_0x965f('0x4'),_0x965f('0xe'),_0x965f('0x11')],'as':_0x965f('0xc')}]}]},'log':_0x965f('0x12')});};};exports[_0x965f('0x13')]=function(_0x118313,_0x3af983){return client[_0x965f('0x2')](_0x965f('0x14'),{'account':{'id':_0x118313},'body':_0x3af983,'log':_0x965f('0x14')});};