5ecb079607eb196be7ac0fb674c06b4c1d88b559
[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 _0xf954=['data5','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','service','key','ListId','TemplateId','MailServerIn','CloudProvider','type','MailServerOut','Smtp'];(function(_0x410de0,_0x1075f8){var _0x23d4df=function(_0x3426ea){while(--_0x3426ea){_0x410de0['push'](_0x410de0['shift']());}};_0x23d4df(++_0x1075f8);}(_0xf954,0x10e));var _0x4f95=function(_0x2489f6,_0x299706){_0x2489f6=_0x2489f6-0x0;var _0x1cf056=_0xf954[_0x2489f6];return _0x1cf056;};'use strict';var client=require(_0x4f95('0x0'));exports[_0x4f95('0x1')]=function(){return function(){return client[_0x4f95('0x2')](_0x4f95('0x3'),{'options':{'attributes':['id',_0x4f95('0x4'),_0x4f95('0x5'),_0x4f95('0x6'),'email','active',_0x4f95('0x7'),_0x4f95('0x8'),_0x4f95('0x9')],'raw':![],'include':[{'model':_0x4f95('0xa'),'as':'Imap','include':[{'model':_0x4f95('0xb'),'attributes':['id',_0x4f95('0x4'),_0x4f95('0x6'),_0x4f95('0xc'),'data5'],'as':'CloudProvider'}]},{'model':_0x4f95('0xd'),'as':_0x4f95('0xe'),'include':[{'model':_0x4f95('0xb'),'attributes':['id','name','service','type',_0x4f95('0xf')],'as':_0x4f95('0xb')}]}]},'log':_0x4f95('0x10')});};};exports[_0x4f95('0x11')]=function(_0x5e73ae,_0x16f9c0){return client[_0x4f95('0x2')](_0x4f95('0x12'),{'account':{'id':_0x5e73ae},'body':_0x16f9c0,'log':_0x4f95('0x12')});};