Built motion from commit 449495f6.|2.6.27
[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 _0xcf29=['exports','connect-timeout','express','../../components/interaction/service','../../config/environment','./cmHopperHistory.controller','isAuthenticated','index','get','/describe','show','post','create','/:id','update'];(function(_0x59472a,_0x53356c){var _0x3d060f=function(_0x3e6283){while(--_0x3e6283){_0x59472a['push'](_0x59472a['shift']());}};_0x3d060f(++_0x53356c);}(_0xcf29,0xb5));var _0x9cf2=function(_0x3457b4,_0x4cd8f9){_0x3457b4=_0x3457b4-0x0;var _0xaa8fa9=_0xcf29[_0x3457b4];return _0xaa8fa9;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x9cf2('0x0'));var express=require(_0x9cf2('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x9cf2('0x2'));var config=require(_0x9cf2('0x3'));var controller=require(_0x9cf2('0x4'));router['get']('/',auth[_0x9cf2('0x5')](),controller[_0x9cf2('0x6')]);router[_0x9cf2('0x7')](_0x9cf2('0x8'),auth[_0x9cf2('0x5')](),controller['describe']);router[_0x9cf2('0x7')]('/:id',auth[_0x9cf2('0x5')](),controller[_0x9cf2('0x9')]);router[_0x9cf2('0xa')]('/',auth[_0x9cf2('0x5')](),controller[_0x9cf2('0xb')]);router['put'](_0x9cf2('0xc'),auth['isAuthenticated'](),controller[_0x9cf2('0xd')]);module[_0x9cf2('0xe')]=router;