3bd3b71163bb9316328a6c114119809645bf090b
[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 _0xe6e9=['service','email','active','key','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','notify','NotifyMailAccount','../client','getMailAccounts','Request','name'];(function(_0x25eb20,_0x53c26e){var _0x1e53e1=function(_0x4e9fc6){while(--_0x4e9fc6){_0x25eb20['push'](_0x25eb20['shift']());}};_0x1e53e1(++_0x53c26e);}(_0xe6e9,0x182));var _0x9e6e=function(_0x3e6f4c,_0x672df6){_0x3e6f4c=_0x3e6f4c-0x0;var _0x4ac4a1=_0xe6e9[_0x3e6f4c];return _0x4ac4a1;};'use strict';var client=require(_0x9e6e('0x0'));exports[_0x9e6e('0x1')]=function(){return function(){return client[_0x9e6e('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x9e6e('0x3'),_0x9e6e('0x4'),_0x9e6e('0x5'),_0x9e6e('0x6'),_0x9e6e('0x7'),'ListId',_0x9e6e('0x8')],'raw':![],'include':[{'model':_0x9e6e('0x9'),'as':_0x9e6e('0xa')},{'model':_0x9e6e('0xb'),'as':_0x9e6e('0xc')}]},'log':'getMailAccount'});};};exports[_0x9e6e('0xd')]=function(_0x2bf742,_0x2b8c88){return client[_0x9e6e('0x2')](_0x9e6e('0xe'),{'account':{'id':_0x2bf742},'body':_0x2b8c88,'log':_0x9e6e('0xe')});};