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 _0x5302=['TemplateId','MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','Smtp','name','getMailAccount','notify','NotifyMailAccount','Request','GetMailAccount','service','active','ListId'];(function(_0x2e20c9,_0x2e6ce7){var _0x37e9db=function(_0x394995){while(--_0x394995){_0x2e20c9['push'](_0x2e20c9['shift']());}};_0x37e9db(++_0x2e6ce7);}(_0x5302,0x1b5));var _0x2530=function(_0x27d771,_0x1a50b2){_0x27d771=_0x27d771-0x0;var _0x2ba087=_0x5302[_0x27d771];return _0x2ba087;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x2530('0x0')](_0x2530('0x1'),{'options':{'attributes':['id','name','provider',_0x2530('0x2'),'email',_0x2530('0x3'),'key',_0x2530('0x4'),_0x2530('0x5')],'raw':![],'include':[{'model':_0x2530('0x6'),'as':_0x2530('0x7'),'include':[{'model':_0x2530('0x8'),'attributes':['id','name',_0x2530('0x2'),_0x2530('0x9'),_0x2530('0xa')],'as':_0x2530('0x8')}]},{'model':_0x2530('0xb'),'as':_0x2530('0xc'),'include':[{'model':_0x2530('0x8'),'attributes':['id',_0x2530('0xd'),_0x2530('0x2'),_0x2530('0x9'),_0x2530('0xa')],'as':_0x2530('0x8')}]}]},'log':_0x2530('0xe')});};};exports[_0x2530('0xf')]=function(_0x330c15,_0x1380bb){return client[_0x2530('0x0')]('NotifyMailAccount',{'account':{'id':_0x330c15},'body':_0x1380bb,'log':_0x2530('0x10')});};