Built motion from commit 10af8726.|2.6.34
[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 _0xab36=['active','ListId','TemplateId','MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','notify','NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','name','service','email'];(function(_0x46e9b2,_0x468dfd){var _0x44c3a1=function(_0x557c53){while(--_0x557c53){_0x46e9b2['push'](_0x46e9b2['shift']());}};_0x44c3a1(++_0x468dfd);}(_0xab36,0x1df));var _0x6ab3=function(_0x7decee,_0x2c860f){_0x7decee=_0x7decee-0x0;var _0x229a43=_0xab36[_0x7decee];return _0x229a43;};'use strict';var client=require(_0x6ab3('0x0'));exports[_0x6ab3('0x1')]=function(){return function(){return client[_0x6ab3('0x2')](_0x6ab3('0x3'),{'options':{'attributes':['id',_0x6ab3('0x4'),'provider',_0x6ab3('0x5'),_0x6ab3('0x6'),_0x6ab3('0x7'),'key',_0x6ab3('0x8'),_0x6ab3('0x9')],'raw':![],'include':[{'model':_0x6ab3('0xa'),'as':_0x6ab3('0xb'),'include':[{'model':_0x6ab3('0xc'),'attributes':['id',_0x6ab3('0x4'),'service',_0x6ab3('0xd'),_0x6ab3('0xe')],'as':'CloudProvider'}]},{'model':_0x6ab3('0xf'),'as':'Smtp','include':[{'model':_0x6ab3('0xc'),'attributes':['id',_0x6ab3('0x4'),_0x6ab3('0x5'),_0x6ab3('0xd'),_0x6ab3('0xe')],'as':_0x6ab3('0xc')}]}]},'log':'getMailAccount'});};};exports[_0x6ab3('0x10')]=function(_0x576723,_0x3cc114){return client[_0x6ab3('0x2')](_0x6ab3('0x11'),{'account':{'id':_0x576723},'body':_0x3cc114,'log':_0x6ab3('0x11')});};