1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe9e4=['create','update','util','path','connect-timeout','express','Router','../../components/interaction/service','./cmHopperHistory.controller','get','isAuthenticated','index','/describe','describe','/:id','show'];(function(_0x467436,_0x23f73d){var _0x32cc30=function(_0x48f3d4){while(--_0x48f3d4){_0x467436['push'](_0x467436['shift']());}};_0x32cc30(++_0x23f73d);}(_0xe9e4,0x1e2));var _0x4e9e=function(_0x3e1bb0,_0x14713e){_0x3e1bb0=_0x3e1bb0-0x0;var _0x4b1f63=_0xe9e4[_0x3e1bb0];return _0x4b1f63;};'use strict';var multer=require('multer');var util=require(_0x4e9e('0x0'));var path=require(_0x4e9e('0x1'));var timeout=require(_0x4e9e('0x2'));var express=require(_0x4e9e('0x3'));var router=express[_0x4e9e('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x4e9e('0x5'));var config=require('../../config/environment');var controller=require(_0x4e9e('0x6'));router[_0x4e9e('0x7')]('/',auth[_0x4e9e('0x8')](),controller[_0x4e9e('0x9')]);router[_0x4e9e('0x7')](_0x4e9e('0xa'),auth[_0x4e9e('0x8')](),controller[_0x4e9e('0xb')]);router[_0x4e9e('0x7')](_0x4e9e('0xc'),auth['isAuthenticated'](),controller[_0x4e9e('0xd')]);router['post']('/',auth[_0x4e9e('0x8')](),controller[_0x4e9e('0xe')]);router['put'](_0x4e9e('0xc'),auth[_0x4e9e('0x8')](),controller[_0x4e9e('0xf')]);module['exports']=router;