Built motion from commit 25580385.|2.6.2
[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 _0xa992=['GetMailAccount','provider','service','email','active','key','ListId','TemplateId','MailServerIn','Imap','CloudProvider','type','data5','MailServerOut','Smtp','name','notify','NotifyMailAccount','../client','getMailAccounts','Request'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0xa992,0x18c));var _0x2a99=function(_0x3db6dd,_0x450556){_0x3db6dd=_0x3db6dd-0x0;var _0x4a3c70=_0xa992[_0x3db6dd];return _0x4a3c70;};'use strict';var client=require(_0x2a99('0x0'));exports[_0x2a99('0x1')]=function(){return function(){return client[_0x2a99('0x2')](_0x2a99('0x3'),{'options':{'attributes':['id','name',_0x2a99('0x4'),_0x2a99('0x5'),_0x2a99('0x6'),_0x2a99('0x7'),_0x2a99('0x8'),_0x2a99('0x9'),_0x2a99('0xa')],'raw':![],'include':[{'model':_0x2a99('0xb'),'as':_0x2a99('0xc'),'include':[{'model':_0x2a99('0xd'),'attributes':['id','name',_0x2a99('0x5'),_0x2a99('0xe'),_0x2a99('0xf')],'as':_0x2a99('0xd')}]},{'model':_0x2a99('0x10'),'as':_0x2a99('0x11'),'include':[{'model':_0x2a99('0xd'),'attributes':['id',_0x2a99('0x12'),_0x2a99('0x5'),_0x2a99('0xe'),_0x2a99('0xf')],'as':'CloudProvider'}]}]},'log':'getMailAccount'});};};exports[_0x2a99('0x13')]=function(_0x3a2457,_0x108682){return client[_0x2a99('0x2')](_0x2a99('0x14'),{'account':{'id':_0x3a2457},'body':_0x108682,'log':_0x2a99('0x14')});};