56c2bb0b4fad1dfcef6830d85958d7ca56106b03
[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 _0x0ea2=['post','update','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperHistory.controller','get','isAuthenticated','index','/describe','/:id','show'];(function(_0x269274,_0x44efa7){var _0x36ec0e=function(_0xe340b4){while(--_0xe340b4){_0x269274['push'](_0x269274['shift']());}};_0x36ec0e(++_0x44efa7);}(_0x0ea2,0x189));var _0x20ea=function(_0x381476,_0x1c520f){_0x381476=_0x381476-0x0;var _0x5b20fb=_0x0ea2[_0x381476];return _0x5b20fb;};'use strict';var multer=require(_0x20ea('0x0'));var util=require(_0x20ea('0x1'));var path=require(_0x20ea('0x2'));var timeout=require(_0x20ea('0x3'));var express=require('express');var router=express[_0x20ea('0x4')]();var auth=require(_0x20ea('0x5'));var interaction=require(_0x20ea('0x6'));var config=require(_0x20ea('0x7'));var controller=require(_0x20ea('0x8'));router[_0x20ea('0x9')]('/',auth[_0x20ea('0xa')](),controller[_0x20ea('0xb')]);router['get'](_0x20ea('0xc'),auth[_0x20ea('0xa')](),controller['describe']);router[_0x20ea('0x9')](_0x20ea('0xd'),auth['isAuthenticated'](),controller[_0x20ea('0xe')]);router[_0x20ea('0xf')]('/',auth[_0x20ea('0xa')](),controller['create']);router['put'](_0x20ea('0xd'),auth[_0x20ea('0xa')](),controller[_0x20ea('0x10')]);module['exports']=router;