758f8f0d9a062a0e5475307a0f29fbd0793d3148
[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 _0x1e10=['active','key','TemplateId','Imap','CloudProvider','MailServerOut','Smtp','data5','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','GetMailAccount','name','service','email'];(function(_0x2e19c5,_0xdb7ed7){var _0x4f427e=function(_0x275a64){while(--_0x275a64){_0x2e19c5['push'](_0x2e19c5['shift']());}};_0x4f427e(++_0xdb7ed7);}(_0x1e10,0xb5));var _0x01e1=function(_0x323fe0,_0x6d0bc9){_0x323fe0=_0x323fe0-0x0;var _0xbb0659=_0x1e10[_0x323fe0];return _0xbb0659;};'use strict';var client=require(_0x01e1('0x0'));exports[_0x01e1('0x1')]=function(){return function(){return client['Request'](_0x01e1('0x2'),{'options':{'attributes':['id',_0x01e1('0x3'),'provider',_0x01e1('0x4'),_0x01e1('0x5'),_0x01e1('0x6'),_0x01e1('0x7'),'ListId',_0x01e1('0x8')],'raw':![],'include':[{'model':'MailServerIn','as':_0x01e1('0x9'),'include':[{'model':_0x01e1('0xa'),'attributes':['id',_0x01e1('0x3'),_0x01e1('0x4'),'type','data5'],'as':'CloudProvider'}]},{'model':_0x01e1('0xb'),'as':_0x01e1('0xc'),'include':[{'model':_0x01e1('0xa'),'attributes':['id',_0x01e1('0x3'),_0x01e1('0x4'),'type',_0x01e1('0xd')],'as':_0x01e1('0xa')}]}]},'log':_0x01e1('0xe')});};};exports[_0x01e1('0xf')]=function(_0x4271d5,_0x4f8919){return client['Request'](_0x01e1('0x10'),{'account':{'id':_0x4271d5},'body':_0x4f8919,'log':'NotifyMailAccount'});};