Built motion from commit 746c7d2a.|2.5.35
[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 _0x97f2=['exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmHopperHistory.controller','get','isAuthenticated','create','put'];(function(_0x3ea513,_0x28dcc6){var _0x5c4497=function(_0x4c0f69){while(--_0x4c0f69){_0x3ea513['push'](_0x3ea513['shift']());}};_0x5c4497(++_0x28dcc6);}(_0x97f2,0x187));var _0x297f=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x97f2[_0x4a9fb1];return _0x348672;};'use strict';var multer=require('multer');var util=require(_0x297f('0x0'));var path=require(_0x297f('0x1'));var timeout=require(_0x297f('0x2'));var express=require(_0x297f('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x297f('0x4'));var interaction=require(_0x297f('0x5'));var config=require(_0x297f('0x6'));var controller=require(_0x297f('0x7'));router[_0x297f('0x8')]('/',auth[_0x297f('0x9')](),controller['index']);router[_0x297f('0x8')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0x297f('0x8')]('/:id',auth[_0x297f('0x9')](),controller['show']);router['post']('/',auth[_0x297f('0x9')](),controller[_0x297f('0xa')]);router[_0x297f('0xb')]('/:id',auth[_0x297f('0x9')](),controller['update']);module[_0x297f('0xc')]=router;