951252b4c36d8af2b00b26bba8e093bd70980b51
[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 _0x304b=['service','email','active','key','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','name'];(function(_0x4724c4,_0x1c2ac4){var _0x4a655f=function(_0x3bb91d){while(--_0x3bb91d){_0x4724c4['push'](_0x4724c4['shift']());}};_0x4a655f(++_0x1c2ac4);}(_0x304b,0xfb));var _0xb304=function(_0x31dddf,_0x593b9a){_0x31dddf=_0x31dddf-0x0;var _0x1c8105=_0x304b[_0x31dddf];return _0x1c8105;};'use strict';var client=require('../client');exports[_0xb304('0x0')]=function(){return function(){return client[_0xb304('0x1')](_0xb304('0x2'),{'options':{'attributes':['id',_0xb304('0x3'),_0xb304('0x4'),_0xb304('0x5'),_0xb304('0x6'),_0xb304('0x7'),'ListId','TemplateId'],'raw':![],'include':[{'model':_0xb304('0x8'),'as':_0xb304('0x9')},{'model':_0xb304('0xa'),'as':_0xb304('0xb')}]},'log':_0xb304('0xc')});};};exports[_0xb304('0xd')]=function(_0x1ce82e,_0x329901){return client[_0xb304('0x1')]('NotifyMailAccount',{'account':{'id':_0x1ce82e},'body':_0x329901,'log':_0xb304('0xe')});};