Built motion from commit 85328c08.|2.5.50
[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 _0xb1fc=['getMailAccounts','GetMailAccount','name','provider','service','email','active','key','ListId','MailServerIn','Imap','CloudProvider','type','data5','Smtp','getMailAccount','notify','Request','NotifyMailAccount','../client'];(function(_0x29ac6b,_0x184514){var _0x44a29b=function(_0x2dad03){while(--_0x2dad03){_0x29ac6b['push'](_0x29ac6b['shift']());}};_0x44a29b(++_0x184514);}(_0xb1fc,0xb3));var _0xcb1f=function(_0x2c27cd,_0x236f70){_0x2c27cd=_0x2c27cd-0x0;var _0x17e297=_0xb1fc[_0x2c27cd];return _0x17e297;};'use strict';var client=require(_0xcb1f('0x0'));exports[_0xcb1f('0x1')]=function(){return function(){return client['Request'](_0xcb1f('0x2'),{'options':{'attributes':['id',_0xcb1f('0x3'),_0xcb1f('0x4'),_0xcb1f('0x5'),_0xcb1f('0x6'),_0xcb1f('0x7'),_0xcb1f('0x8'),_0xcb1f('0x9'),'TemplateId'],'raw':![],'include':[{'model':_0xcb1f('0xa'),'as':_0xcb1f('0xb'),'include':[{'model':_0xcb1f('0xc'),'attributes':['id',_0xcb1f('0x3'),_0xcb1f('0x5'),_0xcb1f('0xd'),_0xcb1f('0xe')],'as':_0xcb1f('0xc')}]},{'model':'MailServerOut','as':_0xcb1f('0xf'),'include':[{'model':'CloudProvider','attributes':['id',_0xcb1f('0x3'),'service',_0xcb1f('0xd'),_0xcb1f('0xe')],'as':_0xcb1f('0xc')}]}]},'log':_0xcb1f('0x10')});};};exports[_0xcb1f('0x11')]=function(_0x404975,_0x1666f2){return client[_0xcb1f('0x12')](_0xcb1f('0x13'),{'account':{'id':_0x404975},'body':_0x1666f2,'log':'NotifyMailAccount'});};