Built motion from commit (unavailable).|2.5.14
[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 _0x8e20=['name','service','active','key','ListId','TemplateId','MailServerIn','MailServerOut','Smtp','notify','NotifyMailAccount','../client','getMailAccounts','Request'];(function(_0x2c1524,_0x311a60){var _0x4ddd51=function(_0x2f7fa5){while(--_0x2f7fa5){_0x2c1524['push'](_0x2c1524['shift']());}};_0x4ddd51(++_0x311a60);}(_0x8e20,0x1af));var _0x08e2=function(_0x4854d6,_0x2f1264){_0x4854d6=_0x4854d6-0x0;var _0x3885c0=_0x8e20[_0x4854d6];return _0x3885c0;};'use strict';var client=require(_0x08e2('0x0'));exports[_0x08e2('0x1')]=function(){return function(){return client[_0x08e2('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x08e2('0x3'),_0x08e2('0x4'),'email',_0x08e2('0x5'),_0x08e2('0x6'),_0x08e2('0x7'),_0x08e2('0x8')],'raw':![],'include':[{'model':_0x08e2('0x9'),'as':'Imap'},{'model':_0x08e2('0xa'),'as':_0x08e2('0xb')}]},'log':'getMailAccount'});};};exports[_0x08e2('0xc')]=function(_0x38a4f4,_0x31d86b){return client[_0x08e2('0x2')](_0x08e2('0xd'),{'account':{'id':_0x38a4f4},'body':_0x31d86b,'log':_0x08e2('0xd')});};