9c1045462bbda9d638999469f32a3bda18c360b0
[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 _0xa498=['getMailAccount','NotifyMailAccount','getMailAccounts','Request','service','email','active','key','ListId','MailServerIn','MailServerOut','Smtp'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa498,0x1d6));var _0x8a49=function(_0x462fe4,_0x394d3e){_0x462fe4=_0x462fe4-0x0;var _0x82b23a=_0xa498[_0x462fe4];return _0x82b23a;};'use strict';var client=require('../client');exports[_0x8a49('0x0')]=function(){return function(){return client[_0x8a49('0x1')]('GetMailAccount',{'options':{'attributes':['id','name',_0x8a49('0x2'),_0x8a49('0x3'),_0x8a49('0x4'),_0x8a49('0x5'),_0x8a49('0x6'),'TemplateId'],'raw':![],'include':[{'model':_0x8a49('0x7'),'as':'Imap'},{'model':_0x8a49('0x8'),'as':_0x8a49('0x9')}]},'log':_0x8a49('0xa')});};};exports['notify']=function(_0x3048b7,_0x29cba4){return client[_0x8a49('0x1')](_0x8a49('0xb'),{'account':{'id':_0x3048b7},'body':_0x29cba4,'log':_0x8a49('0xb')});};