Built motion from commit (unavailable).|2.5.28
[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 _0x79bf=['getMailAccount','Request','NotifyMailAccount','getMailAccounts','GetMailAccount','service','email','active','key','ListId','TemplateId','MailServerIn','MailServerOut','Smtp'];(function(_0x3b9a2f,_0x4aea4d){var _0x1d6ad3=function(_0x5869d2){while(--_0x5869d2){_0x3b9a2f['push'](_0x3b9a2f['shift']());}};_0x1d6ad3(++_0x4aea4d);}(_0x79bf,0x1df));var _0xf79b=function(_0x5dc7bb,_0x3c2edc){_0x5dc7bb=_0x5dc7bb-0x0;var _0x3569c3=_0x79bf[_0x5dc7bb];return _0x3569c3;};'use strict';var client=require('../client');exports[_0xf79b('0x0')]=function(){return function(){return client['Request'](_0xf79b('0x1'),{'options':{'attributes':['id','name',_0xf79b('0x2'),_0xf79b('0x3'),_0xf79b('0x4'),_0xf79b('0x5'),_0xf79b('0x6'),_0xf79b('0x7')],'raw':![],'include':[{'model':_0xf79b('0x8'),'as':'Imap'},{'model':_0xf79b('0x9'),'as':_0xf79b('0xa')}]},'log':_0xf79b('0xb')});};};exports['notify']=function(_0x290738,_0x29b0e5){return client[_0xf79b('0xc')](_0xf79b('0xd'),{'account':{'id':_0x290738},'body':_0x29b0e5,'log':'NotifyMailAccount'});};