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 _0x4279=['name','service','email','active','ListId','MailServerIn','Imap','Smtp','getMailAccount','notify','NotifyMailAccount','getMailAccounts','Request'];(function(_0x10a0f7,_0x1c288){var _0x156c68=function(_0x4bb856){while(--_0x4bb856){_0x10a0f7['push'](_0x10a0f7['shift']());}};_0x156c68(++_0x1c288);}(_0x4279,0x8d));var _0x9427=function(_0x4a053d,_0x3caae5){_0x4a053d=_0x4a053d-0x0;var _0x19107f=_0x4279[_0x4a053d];return _0x19107f;};'use strict';var client=require('../client');exports[_0x9427('0x0')]=function(){return function(){return client[_0x9427('0x1')]('GetMailAccount',{'options':{'attributes':['id',_0x9427('0x2'),_0x9427('0x3'),_0x9427('0x4'),_0x9427('0x5'),'key',_0x9427('0x6'),'TemplateId'],'raw':![],'include':[{'model':_0x9427('0x7'),'as':_0x9427('0x8')},{'model':'MailServerOut','as':_0x9427('0x9')}]},'log':_0x9427('0xa')});};};exports[_0x9427('0xb')]=function(_0x4d24f2,_0x322f34){return client['Request'](_0x9427('0xc'),{'account':{'id':_0x4d24f2},'body':_0x322f34,'log':'NotifyMailAccount'});};