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 _0x4cff=['ListId','TemplateId','MailServerIn','Imap','MailServerOut','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','service','email','key'];(function(_0x36d4bc,_0x37687f){var _0x4dc61d=function(_0x2b503a){while(--_0x2b503a){_0x36d4bc['push'](_0x36d4bc['shift']());}};_0x4dc61d(++_0x37687f);}(_0x4cff,0x14a));var _0xf4cf=function(_0xe09081,_0x35590a){_0xe09081=_0xe09081-0x0;var _0x43de7=_0x4cff[_0xe09081];return _0x43de7;};'use strict';var client=require(_0xf4cf('0x0'));exports[_0xf4cf('0x1')]=function(){return function(){return client['Request'](_0xf4cf('0x2'),{'options':{'attributes':['id','name',_0xf4cf('0x3'),_0xf4cf('0x4'),'active',_0xf4cf('0x5'),_0xf4cf('0x6'),_0xf4cf('0x7')],'raw':![],'include':[{'model':_0xf4cf('0x8'),'as':_0xf4cf('0x9')},{'model':_0xf4cf('0xa'),'as':'Smtp'}]},'log':_0xf4cf('0xb')});};};exports[_0xf4cf('0xc')]=function(_0x1f06c6,_0x3882b2){return client['Request'](_0xf4cf('0xd'),{'account':{'id':_0x1f06c6},'body':_0x3882b2,'log':_0xf4cf('0xd')});};