f6206a5f098124345d18a7102a22863dcc789469
[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 _0xc9b9=['getMailAccount','notify','NotifyMailAccount','Request','GetMailAccount','name','ListId','MailServerOut','Smtp'];(function(_0x9d8797,_0x2fcc05){var _0x5a450e=function(_0x2881e9){while(--_0x2881e9){_0x9d8797['push'](_0x9d8797['shift']());}};_0x5a450e(++_0x2fcc05);}(_0xc9b9,0x18f));var _0x9c9b=function(_0x1e381c,_0x47b5b9){_0x1e381c=_0x1e381c-0x0;var _0x9b5ea9=_0xc9b9[_0x1e381c];return _0x9b5ea9;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x9c9b('0x0')](_0x9c9b('0x1'),{'options':{'attributes':['id',_0x9c9b('0x2'),'service','email','active','key',_0x9c9b('0x3'),'TemplateId'],'raw':![],'include':[{'model':'MailServerIn','as':'Imap'},{'model':_0x9c9b('0x4'),'as':_0x9c9b('0x5')}]},'log':_0x9c9b('0x6')});};};exports[_0x9c9b('0x7')]=function(_0xbbd998,_0x5e0081){return client[_0x9c9b('0x0')](_0x9c9b('0x8'),{'account':{'id':_0xbbd998},'body':_0x5e0081,'log':_0x9c9b('0x8')});};