Built motion from commit 7ab0e143.|2.5.49
[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 _0x8458=['getMailAccount','notify','NotifyMailAccount','../client','Request','GetMailAccount','name','provider','service','active','key','ListId','TemplateId','MailServerIn','CloudProvider','type','data5','MailServerOut','Smtp'];(function(_0x102977,_0x3a99a6){var _0x15c466=function(_0x1a6a12){while(--_0x1a6a12){_0x102977['push'](_0x102977['shift']());}};_0x15c466(++_0x3a99a6);}(_0x8458,0x1a5));var _0x8845=function(_0x541783,_0x3e5713){_0x541783=_0x541783-0x0;var _0x470325=_0x8458[_0x541783];return _0x470325;};'use strict';var client=require(_0x8845('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x8845('0x1')](_0x8845('0x2'),{'options':{'attributes':['id',_0x8845('0x3'),_0x8845('0x4'),_0x8845('0x5'),'email',_0x8845('0x6'),_0x8845('0x7'),_0x8845('0x8'),_0x8845('0x9')],'raw':![],'include':[{'model':_0x8845('0xa'),'as':'Imap','include':[{'model':_0x8845('0xb'),'attributes':['id','name',_0x8845('0x5'),_0x8845('0xc'),_0x8845('0xd')],'as':'CloudProvider'}]},{'model':_0x8845('0xe'),'as':_0x8845('0xf'),'include':[{'model':'CloudProvider','attributes':['id',_0x8845('0x3'),_0x8845('0x5'),'type',_0x8845('0xd')],'as':_0x8845('0xb')}]}]},'log':_0x8845('0x10')});};};exports[_0x8845('0x11')]=function(_0x1bacfd,_0x2191ad){return client[_0x8845('0x1')](_0x8845('0x12'),{'account':{'id':_0x1bacfd},'body':_0x2191ad,'log':_0x8845('0x12')});};