b28d1ab9c9405c4b03fd498d7db63faca23e0fe4
[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 _0x471a=['email','TemplateId','type','CloudProvider','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','name','provider','service'];(function(_0x538375,_0x365e8d){var _0x1c3531=function(_0x7dc57f){while(--_0x7dc57f){_0x538375['push'](_0x538375['shift']());}};_0x1c3531(++_0x365e8d);}(_0x471a,0x18d));var _0xa471=function(_0x2943e9,_0xec3163){_0x2943e9=_0x2943e9-0x0;var _0xf9dfeb=_0x471a[_0x2943e9];return _0xf9dfeb;};'use strict';var client=require(_0xa471('0x0'));exports[_0xa471('0x1')]=function(){return function(){return client[_0xa471('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0xa471('0x3'),_0xa471('0x4'),_0xa471('0x5'),_0xa471('0x6'),'active','key','ListId',_0xa471('0x7')],'raw':![],'include':[{'model':'MailServerIn','as':'Imap','include':[{'model':'CloudProvider','attributes':['id',_0xa471('0x3'),_0xa471('0x5'),_0xa471('0x8'),'data5'],'as':_0xa471('0x9')}]},{'model':'MailServerOut','as':'Smtp','include':[{'model':_0xa471('0x9'),'attributes':['id',_0xa471('0x3'),_0xa471('0x5'),_0xa471('0x8'),'data5'],'as':_0xa471('0x9')}]}]},'log':_0xa471('0xa')});};};exports[_0xa471('0xb')]=function(_0xbabe8f,_0x3640a0){return client[_0xa471('0x2')]('NotifyMailAccount',{'account':{'id':_0xbabe8f},'body':_0x3640a0,'log':_0xa471('0xc')});};