Built motion from commit (unavailable).|2.5.30
[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 _0x0309=['ListId','TemplateId','MailServerOut','Smtp','notify','NotifyMailAccount','../client','Request','name','service','email','active','key'];(function(_0x100813,_0x48dd17){var _0x24e631=function(_0x5c73b3){while(--_0x5c73b3){_0x100813['push'](_0x100813['shift']());}};_0x24e631(++_0x48dd17);}(_0x0309,0x165));var _0x9030=function(_0x369742,_0x2dcf63){_0x369742=_0x369742-0x0;var _0x56b8ad=_0x0309[_0x369742];return _0x56b8ad;};'use strict';var client=require(_0x9030('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x9030('0x1')]('GetMailAccount',{'options':{'attributes':['id',_0x9030('0x2'),_0x9030('0x3'),_0x9030('0x4'),_0x9030('0x5'),_0x9030('0x6'),_0x9030('0x7'),_0x9030('0x8')],'raw':![],'include':[{'model':'MailServerIn','as':'Imap'},{'model':_0x9030('0x9'),'as':_0x9030('0xa')}]},'log':'getMailAccount'});};};exports[_0x9030('0xb')]=function(_0x4e6c7b,_0x1e2360){return client[_0x9030('0x1')](_0x9030('0xc'),{'account':{'id':_0x4e6c7b},'body':_0x1e2360,'log':'NotifyMailAccount'});};