b1d0b5a975e21b4a349ab10c7d0d56f5968f5720
[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 _0x9b2c=['NotifyMailAccount','getMailAccounts','Request','name','email','key','ListId','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','notify'];(function(_0x3e6b2f,_0x1ffa07){var _0x323215=function(_0x5c4d82){while(--_0x5c4d82){_0x3e6b2f['push'](_0x3e6b2f['shift']());}};_0x323215(++_0x1ffa07);}(_0x9b2c,0x189));var _0xc9b2=function(_0x369534,_0x5557c4){_0x369534=_0x369534-0x0;var _0x524bf9=_0x9b2c[_0x369534];return _0x524bf9;};'use strict';var client=require('../client');exports[_0xc9b2('0x0')]=function(){return function(){return client[_0xc9b2('0x1')]('GetMailAccount',{'options':{'attributes':['id',_0xc9b2('0x2'),'service',_0xc9b2('0x3'),'active',_0xc9b2('0x4'),_0xc9b2('0x5'),_0xc9b2('0x6')],'raw':![],'include':[{'model':_0xc9b2('0x7'),'as':_0xc9b2('0x8')},{'model':_0xc9b2('0x9'),'as':_0xc9b2('0xa')}]},'log':_0xc9b2('0xb')});};};exports[_0xc9b2('0xc')]=function(_0x224ce6,_0xffd429){return client['Request'](_0xc9b2('0xd'),{'account':{'id':_0x224ce6},'body':_0xffd429,'log':'NotifyMailAccount'});};