954f648f9397227e510ed2b81031daf85bda7b40
[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 _0x90ec=['notify','Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','service','email','active','ListId','TemplateId','MailServerIn','MailServerOut','getMailAccount'];(function(_0x42245d,_0x51758f){var _0x4b211a=function(_0x2634e){while(--_0x2634e){_0x42245d['push'](_0x42245d['shift']());}};_0x4b211a(++_0x51758f);}(_0x90ec,0x1d4));var _0xc90e=function(_0x496d7f,_0xe63e95){_0x496d7f=_0x496d7f-0x0;var _0x7a10df=_0x90ec[_0x496d7f];return _0x7a10df;};'use strict';var client=require(_0xc90e('0x0'));exports[_0xc90e('0x1')]=function(){return function(){return client['Request'](_0xc90e('0x2'),{'options':{'attributes':['id',_0xc90e('0x3'),_0xc90e('0x4'),_0xc90e('0x5'),_0xc90e('0x6'),'key',_0xc90e('0x7'),_0xc90e('0x8')],'raw':![],'include':[{'model':_0xc90e('0x9'),'as':'Imap'},{'model':_0xc90e('0xa'),'as':'Smtp'}]},'log':_0xc90e('0xb')});};};exports[_0xc90e('0xc')]=function(_0x48253c,_0x3bc98f){return client[_0xc90e('0xd')](_0xc90e('0xe'),{'account':{'id':_0x48253c},'body':_0x3bc98f,'log':_0xc90e('0xe')});};