097deddec1423241ba2799e827aad8b426d2a6cb
[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 _0x8a9a=['type','data5','MailServerOut','getMailAccount','NotifyMailAccount','getMailAccounts','Request','GetMailAccount','name','provider','service','email','active','key','ListId','TemplateId','MailServerIn','CloudProvider'];(function(_0x45eacc,_0x3727a4){var _0x3f1252=function(_0x36b7f4){while(--_0x36b7f4){_0x45eacc['push'](_0x45eacc['shift']());}};_0x3f1252(++_0x3727a4);}(_0x8a9a,0x17f));var _0xa8a9=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0x8a9a[_0x167cc1];return _0x10bc4b;};'use strict';var client=require('../client');exports[_0xa8a9('0x0')]=function(){return function(){return client[_0xa8a9('0x1')](_0xa8a9('0x2'),{'options':{'attributes':['id',_0xa8a9('0x3'),_0xa8a9('0x4'),_0xa8a9('0x5'),_0xa8a9('0x6'),_0xa8a9('0x7'),_0xa8a9('0x8'),_0xa8a9('0x9'),_0xa8a9('0xa')],'raw':![],'include':[{'model':_0xa8a9('0xb'),'as':'Imap','include':[{'model':_0xa8a9('0xc'),'attributes':['id','name',_0xa8a9('0x5'),_0xa8a9('0xd'),_0xa8a9('0xe')],'as':_0xa8a9('0xc')}]},{'model':_0xa8a9('0xf'),'as':'Smtp','include':[{'model':_0xa8a9('0xc'),'attributes':['id',_0xa8a9('0x3'),'service',_0xa8a9('0xd'),'data5'],'as':_0xa8a9('0xc')}]}]},'log':_0xa8a9('0x10')});};};exports['notify']=function(_0x1bcdbd,_0x218037){return client[_0xa8a9('0x1')](_0xa8a9('0x11'),{'account':{'id':_0x1bcdbd},'body':_0x218037,'log':_0xa8a9('0x11')});};