Built motion from commit (unavailable).|2.5.31
[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 _0xbccd=['../client','GetMailAccount','name','service','email','active','key','TemplateId','MailServerIn','Imap','MailServerOut','Smtp','getMailAccount','notify','Request','NotifyMailAccount'];(function(_0x3b6648,_0x2d723a){var _0x5a0a0d=function(_0x133dea){while(--_0x133dea){_0x3b6648['push'](_0x3b6648['shift']());}};_0x5a0a0d(++_0x2d723a);}(_0xbccd,0x1b0));var _0xdbcc=function(_0x15bc81,_0x4d4f77){_0x15bc81=_0x15bc81-0x0;var _0x59440e=_0xbccd[_0x15bc81];return _0x59440e;};'use strict';var client=require(_0xdbcc('0x0'));exports['getMailAccounts']=function(){return function(){return client['Request'](_0xdbcc('0x1'),{'options':{'attributes':['id',_0xdbcc('0x2'),_0xdbcc('0x3'),_0xdbcc('0x4'),_0xdbcc('0x5'),_0xdbcc('0x6'),'ListId',_0xdbcc('0x7')],'raw':![],'include':[{'model':_0xdbcc('0x8'),'as':_0xdbcc('0x9')},{'model':_0xdbcc('0xa'),'as':_0xdbcc('0xb')}]},'log':_0xdbcc('0xc')});};};exports[_0xdbcc('0xd')]=function(_0x22d783,_0x3124c7){return client[_0xdbcc('0xe')](_0xdbcc('0xf'),{'account':{'id':_0x22d783},'body':_0x3124c7,'log':'NotifyMailAccount'});};