4a1ffd5c09e730bb6a976f6162e47d8c9560dc20
[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 _0xa412=['data5','MailServerOut','Smtp','type','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','active','key','TemplateId','MailServerIn','CloudProvider'];(function(_0x337dcc,_0x35de56){var _0x5a54b4=function(_0x198c6a){while(--_0x198c6a){_0x337dcc['push'](_0x337dcc['shift']());}};_0x5a54b4(++_0x35de56);}(_0xa412,0x127));var _0x2a41=function(_0x367697,_0x12e11c){_0x367697=_0x367697-0x0;var _0x5b8148=_0xa412[_0x367697];return _0x5b8148;};'use strict';var client=require(_0x2a41('0x0'));exports[_0x2a41('0x1')]=function(){return function(){return client[_0x2a41('0x2')](_0x2a41('0x3'),{'options':{'attributes':['id',_0x2a41('0x4'),'provider',_0x2a41('0x5'),'email',_0x2a41('0x6'),_0x2a41('0x7'),'ListId',_0x2a41('0x8')],'raw':![],'include':[{'model':_0x2a41('0x9'),'as':'Imap','include':[{'model':_0x2a41('0xa'),'attributes':['id',_0x2a41('0x4'),_0x2a41('0x5'),'type',_0x2a41('0xb')],'as':_0x2a41('0xa')}]},{'model':_0x2a41('0xc'),'as':_0x2a41('0xd'),'include':[{'model':_0x2a41('0xa'),'attributes':['id',_0x2a41('0x4'),_0x2a41('0x5'),_0x2a41('0xe'),_0x2a41('0xb')],'as':_0x2a41('0xa')}]}]},'log':'getMailAccount'});};};exports[_0x2a41('0xf')]=function(_0xac36e3,_0x33131d){return client[_0x2a41('0x2')](_0x2a41('0x10'),{'account':{'id':_0xac36e3},'body':_0x33131d,'log':'NotifyMailAccount'});};