Built motion from commit (unavailable).|2.3.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 _0xfcea=['GetMailAccount','name','service','email','active','key','ListId','MailServerIn','Imap','MailServerOut','getMailAccount','Request','NotifyMailAccount'];(function(_0x329781,_0x2538c1){var _0x142015=function(_0x106bd2){while(--_0x106bd2){_0x329781['push'](_0x329781['shift']());}};_0x142015(++_0x2538c1);}(_0xfcea,0x8f));var _0xafce=function(_0x1c59c2,_0x255ee6){_0x1c59c2=_0x1c59c2-0x0;var _0x5b0b9a=_0xfcea[_0x1c59c2];return _0x5b0b9a;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client['Request'](_0xafce('0x0'),{'options':{'attributes':['id',_0xafce('0x1'),_0xafce('0x2'),_0xafce('0x3'),_0xafce('0x4'),_0xafce('0x5'),_0xafce('0x6'),'TemplateId'],'raw':![],'include':[{'model':_0xafce('0x7'),'as':_0xafce('0x8')},{'model':_0xafce('0x9'),'as':'Smtp'}]},'log':_0xafce('0xa')});};};exports['notify']=function(_0x2f4bbf,_0x194d32){return client[_0xafce('0xb')](_0xafce('0xc'),{'account':{'id':_0x2f4bbf},'body':_0x194d32,'log':_0xafce('0xc')});};