7b010c8cafba0090b113b40a2e5bbc00cd78819b
[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 _0xcddb=['data5','Smtp','getMailAccount','NotifyMailAccount','../client','getMailAccounts','Request','provider','email','active','key','ListId','MailServerIn','CloudProvider','name','type'];(function(_0x3f5f3f,_0x42ef6e){var _0x281375=function(_0xa2bb4b){while(--_0xa2bb4b){_0x3f5f3f['push'](_0x3f5f3f['shift']());}};_0x281375(++_0x42ef6e);}(_0xcddb,0x1c4));var _0xbcdd=function(_0x16d2ae,_0x51822d){_0x16d2ae=_0x16d2ae-0x0;var _0x36be4b=_0xcddb[_0x16d2ae];return _0x36be4b;};'use strict';var client=require(_0xbcdd('0x0'));exports[_0xbcdd('0x1')]=function(){return function(){return client[_0xbcdd('0x2')]('GetMailAccount',{'options':{'attributes':['id','name',_0xbcdd('0x3'),'service',_0xbcdd('0x4'),_0xbcdd('0x5'),_0xbcdd('0x6'),_0xbcdd('0x7'),'TemplateId'],'raw':![],'include':[{'model':_0xbcdd('0x8'),'as':'Imap','include':[{'model':_0xbcdd('0x9'),'attributes':['id',_0xbcdd('0xa'),'service',_0xbcdd('0xb'),_0xbcdd('0xc')],'as':'CloudProvider'}]},{'model':'MailServerOut','as':_0xbcdd('0xd'),'include':[{'model':_0xbcdd('0x9'),'attributes':['id',_0xbcdd('0xa'),'service',_0xbcdd('0xb'),_0xbcdd('0xc')],'as':_0xbcdd('0x9')}]}]},'log':_0xbcdd('0xe')});};};exports['notify']=function(_0x322402,_0x18673c){return client['Request'](_0xbcdd('0xf'),{'account':{'id':_0x322402},'body':_0x18673c,'log':_0xbcdd('0xf')});};