Built motion from commit (unavailable).|2.5.2
[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 _0xbd18=['Request','name','key','ListId','Imap','MailServerOut','Smtp','getMailAccount','NotifyMailAccount','../client','getMailAccounts'];(function(_0x24b3d0,_0x2a34c5){var _0x15d2fe=function(_0x2415c8){while(--_0x2415c8){_0x24b3d0['push'](_0x24b3d0['shift']());}};_0x15d2fe(++_0x2a34c5);}(_0xbd18,0x195));var _0x8bd1=function(_0x53cd0b,_0x587d0c){_0x53cd0b=_0x53cd0b-0x0;var _0x400967=_0xbd18[_0x53cd0b];return _0x400967;};'use strict';var client=require(_0x8bd1('0x0'));exports[_0x8bd1('0x1')]=function(){return function(){return client[_0x8bd1('0x2')]('GetMailAccount',{'options':{'attributes':['id',_0x8bd1('0x3'),'service','email','active',_0x8bd1('0x4'),_0x8bd1('0x5'),'TemplateId'],'raw':![],'include':[{'model':'MailServerIn','as':_0x8bd1('0x6')},{'model':_0x8bd1('0x7'),'as':_0x8bd1('0x8')}]},'log':_0x8bd1('0x9')});};};exports['notify']=function(_0x13d571,_0x2bfac3){return client[_0x8bd1('0x2')]('NotifyMailAccount',{'account':{'id':_0x13d571},'body':_0x2bfac3,'log':_0x8bd1('0xa')});};