Built motion from commit (unavailable).|2.5.8
[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 _0x3f1c=['getMailAccount','notify','Request','NotifyMailAccount','../client','GetMailAccount','email','active','key','ListId','TemplateId','Imap','Smtp'];(function(_0x3971df,_0x18821c){var _0x2c4cfe=function(_0x3fc052){while(--_0x3fc052){_0x3971df['push'](_0x3971df['shift']());}};_0x2c4cfe(++_0x18821c);}(_0x3f1c,0xd4));var _0xc3f1=function(_0x1e5e07,_0x16d8aa){_0x1e5e07=_0x1e5e07-0x0;var _0x3e9b97=_0x3f1c[_0x1e5e07];return _0x3e9b97;};'use strict';var client=require(_0xc3f1('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request'](_0xc3f1('0x1'),{'options':{'attributes':['id','name','service',_0xc3f1('0x2'),_0xc3f1('0x3'),_0xc3f1('0x4'),_0xc3f1('0x5'),_0xc3f1('0x6')],'raw':![],'include':[{'model':'MailServerIn','as':_0xc3f1('0x7')},{'model':'MailServerOut','as':_0xc3f1('0x8')}]},'log':_0xc3f1('0x9')});};};exports[_0xc3f1('0xa')]=function(_0x5e4bfe,_0x58e9a9){return client[_0xc3f1('0xb')]('NotifyMailAccount',{'account':{'id':_0x5e4bfe},'body':_0x58e9a9,'log':_0xc3f1('0xc')});};