e1997df8236c80d104a5fd33935ad86310fe0b76
[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 _0x8819=['MailServerIn','Imap','MailServerOut','getMailAccount','NotifyMailAccount','Request','GetMailAccount','name','service','email','key','ListId','TemplateId'];(function(_0x4b7e4d,_0x82d2ab){var _0x38d6af=function(_0x227432){while(--_0x227432){_0x4b7e4d['push'](_0x4b7e4d['shift']());}};_0x38d6af(++_0x82d2ab);}(_0x8819,0x94));var _0x9881=function(_0x1ed005,_0x5d73dd){_0x1ed005=_0x1ed005-0x0;var _0x2ca7b1=_0x8819[_0x1ed005];return _0x2ca7b1;};'use strict';var client=require('../client');exports['getMailAccounts']=function(){return function(){return client[_0x9881('0x0')](_0x9881('0x1'),{'options':{'attributes':['id',_0x9881('0x2'),_0x9881('0x3'),_0x9881('0x4'),'active',_0x9881('0x5'),_0x9881('0x6'),_0x9881('0x7')],'raw':![],'include':[{'model':_0x9881('0x8'),'as':_0x9881('0x9')},{'model':_0x9881('0xa'),'as':'Smtp'}]},'log':_0x9881('0xb')});};};exports['notify']=function(_0x530547,_0x15c0f8){return client['Request']('NotifyMailAccount',{'account':{'id':_0x530547},'body':_0x15c0f8,'log':_0x9881('0xc')});};