Built motion from commit 9d1906d1.|2.5.40
[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 _0xe037=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperHistory.controller','get','/:id','isAuthenticated','post','update','exports','multer','util'];(function(_0x53a2e5,_0x2d9878){var _0x4ea182=function(_0xa78eeb){while(--_0xa78eeb){_0x53a2e5['push'](_0x53a2e5['shift']());}};_0x4ea182(++_0x2d9878);}(_0xe037,0xfd));var _0x7e03=function(_0x4d35f3,_0x19ba66){_0x4d35f3=_0x4d35f3-0x0;var _0x382fea=_0xe037[_0x4d35f3];return _0x382fea;};'use strict';var multer=require(_0x7e03('0x0'));var util=require(_0x7e03('0x1'));var path=require(_0x7e03('0x2'));var timeout=require(_0x7e03('0x3'));var express=require(_0x7e03('0x4'));var router=express[_0x7e03('0x5')]();var fs_extra=require(_0x7e03('0x6'));var auth=require(_0x7e03('0x7'));var interaction=require(_0x7e03('0x8'));var config=require(_0x7e03('0x9'));var controller=require(_0x7e03('0xa'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x7e03('0xb')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x7e03('0xb')](_0x7e03('0xc'),auth[_0x7e03('0xd')](),controller['show']);router[_0x7e03('0xe')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0x7e03('0xd')](),controller[_0x7e03('0xf')]);module[_0x7e03('0x10')]=router;