0fea50365d457a8e06796ae02b6e170bdbc2c9bc
[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 _0x1c88=['MailServerOut','Smtp','getMailAccount','notify','NotifyMailAccount','../client','Request','GetMailAccount','name','active','key','ListId','TemplateId','MailServerIn','Imap'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0x1c88,0x1a9));var _0x81c8=function(_0x393bf5,_0x225cac){_0x393bf5=_0x393bf5-0x0;var _0xcb023=_0x1c88[_0x393bf5];return _0xcb023;};'use strict';var client=require(_0x81c8('0x0'));exports['getMailAccounts']=function(){return function(){return client[_0x81c8('0x1')](_0x81c8('0x2'),{'options':{'attributes':['id',_0x81c8('0x3'),'service','email',_0x81c8('0x4'),_0x81c8('0x5'),_0x81c8('0x6'),_0x81c8('0x7')],'raw':![],'include':[{'model':_0x81c8('0x8'),'as':_0x81c8('0x9')},{'model':_0x81c8('0xa'),'as':_0x81c8('0xb')}]},'log':_0x81c8('0xc')});};};exports[_0x81c8('0xd')]=function(_0x191c40,_0x1ba4cb){return client[_0x81c8('0x1')]('NotifyMailAccount',{'account':{'id':_0x191c40},'body':_0x1ba4cb,'log':_0x81c8('0xe')});};