6f284c759f83ad81845083fcf9d575db1734c020
[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 _0x3c03=['Imap','CloudProvider','type','data5','MailServerOut','Smtp','notify','NotifyMailAccount','../client','name','provider','service','email','key','ListId','TemplateId','MailServerIn'];(function(_0x4d6d94,_0x59a501){var _0x36bfbf=function(_0x2718a2){while(--_0x2718a2){_0x4d6d94['push'](_0x4d6d94['shift']());}};_0x36bfbf(++_0x59a501);}(_0x3c03,0x16d));var _0x33c0=function(_0x50aa2e,_0xfbd6f0){_0x50aa2e=_0x50aa2e-0x0;var _0x5e07f0=_0x3c03[_0x50aa2e];return _0x5e07f0;};'use strict';var client=require(_0x33c0('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request']('GetMailAccount',{'options':{'attributes':['id',_0x33c0('0x1'),_0x33c0('0x2'),_0x33c0('0x3'),_0x33c0('0x4'),'active',_0x33c0('0x5'),_0x33c0('0x6'),_0x33c0('0x7')],'raw':![],'include':[{'model':_0x33c0('0x8'),'as':_0x33c0('0x9'),'include':[{'model':_0x33c0('0xa'),'attributes':['id',_0x33c0('0x1'),'service',_0x33c0('0xb'),_0x33c0('0xc')],'as':'CloudProvider'}]},{'model':_0x33c0('0xd'),'as':_0x33c0('0xe'),'include':[{'model':'CloudProvider','attributes':['id',_0x33c0('0x1'),_0x33c0('0x3'),_0x33c0('0xb'),_0x33c0('0xc')],'as':'CloudProvider'}]}]},'log':'getMailAccount'});};};exports[_0x33c0('0xf')]=function(_0x71eac3,_0x5f37ac){return client['Request']('NotifyMailAccount',{'account':{'id':_0x71eac3},'body':_0x5f37ac,'log':_0x33c0('0x10')});};