c235d382fb0e0221bfe039aa313a3c164cc396c8
[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 _0xe144=['../client','Request','GetMailAccount','name','provider','service','email','active','key','ListId','TemplateId','MailServerIn','Imap','CloudProvider','type','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount'];(function(_0x5a06a1,_0x421abd){var _0x4c354f=function(_0x5bf25a){while(--_0x5bf25a){_0x5a06a1['push'](_0x5a06a1['shift']());}};_0x4c354f(++_0x421abd);}(_0xe144,0x168));var _0x4e14=function(_0x5db313,_0x3c8f0c){_0x5db313=_0x5db313-0x0;var _0x36d503=_0xe144[_0x5db313];return _0x36d503;};'use strict';var client=require(_0x4e14('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x4e14('0x1')](_0x4e14('0x2'),{'options':{'attributes':['id',_0x4e14('0x3'),_0x4e14('0x4'),_0x4e14('0x5'),_0x4e14('0x6'),_0x4e14('0x7'),_0x4e14('0x8'),_0x4e14('0x9'),_0x4e14('0xa')],'raw':![],'include':[{'model':_0x4e14('0xb'),'as':_0x4e14('0xc'),'include':[{'model':_0x4e14('0xd'),'attributes':['id','name',_0x4e14('0x5'),_0x4e14('0xe'),'data5'],'as':'CloudProvider'}]},{'model':_0x4e14('0xf'),'as':_0x4e14('0x10'),'include':[{'model':_0x4e14('0xd'),'attributes':['id','name','service',_0x4e14('0xe'),'data5'],'as':'CloudProvider'}]}]},'log':_0x4e14('0x11')});};};exports[_0x4e14('0x12')]=function(_0x1331dc,_0x40a892){return client[_0x4e14('0x1')](_0x4e14('0x13'),{'account':{'id':_0x1331dc},'body':_0x40a892,'log':'NotifyMailAccount'});};