Built motion from commit (unavailable).|2.6.0
[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 _0xc962=['getMailAccount','notify','Request','NotifyMailAccount','../client','name','service','email','active','key','ListId','TemplateId','MailServerIn','MailServerOut','Smtp'];(function(_0x95999,_0x3a6d0f){var _0x1f9f4e=function(_0x55b13a){while(--_0x55b13a){_0x95999['push'](_0x95999['shift']());}};_0x1f9f4e(++_0x3a6d0f);}(_0xc962,0x6d));var _0x2c96=function(_0x186026,_0x3225c3){_0x186026=_0x186026-0x0;var _0x394211=_0xc962[_0x186026];return _0x394211;};'use strict';var client=require(_0x2c96('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0x2c96('0x1'),_0x2c96('0x2'),_0x2c96('0x3'),_0x2c96('0x4'),_0x2c96('0x5'),_0x2c96('0x6'),_0x2c96('0x7')],'raw':![],'include':[{'model':_0x2c96('0x8'),'as':'Imap'},{'model':_0x2c96('0x9'),'as':_0x2c96('0xa')}]},'log':_0x2c96('0xb')});};};exports[_0x2c96('0xc')]=function(_0x13aee2,_0x36dd95){return client[_0x2c96('0xd')](_0x2c96('0xe'),{'account':{'id':_0x13aee2},'body':_0x36dd95,'log':_0x2c96('0xe')});};