Built motion from commit (unavailable).|2.5.11
[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 _0x6050=['getMailAccounts','Request','GetMailAccount','name','service','active','key','ListId','MailServerOut','NotifyMailAccount','../client'];(function(_0x28d18d,_0x55896b){var _0x470640=function(_0x57e78b){while(--_0x57e78b){_0x28d18d['push'](_0x28d18d['shift']());}};_0x470640(++_0x55896b);}(_0x6050,0x196));var _0x0605=function(_0x1637f1,_0x27ba85){_0x1637f1=_0x1637f1-0x0;var _0x1a201e=_0x6050[_0x1637f1];return _0x1a201e;};'use strict';var client=require(_0x0605('0x0'));exports[_0x0605('0x1')]=function(){return function(){return client[_0x0605('0x2')](_0x0605('0x3'),{'options':{'attributes':['id',_0x0605('0x4'),_0x0605('0x5'),'email',_0x0605('0x6'),_0x0605('0x7'),_0x0605('0x8'),'TemplateId'],'raw':![],'include':[{'model':'MailServerIn','as':'Imap'},{'model':_0x0605('0x9'),'as':'Smtp'}]},'log':'getMailAccount'});};};exports['notify']=function(_0x1629bf,_0x11b8b5){return client[_0x0605('0x2')](_0x0605('0xa'),{'account':{'id':_0x1629bf},'body':_0x11b8b5,'log':_0x0605('0xa')});};