8687a72ebd73ffb251cc1dec88225f7751e302a4
[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 _0xdcde=['Request','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','service','ListId','TemplateId','MailServerIn','MailServerOut','Smtp','getMailAccount','notify'];(function(_0x30e7b5,_0x2102b6){var _0x44557e=function(_0x549c07){while(--_0x549c07){_0x30e7b5['push'](_0x30e7b5['shift']());}};_0x44557e(++_0x2102b6);}(_0xdcde,0x1d0));var _0xedcd=function(_0x572b6c,_0x123973){_0x572b6c=_0x572b6c-0x0;var _0xe0d4cd=_0xdcde[_0x572b6c];return _0xe0d4cd;};'use strict';var client=require(_0xedcd('0x0'));exports[_0xedcd('0x1')]=function(){return function(){return client['Request'](_0xedcd('0x2'),{'options':{'attributes':['id',_0xedcd('0x3'),_0xedcd('0x4'),'email','active','key',_0xedcd('0x5'),_0xedcd('0x6')],'raw':![],'include':[{'model':_0xedcd('0x7'),'as':'Imap'},{'model':_0xedcd('0x8'),'as':_0xedcd('0x9')}]},'log':_0xedcd('0xa')});};};exports[_0xedcd('0xb')]=function(_0x50a7df,_0x24e96a){return client[_0xedcd('0xc')](_0xedcd('0xd'),{'account':{'id':_0x50a7df},'body':_0x24e96a,'log':_0xedcd('0xd')});};