6cbbb99d446be31961a41b290366ef2a1f406bc9
[motion2.git] / server / api / cmHopperHistory / 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 _0xc48b=['get','isAuthenticated','/describe','describe','/:id','show','create','update','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmHopperHistory.controller'];(function(_0x105c6a,_0x48c736){var _0x5b844d=function(_0x181f09){while(--_0x181f09){_0x105c6a['push'](_0x105c6a['shift']());}};_0x5b844d(++_0x48c736);}(_0xc48b,0x129));var _0xbc48=function(_0x17d713,_0x19b690){_0x17d713=_0x17d713-0x0;var _0x452666=_0xc48b[_0x17d713];return _0x452666;};'use strict';var multer=require(_0xbc48('0x0'));var util=require(_0xbc48('0x1'));var path=require(_0xbc48('0x2'));var timeout=require('connect-timeout');var express=require(_0xbc48('0x3'));var router=express[_0xbc48('0x4')]();var fs_extra=require(_0xbc48('0x5'));var auth=require(_0xbc48('0x6'));var interaction=require(_0xbc48('0x7'));var config=require('../../config/environment');var controller=require(_0xbc48('0x8'));router[_0xbc48('0x9')]('/',auth[_0xbc48('0xa')](),controller['index']);router[_0xbc48('0x9')](_0xbc48('0xb'),auth[_0xbc48('0xa')](),controller[_0xbc48('0xc')]);router[_0xbc48('0x9')](_0xbc48('0xd'),auth[_0xbc48('0xa')](),controller[_0xbc48('0xe')]);router['post']('/',auth[_0xbc48('0xa')](),controller[_0xbc48('0xf')]);router['put'](_0xbc48('0xd'),auth[_0xbc48('0xa')](),controller[_0xbc48('0x10')]);module['exports']=router;