91b3fb96828311d03a40c8327ad355506f406114
[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 _0xea78=['Router','../../components/auth/service','../../components/interaction/service','./cmHopperHistory.controller','get','index','/describe','isAuthenticated','describe','/:id','show','post','update','exports','multer','util','path'];(function(_0x52ef68,_0x21f4e8){var _0x1aa16f=function(_0x151e4d){while(--_0x151e4d){_0x52ef68['push'](_0x52ef68['shift']());}};_0x1aa16f(++_0x21f4e8);}(_0xea78,0x162));var _0x8ea7=function(_0x100682,_0x11afec){_0x100682=_0x100682-0x0;var _0xcb6e87=_0xea78[_0x100682];return _0xcb6e87;};'use strict';var multer=require(_0x8ea7('0x0'));var util=require(_0x8ea7('0x1'));var path=require(_0x8ea7('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x8ea7('0x3')]();var auth=require(_0x8ea7('0x4'));var interaction=require(_0x8ea7('0x5'));var config=require('../../config/environment');var controller=require(_0x8ea7('0x6'));router[_0x8ea7('0x7')]('/',auth['isAuthenticated'](),controller[_0x8ea7('0x8')]);router['get'](_0x8ea7('0x9'),auth[_0x8ea7('0xa')](),controller[_0x8ea7('0xb')]);router[_0x8ea7('0x7')](_0x8ea7('0xc'),auth[_0x8ea7('0xa')](),controller[_0x8ea7('0xd')]);router[_0x8ea7('0xe')]('/',auth[_0x8ea7('0xa')](),controller['create']);router['put'](_0x8ea7('0xc'),auth['isAuthenticated'](),controller[_0x8ea7('0xf')]);module[_0x8ea7('0x10')]=router;