811873f0d12250013734c456e4d46c97e1dc5af5
[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 _0xadb5=['notify','NotifyMailAccount','getMailAccounts','GetMailAccount','name','provider','email','active','key','TemplateId','MailServerIn','Imap','CloudProvider','service','type','data5','MailServerOut','Smtp','getMailAccount'];(function(_0xcf7a26,_0x9d9464){var _0x301fc0=function(_0x5b610e){while(--_0x5b610e){_0xcf7a26['push'](_0xcf7a26['shift']());}};_0x301fc0(++_0x9d9464);}(_0xadb5,0xad));var _0x5adb=function(_0x5bc2ee,_0x14017b){_0x5bc2ee=_0x5bc2ee-0x0;var _0x112fdd=_0xadb5[_0x5bc2ee];return _0x112fdd;};'use strict';var client=require('../client');exports[_0x5adb('0x0')]=function(){return function(){return client['Request'](_0x5adb('0x1'),{'options':{'attributes':['id',_0x5adb('0x2'),_0x5adb('0x3'),'service',_0x5adb('0x4'),_0x5adb('0x5'),_0x5adb('0x6'),'ListId',_0x5adb('0x7')],'raw':![],'include':[{'model':_0x5adb('0x8'),'as':_0x5adb('0x9'),'include':[{'model':_0x5adb('0xa'),'attributes':['id',_0x5adb('0x2'),_0x5adb('0xb'),_0x5adb('0xc'),_0x5adb('0xd')],'as':_0x5adb('0xa')}]},{'model':_0x5adb('0xe'),'as':_0x5adb('0xf'),'include':[{'model':_0x5adb('0xa'),'attributes':['id',_0x5adb('0x2'),_0x5adb('0xb'),'type','data5'],'as':_0x5adb('0xa')}]}]},'log':_0x5adb('0x10')});};};exports[_0x5adb('0x11')]=function(_0x53b772,_0x29f0d5){return client['Request'](_0x5adb('0x12'),{'account':{'id':_0x53b772},'body':_0x29f0d5,'log':'NotifyMailAccount'});};