5d6169589d37978bdb7dc80f20dc094dfd7a86d4
[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 _0x8be8=['service','email','active','ListId','MailServerIn','CloudProvider','type','data5','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','provider'];(function(_0x379b2f,_0xb8ab79){var _0x294bde=function(_0x46a376){while(--_0x46a376){_0x379b2f['push'](_0x379b2f['shift']());}};_0x294bde(++_0xb8ab79);}(_0x8be8,0xf6));var _0x88be=function(_0x1b4dd5,_0x3eec03){_0x1b4dd5=_0x1b4dd5-0x0;var _0x31aeb6=_0x8be8[_0x1b4dd5];return _0x31aeb6;};'use strict';var client=require(_0x88be('0x0'));exports[_0x88be('0x1')]=function(){return function(){return client[_0x88be('0x2')](_0x88be('0x3'),{'options':{'attributes':['id',_0x88be('0x4'),_0x88be('0x5'),_0x88be('0x6'),_0x88be('0x7'),_0x88be('0x8'),'key',_0x88be('0x9'),'TemplateId'],'raw':![],'include':[{'model':_0x88be('0xa'),'as':'Imap','include':[{'model':_0x88be('0xb'),'attributes':['id',_0x88be('0x4'),_0x88be('0x6'),_0x88be('0xc'),_0x88be('0xd')],'as':_0x88be('0xb')}]},{'model':'MailServerOut','as':_0x88be('0xe'),'include':[{'model':'CloudProvider','attributes':['id',_0x88be('0x4'),_0x88be('0x6'),_0x88be('0xc'),'data5'],'as':_0x88be('0xb')}]}]},'log':_0x88be('0xf')});};};exports[_0x88be('0x10')]=function(_0x56d207,_0x2154c6){return client['Request'](_0x88be('0x11'),{'account':{'id':_0x56d207},'body':_0x2154c6,'log':'NotifyMailAccount'});};