Built motion from commit (unavailable).|2.5.3
[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 _0x77f7=['GetMailAccount','name','service','email','active','key','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','getMailAccounts','Request'];(function(_0x271d73,_0x1b8aa3){var _0x2aa33a=function(_0x200e1a){while(--_0x200e1a){_0x271d73['push'](_0x271d73['shift']());}};_0x2aa33a(++_0x1b8aa3);}(_0x77f7,0xbd));var _0x777f=function(_0x521579,_0x5cde2e){_0x521579=_0x521579-0x0;var _0x3fa745=_0x77f7[_0x521579];return _0x3fa745;};'use strict';var client=require(_0x777f('0x0'));exports[_0x777f('0x1')]=function(){return function(){return client[_0x777f('0x2')](_0x777f('0x3'),{'options':{'attributes':['id',_0x777f('0x4'),_0x777f('0x5'),_0x777f('0x6'),_0x777f('0x7'),_0x777f('0x8'),'ListId','TemplateId'],'raw':![],'include':[{'model':_0x777f('0x9'),'as':_0x777f('0xa')},{'model':_0x777f('0xb'),'as':_0x777f('0xc')}]},'log':_0x777f('0xd')});};};exports[_0x777f('0xe')]=function(_0x12bff6,_0x27e9ee){return client[_0x777f('0x2')](_0x777f('0xf'),{'account':{'id':_0x12bff6},'body':_0x27e9ee,'log':'NotifyMailAccount'});};