Built motion from commit (unavailable).|2.5.2
[motion2.git] / server / api / cmHopperBlack / 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 _0xb458=['show','put','/:id','delete','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/describe','isAuthenticated','describe'];(function(_0x1dcc28,_0x518597){var _0x324b64=function(_0x26e94e){while(--_0x26e94e){_0x1dcc28['push'](_0x1dcc28['shift']());}};_0x324b64(++_0x518597);}(_0xb458,0x103));var _0x8b45=function(_0x86ca04,_0x77ec8c){_0x86ca04=_0x86ca04-0x0;var _0x3c4a3b=_0xb458[_0x86ca04];return _0x3c4a3b;};'use strict';var multer=require(_0x8b45('0x0'));var util=require(_0x8b45('0x1'));var path=require(_0x8b45('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8b45('0x3')]();var auth=require(_0x8b45('0x4'));var interaction=require(_0x8b45('0x5'));var config=require(_0x8b45('0x6'));var controller=require('./cmHopperBlack.controller');router[_0x8b45('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x8b45('0x7')](_0x8b45('0x8'),auth[_0x8b45('0x9')](),controller[_0x8b45('0xa')]);router[_0x8b45('0x7')]('/:id',auth[_0x8b45('0x9')](),controller[_0x8b45('0xb')]);router[_0x8b45('0xc')](_0x8b45('0xd'),auth[_0x8b45('0x9')](),controller['update']);router[_0x8b45('0xe')](_0x8b45('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;