Built motion from commit 9d0783e6.|2.6.13
[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 _0xb6c9=['Request','NotifyMailAccount','../client','GetMailAccount','provider','service','email','ListId','TemplateId','MailServerIn','Imap','CloudProvider','Smtp','name','data5','notify'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0xb6c9,0x152));var _0x9b6c=function(_0x37e845,_0x219f9f){_0x37e845=_0x37e845-0x0;var _0x59e55b=_0xb6c9[_0x37e845];return _0x59e55b;};'use strict';var client=require(_0x9b6c('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request'](_0x9b6c('0x1'),{'options':{'attributes':['id','name',_0x9b6c('0x2'),_0x9b6c('0x3'),_0x9b6c('0x4'),'active','key',_0x9b6c('0x5'),_0x9b6c('0x6')],'raw':![],'include':[{'model':_0x9b6c('0x7'),'as':_0x9b6c('0x8'),'include':[{'model':'CloudProvider','attributes':['id','name','service','type','data5'],'as':_0x9b6c('0x9')}]},{'model':'MailServerOut','as':_0x9b6c('0xa'),'include':[{'model':'CloudProvider','attributes':['id',_0x9b6c('0xb'),_0x9b6c('0x3'),'type',_0x9b6c('0xc')],'as':_0x9b6c('0x9')}]}]},'log':'getMailAccount'});};};exports[_0x9b6c('0xd')]=function(_0x30736a,_0x38f7ae){return client[_0x9b6c('0xe')](_0x9b6c('0xf'),{'account':{'id':_0x30736a},'body':_0x38f7ae,'log':_0x9b6c('0xf')});};