Built motion from commit 14588770.|2.5.38
[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 _0xf51f=['getMailAccounts','GetMailAccount','name','email','active','key','ListId','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','Request','NotifyMailAccount','../client'];(function(_0x14f9fd,_0x1c7402){var _0x1e04dd=function(_0x5909a6){while(--_0x5909a6){_0x14f9fd['push'](_0x14f9fd['shift']());}};_0x1e04dd(++_0x1c7402);}(_0xf51f,0x19f));var _0xff51=function(_0x3f9584,_0x5ab12c){_0x3f9584=_0x3f9584-0x0;var _0x9d54c=_0xf51f[_0x3f9584];return _0x9d54c;};'use strict';var client=require(_0xff51('0x0'));exports[_0xff51('0x1')]=function(){return function(){return client['Request'](_0xff51('0x2'),{'options':{'attributes':['id',_0xff51('0x3'),'service',_0xff51('0x4'),_0xff51('0x5'),_0xff51('0x6'),_0xff51('0x7'),_0xff51('0x8')],'raw':![],'include':[{'model':_0xff51('0x9'),'as':_0xff51('0xa')},{'model':_0xff51('0xb'),'as':_0xff51('0xc')}]},'log':_0xff51('0xd')});};};exports['notify']=function(_0x4f4e66,_0x1f8742){return client[_0xff51('0xe')](_0xff51('0xf'),{'account':{'id':_0x4f4e66},'body':_0x1f8742,'log':'NotifyMailAccount'});};