Built motion from commit fe909640.|2.6.8
[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 _0xd36a=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/describe','post','put','/:id','util','path'];(function(_0x3c4162,_0x284c9a){var _0x2c1da4=function(_0x20a120){while(--_0x20a120){_0x3c4162['push'](_0x3c4162['shift']());}};_0x2c1da4(++_0x284c9a);}(_0xd36a,0x1b0));var _0xad36=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xd36a[_0x14add3];return _0x4a174f;};'use strict';var multer=require('multer');var util=require(_0xad36('0x0'));var path=require(_0xad36('0x1'));var timeout=require(_0xad36('0x2'));var express=require('express');var router=express[_0xad36('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xad36('0x4'));var interaction=require(_0xad36('0x5'));var config=require(_0xad36('0x6'));var controller=require('./cmHopperHistory.controller');router['get']('/',auth[_0xad36('0x7')](),controller[_0xad36('0x8')]);router[_0xad36('0x9')](_0xad36('0xa'),auth[_0xad36('0x7')](),controller['describe']);router['get']('/:id',auth[_0xad36('0x7')](),controller['show']);router[_0xad36('0xb')]('/',auth[_0xad36('0x7')](),controller['create']);router[_0xad36('0xc')](_0xad36('0xd'),auth[_0xad36('0x7')](),controller['update']);module['exports']=router;