a83c582f07efbb07a7b4b32232a3b9dc3408ce53
[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 _0x975f=['getMailAccount','../client','Request','GetMailAccount','name','provider','service','email','key','ListId','MailServerIn','Imap','CloudProvider','type','Smtp','data5'];(function(_0x41f69d,_0xde8d57){var _0x1b163b=function(_0x532f7e){while(--_0x532f7e){_0x41f69d['push'](_0x41f69d['shift']());}};_0x1b163b(++_0xde8d57);}(_0x975f,0x191));var _0xf975=function(_0x20cb20,_0x256051){_0x20cb20=_0x20cb20-0x0;var _0x2fcf4b=_0x975f[_0x20cb20];return _0x2fcf4b;};'use strict';var client=require(_0xf975('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0xf975('0x1')](_0xf975('0x2'),{'options':{'attributes':['id',_0xf975('0x3'),_0xf975('0x4'),_0xf975('0x5'),_0xf975('0x6'),'active',_0xf975('0x7'),_0xf975('0x8'),'TemplateId'],'raw':![],'include':[{'model':_0xf975('0x9'),'as':_0xf975('0xa'),'include':[{'model':_0xf975('0xb'),'attributes':['id',_0xf975('0x3'),_0xf975('0x5'),_0xf975('0xc'),'data5'],'as':_0xf975('0xb')}]},{'model':'MailServerOut','as':_0xf975('0xd'),'include':[{'model':'CloudProvider','attributes':['id',_0xf975('0x3'),_0xf975('0x5'),'type',_0xf975('0xe')],'as':_0xf975('0xb')}]}]},'log':_0xf975('0xf')});};};exports['notify']=function(_0x4f220a,_0x1c93d0){return client[_0xf975('0x1')]('NotifyMailAccount',{'account':{'id':_0x4f220a},'body':_0x1c93d0,'log':'NotifyMailAccount'});};