2f5b97f4e13abc4b0cfeec2c34bad0a72b0f1c2f
[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 _0x9120=['NotifyMailAccount','../client','getMailAccounts','Request','GetMailAccount','email','active','key','ListId','TemplateId','MailServerIn','MailServerOut','Smtp','getMailAccount'];(function(_0x38f0d6,_0x530499){var _0x2d0ee6=function(_0x1ed64f){while(--_0x1ed64f){_0x38f0d6['push'](_0x38f0d6['shift']());}};_0x2d0ee6(++_0x530499);}(_0x9120,0x1b3));var _0x0912=function(_0x5f0c1b,_0x365e1e){_0x5f0c1b=_0x5f0c1b-0x0;var _0x40c337=_0x9120[_0x5f0c1b];return _0x40c337;};'use strict';var client=require(_0x0912('0x0'));exports[_0x0912('0x1')]=function(){return function(){return client[_0x0912('0x2')](_0x0912('0x3'),{'options':{'attributes':['id','name','service',_0x0912('0x4'),_0x0912('0x5'),_0x0912('0x6'),_0x0912('0x7'),_0x0912('0x8')],'raw':![],'include':[{'model':_0x0912('0x9'),'as':'Imap'},{'model':_0x0912('0xa'),'as':_0x0912('0xb')}]},'log':_0x0912('0xc')});};};exports['notify']=function(_0x674709,_0x4383c7){return client[_0x0912('0x2')](_0x0912('0xd'),{'account':{'id':_0x674709},'body':_0x4383c7,'log':_0x0912('0xd')});};