04ff00425e07cd280642b61e566015daa65a4252
[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 _0x524e=['Request','GetMailAccount','name','service','email','active','key','ListId','TemplateId','MailServerIn','MailServerOut','Smtp','getMailAccount','NotifyMailAccount'];(function(_0x43b487,_0x21893a){var _0x2f707a=function(_0x477ee0){while(--_0x477ee0){_0x43b487['push'](_0x43b487['shift']());}};_0x2f707a(++_0x21893a);}(_0x524e,0x15e));var _0xe524=function(_0x50fc3a,_0x54101c){_0x50fc3a=_0x50fc3a-0x0;var _0x1b80c6=_0x524e[_0x50fc3a];return _0x1b80c6;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0xe524('0x0')](_0xe524('0x1'),{'options':{'attributes':['id',_0xe524('0x2'),_0xe524('0x3'),_0xe524('0x4'),_0xe524('0x5'),_0xe524('0x6'),_0xe524('0x7'),_0xe524('0x8')],'raw':![],'include':[{'model':_0xe524('0x9'),'as':'Imap'},{'model':_0xe524('0xa'),'as':_0xe524('0xb')}]},'log':_0xe524('0xc')});};};exports['notify']=function(_0x384935,_0x3e4cda){return client[_0xe524('0x0')](_0xe524('0xd'),{'account':{'id':_0x384935},'body':_0x3e4cda,'log':_0xe524('0xd')});};