Built motion from commit (unavailable).|2.5.4
[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 _0xd2f5=['notify','NotifyMailAccount','../client','Request','name','email','active','key','ListId','TemplateId','MailServerIn','Imap','MailServerOut','getMailAccount'];(function(_0x22625e,_0xad55f5){var _0x5cdcd0=function(_0x2fc12a){while(--_0x2fc12a){_0x22625e['push'](_0x22625e['shift']());}};_0x5cdcd0(++_0xad55f5);}(_0xd2f5,0x144));var _0x5d2f=function(_0x4adc28,_0x194e4f){_0x4adc28=_0x4adc28-0x0;var _0x2d980b=_0xd2f5[_0x4adc28];return _0x2d980b;};'use strict';var client=require(_0x5d2f('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x5d2f('0x1')]('GetMailAccount',{'options':{'attributes':['id',_0x5d2f('0x2'),'service',_0x5d2f('0x3'),_0x5d2f('0x4'),_0x5d2f('0x5'),_0x5d2f('0x6'),_0x5d2f('0x7')],'raw':![],'include':[{'model':_0x5d2f('0x8'),'as':_0x5d2f('0x9')},{'model':_0x5d2f('0xa'),'as':'Smtp'}]},'log':_0x5d2f('0xb')});};};exports[_0x5d2f('0xc')]=function(_0x1c8c59,_0x1670ea){return client[_0x5d2f('0x1')](_0x5d2f('0xd'),{'account':{'id':_0x1c8c59},'body':_0x1670ea,'log':'NotifyMailAccount'});};