Built motion from commit (unavailable).|2.5.26
[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 _0xb234=['../client','getMailAccounts','GetMailAccount','name','service','email','ListId','TemplateId','Imap','Smtp','NotifyMailAccount'];(function(_0x2b79f4,_0x50d267){var _0x111a9c=function(_0x60b635){while(--_0x60b635){_0x2b79f4['push'](_0x2b79f4['shift']());}};_0x111a9c(++_0x50d267);}(_0xb234,0x13f));var _0x4b23=function(_0x5b7d95,_0x69f106){_0x5b7d95=_0x5b7d95-0x0;var _0x2d1732=_0xb234[_0x5b7d95];return _0x2d1732;};'use strict';var client=require(_0x4b23('0x0'));exports[_0x4b23('0x1')]=function(){return function(){return client['Request'](_0x4b23('0x2'),{'options':{'attributes':['id',_0x4b23('0x3'),_0x4b23('0x4'),_0x4b23('0x5'),'active','key',_0x4b23('0x6'),_0x4b23('0x7')],'raw':![],'include':[{'model':'MailServerIn','as':_0x4b23('0x8')},{'model':'MailServerOut','as':_0x4b23('0x9')}]},'log':'getMailAccount'});};};exports['notify']=function(_0xc81b6a,_0x6f9a90){return client['Request'](_0x4b23('0xa'),{'account':{'id':_0xc81b6a},'body':_0x6f9a90,'log':_0x4b23('0xa')});};