Built motion from commit (unavailable).|2.5.22
[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 _0xa381=['MailServerOut','notify','Request','NotifyMailAccount','../client','getMailAccounts','name','service','email','key','ListId','TemplateId','MailServerIn'];(function(_0x24e364,_0x22c22c){var _0x3921b0=function(_0x4f15d9){while(--_0x4f15d9){_0x24e364['push'](_0x24e364['shift']());}};_0x3921b0(++_0x22c22c);}(_0xa381,0x79));var _0x1a38=function(_0x309f89,_0x4dcee4){_0x309f89=_0x309f89-0x0;var _0xbbbf35=_0xa381[_0x309f89];return _0xbbbf35;};'use strict';var client=require(_0x1a38('0x0'));exports[_0x1a38('0x1')]=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0x1a38('0x2'),_0x1a38('0x3'),_0x1a38('0x4'),'active',_0x1a38('0x5'),_0x1a38('0x6'),_0x1a38('0x7')],'raw':![],'include':[{'model':_0x1a38('0x8'),'as':'Imap'},{'model':_0x1a38('0x9'),'as':'Smtp'}]},'log':'getMailAccount'});};};exports[_0x1a38('0xa')]=function(_0x4df1db,_0x46e61d){return client[_0x1a38('0xb')](_0x1a38('0xc'),{'account':{'id':_0x4df1db},'body':_0x46e61d,'log':_0x1a38('0xc')});};