e0dfec849753fcde5d602e60e12dd9672df225a5
[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 _0xe49a=['MailServerIn','MailServerOut','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','name','service','email','active','ListId','TemplateId'];(function(_0x543084,_0x4337f5){var _0x306a57=function(_0x2769ed){while(--_0x2769ed){_0x543084['push'](_0x543084['shift']());}};_0x306a57(++_0x4337f5);}(_0xe49a,0xd7));var _0xae49=function(_0x4f91cf,_0x543cea){_0x4f91cf=_0x4f91cf-0x0;var _0x531468=_0xe49a[_0x4f91cf];return _0x531468;};'use strict';var client=require('../client');exports[_0xae49('0x0')]=function(){return function(){return client[_0xae49('0x1')](_0xae49('0x2'),{'options':{'attributes':['id',_0xae49('0x3'),_0xae49('0x4'),_0xae49('0x5'),_0xae49('0x6'),'key',_0xae49('0x7'),_0xae49('0x8')],'raw':![],'include':[{'model':_0xae49('0x9'),'as':'Imap'},{'model':_0xae49('0xa'),'as':'Smtp'}]},'log':_0xae49('0xb')});};};exports[_0xae49('0xc')]=function(_0x4480bf,_0x476f2a){return client[_0xae49('0x1')](_0xae49('0xd'),{'account':{'id':_0x4480bf},'body':_0x476f2a,'log':_0xae49('0xd')});};