699771edb596d71da92d720d3455e981f93d4b85
[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 _0xb012=['data5','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider','service','email','active','TemplateId','MailServerIn','Imap','CloudProvider','type'];(function(_0x58d29b,_0xd239ae){var _0x2f0ef0=function(_0x20b0bc){while(--_0x20b0bc){_0x58d29b['push'](_0x58d29b['shift']());}};_0x2f0ef0(++_0xd239ae);}(_0xb012,0x92));var _0x2b01=function(_0x3680d4,_0x223e25){_0x3680d4=_0x3680d4-0x0;var _0x304371=_0xb012[_0x3680d4];return _0x304371;};'use strict';var client=require(_0x2b01('0x0'));exports[_0x2b01('0x1')]=function(){return function(){return client[_0x2b01('0x2')](_0x2b01('0x3'),{'options':{'attributes':['id',_0x2b01('0x4'),_0x2b01('0x5'),_0x2b01('0x6'),_0x2b01('0x7'),_0x2b01('0x8'),'key','ListId',_0x2b01('0x9')],'raw':![],'include':[{'model':_0x2b01('0xa'),'as':_0x2b01('0xb'),'include':[{'model':_0x2b01('0xc'),'attributes':['id',_0x2b01('0x4'),'service',_0x2b01('0xd'),_0x2b01('0xe')],'as':_0x2b01('0xc')}]},{'model':_0x2b01('0xf'),'as':_0x2b01('0x10'),'include':[{'model':_0x2b01('0xc'),'attributes':['id',_0x2b01('0x4'),'service','type',_0x2b01('0xe')],'as':_0x2b01('0xc')}]}]},'log':_0x2b01('0x11')});};};exports[_0x2b01('0x12')]=function(_0xcda0eb,_0x1cb22f){return client[_0x2b01('0x2')](_0x2b01('0x13'),{'account':{'id':_0xcda0eb},'body':_0x1cb22f,'log':_0x2b01('0x13')});};