e90d7aeb5bda7e060fc8866aa9ed41b958d4453c
[motion2.git] / server / api / screenRecording / 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 _0x3a36=['download','put','update','delete','destroy','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./screenRecording.controller','get','isAuthenticated','/describe','describe','/:id','show'];(function(_0x27e7a6,_0x2de451){var _0x4203b2=function(_0x5aa24f){while(--_0x5aa24f){_0x27e7a6['push'](_0x27e7a6['shift']());}};_0x4203b2(++_0x2de451);}(_0x3a36,0xdd));var _0x63a3=function(_0x105a0e,_0x2ba036){_0x105a0e=_0x105a0e-0x0;var _0x20e398=_0x3a36[_0x105a0e];return _0x20e398;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x63a3('0x0'));var express=require(_0x63a3('0x1'));var router=express[_0x63a3('0x2')]();var fs_extra=require(_0x63a3('0x3'));var auth=require(_0x63a3('0x4'));var interaction=require(_0x63a3('0x5'));var config=require('../../config/environment');var controller=require(_0x63a3('0x6'));router[_0x63a3('0x7')]('/',auth[_0x63a3('0x8')](),controller['index']);router[_0x63a3('0x7')](_0x63a3('0x9'),auth['isAuthenticated'](),controller[_0x63a3('0xa')]);router[_0x63a3('0x7')](_0x63a3('0xb'),auth[_0x63a3('0x8')](),controller[_0x63a3('0xc')]);router[_0x63a3('0x7')]('/:id/download',auth[_0x63a3('0x8')](),controller[_0x63a3('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x63a3('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x63a3('0xf')]);router[_0x63a3('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x63a3('0x11')]);module['exports']=router;