53f59a7c6062e60e14aa5d5733d5f1fa25c9622f
[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 _0x3c03=['Imap','CloudProvider','type','data5','MailServerOut','Smtp','notify','NotifyMailAccount','../client','name','provider','service','email','key','ListId','TemplateId','MailServerIn'];(function(_0x3cfb73,_0x5f0bc9){var _0x50419a=function(_0x5ab716){while(--_0x5ab716){_0x3cfb73['push'](_0x3cfb73['shift']());}};_0x50419a(++_0x5f0bc9);}(_0x3c03,0x16d));var _0x33c0=function(_0x39c734,_0x2f3e06){_0x39c734=_0x39c734-0x0;var _0xb2a2f9=_0x3c03[_0x39c734];return _0xb2a2f9;};'use strict';var client=require(_0x33c0('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0x33c0('0x1'),_0x33c0('0x2'),_0x33c0('0x3'),_0x33c0('0x4'),'active',_0x33c0('0x5'),_0x33c0('0x6'),_0x33c0('0x7')],'raw':![],'include':[{'model':_0x33c0('0x8'),'as':_0x33c0('0x9'),'include':[{'model':_0x33c0('0xa'),'attributes':['id',_0x33c0('0x1'),'service',_0x33c0('0xb'),_0x33c0('0xc')],'as':'CloudProvider'}]},{'model':_0x33c0('0xd'),'as':_0x33c0('0xe'),'include':[{'model':'CloudProvider','attributes':['id',_0x33c0('0x1'),_0x33c0('0x3'),_0x33c0('0xb'),_0x33c0('0xc')],'as':'CloudProvider'}]}]},'log':'getMailAccount'});};};exports[_0x33c0('0xf')]=function(_0x71eac3,_0x5f37ac){return client['Request']('NotifyMailAccount',{'account':{'id':_0x71eac3},'body':_0x5f37ac,'log':_0x33c0('0x10')});};