Built motion from commit (unavailable).|2.5.14
[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 _0x0be3=['Request','GetMailAccount','name','email','key','ListId','TemplateId','MailServerOut','Smtp','notify','NotifyMailAccount'];(function(_0x278015,_0x17f7e5){var _0x25affb=function(_0x159422){while(--_0x159422){_0x278015['push'](_0x278015['shift']());}};_0x25affb(++_0x17f7e5);}(_0x0be3,0x9a));var _0x30be=function(_0x4f522f,_0x4ac9e0){_0x4f522f=_0x4f522f-0x0;var _0x5701b3=_0x0be3[_0x4f522f];return _0x5701b3;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x30be('0x0')](_0x30be('0x1'),{'options':{'attributes':['id',_0x30be('0x2'),'service',_0x30be('0x3'),'active',_0x30be('0x4'),_0x30be('0x5'),_0x30be('0x6')],'raw':![],'include':[{'model':'MailServerIn','as':'Imap'},{'model':_0x30be('0x7'),'as':_0x30be('0x8')}]},'log':'getMailAccount'});};};exports[_0x30be('0x9')]=function(_0x4207d3,_0x403e5c){return client['Request'](_0x30be('0xa'),{'account':{'id':_0x4207d3},'body':_0x403e5c,'log':_0x30be('0xa')});};