74b109c11b28ef48e792031f6f69ca06d2a98031
[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 _0xed65=['getMailAccounts','Request','GetMailAccount','provider','email','ListId','MailServerIn','Imap','CloudProvider','name','service','type','data5','Smtp','getMailAccount','notify','NotifyMailAccount','../client'];(function(_0x2ebfcd,_0x58da31){var _0x48b9b4=function(_0x540c09){while(--_0x540c09){_0x2ebfcd['push'](_0x2ebfcd['shift']());}};_0x48b9b4(++_0x58da31);}(_0xed65,0xa1));var _0x5ed6=function(_0x26a906,_0x3d135c){_0x26a906=_0x26a906-0x0;var _0x495575=_0xed65[_0x26a906];return _0x495575;};'use strict';var client=require(_0x5ed6('0x0'));exports[_0x5ed6('0x1')]=function(){return function(){return client[_0x5ed6('0x2')](_0x5ed6('0x3'),{'options':{'attributes':['id','name',_0x5ed6('0x4'),'service',_0x5ed6('0x5'),'active','key',_0x5ed6('0x6'),'TemplateId'],'raw':![],'include':[{'model':_0x5ed6('0x7'),'as':_0x5ed6('0x8'),'include':[{'model':_0x5ed6('0x9'),'attributes':['id',_0x5ed6('0xa'),_0x5ed6('0xb'),_0x5ed6('0xc'),_0x5ed6('0xd')],'as':_0x5ed6('0x9')}]},{'model':'MailServerOut','as':_0x5ed6('0xe'),'include':[{'model':_0x5ed6('0x9'),'attributes':['id',_0x5ed6('0xa'),_0x5ed6('0xb'),_0x5ed6('0xc'),_0x5ed6('0xd')],'as':_0x5ed6('0x9')}]}]},'log':_0x5ed6('0xf')});};};exports[_0x5ed6('0x10')]=function(_0x32c8e2,_0x1baa87){return client[_0x5ed6('0x2')]('NotifyMailAccount',{'account':{'id':_0x32c8e2},'body':_0x1baa87,'log':_0x5ed6('0x11')});};