Built motion from commit (unavailable).|2.5.31
[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 _0xf435=['key','ListId','TemplateId','Imap','MailServerOut','Smtp','notify','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','name','service','active'];(function(_0x2a7610,_0x23d099){var _0x4edd1e=function(_0x283b62){while(--_0x283b62){_0x2a7610['push'](_0x2a7610['shift']());}};_0x4edd1e(++_0x23d099);}(_0xf435,0x174));var _0x5f43=function(_0x144382,_0x3410a3){_0x144382=_0x144382-0x0;var _0x585077=_0xf435[_0x144382];return _0x585077;};'use strict';var client=require('../client');exports[_0x5f43('0x0')]=function(){return function(){return client[_0x5f43('0x1')](_0x5f43('0x2'),{'options':{'attributes':['id',_0x5f43('0x3'),_0x5f43('0x4'),'email',_0x5f43('0x5'),_0x5f43('0x6'),_0x5f43('0x7'),_0x5f43('0x8')],'raw':![],'include':[{'model':'MailServerIn','as':_0x5f43('0x9')},{'model':_0x5f43('0xa'),'as':_0x5f43('0xb')}]},'log':'getMailAccount'});};};exports[_0x5f43('0xc')]=function(_0x2dc16e,_0x2a5620){return client[_0x5f43('0x1')](_0x5f43('0xd'),{'account':{'id':_0x2dc16e},'body':_0x2a5620,'log':_0x5f43('0xd')});};