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 _0x4c60=['Request','GetMailAccount','service','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts'];(function(_0x4af484,_0x57505e){var _0xe70a87=function(_0x206ba7){while(--_0x206ba7){_0x4af484['push'](_0x4af484['shift']());}};_0xe70a87(++_0x57505e);}(_0x4c60,0xc1));var _0x04c6=function(_0x1386e9,_0xf46161){_0x1386e9=_0x1386e9-0x0;var _0x2ae9f7=_0x4c60[_0x1386e9];return _0x2ae9f7;};'use strict';var client=require(_0x04c6('0x0'));exports[_0x04c6('0x1')]=function(){return function(){return client[_0x04c6('0x2')](_0x04c6('0x3'),{'options':{'attributes':['id','name',_0x04c6('0x4'),'email','active','key','ListId',_0x04c6('0x5')],'raw':![],'include':[{'model':_0x04c6('0x6'),'as':_0x04c6('0x7')},{'model':_0x04c6('0x8'),'as':_0x04c6('0x9')}]},'log':_0x04c6('0xa')});};};exports[_0x04c6('0xb')]=function(_0x530a48,_0x2a4b51){return client[_0x04c6('0x2')](_0x04c6('0xc'),{'account':{'id':_0x530a48},'body':_0x2a4b51,'log':_0x04c6('0xc')});};