Built motion from commit (unavailable).|2.5.14
[motion2.git] / server / api / mailServerOut / index.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 _0x78d2=['create','put','/:id','update','delete','destroy','exports','util','express','../../components/auth/service','../../components/interaction/service','./mailServerOut.controller','get','isAuthenticated','post'];(function(_0x277261,_0x8615f6){var _0x51aa0=function(_0x25384a){while(--_0x25384a){_0x277261['push'](_0x277261['shift']());}};_0x51aa0(++_0x8615f6);}(_0x78d2,0xac));var _0x278d=function(_0x1bc715,_0x3d9c84){_0x1bc715=_0x1bc715-0x0;var _0x58c9e4=_0x78d2[_0x1bc715];return _0x58c9e4;};'use strict';var multer=require('multer');var util=require(_0x278d('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x278d('0x1'));var router=express['Router']();var auth=require(_0x278d('0x2'));var interaction=require(_0x278d('0x3'));var config=require('../../config/environment');var controller=require(_0x278d('0x4'));router[_0x278d('0x5')]('/',auth[_0x278d('0x6')](),controller['index']);router[_0x278d('0x5')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x278d('0x7')]('/',auth[_0x278d('0x6')](),controller[_0x278d('0x8')]);router[_0x278d('0x9')](_0x278d('0xa'),auth[_0x278d('0x6')](),controller[_0x278d('0xb')]);router[_0x278d('0xc')](_0x278d('0xa'),auth[_0x278d('0x6')](),controller[_0x278d('0xd')]);module[_0x278d('0xe')]=router;