bdd1c409b81590a1e59543d0d207a7f3e976eccc
[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 _0xe283=['isAuthenticated','index','describe','/:id','show','post','update','delete','destroy','exports','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./screenRecording.controller','get'];(function(_0x582877,_0x3a80a8){var _0x4bb230=function(_0x24f614){while(--_0x24f614){_0x582877['push'](_0x582877['shift']());}};_0x4bb230(++_0x3a80a8);}(_0xe283,0x196));var _0x3e28=function(_0x4e93a9,_0x413f30){_0x4e93a9=_0x4e93a9-0x0;var _0x43013c=_0xe283[_0x4e93a9];return _0x43013c;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3e28('0x0'));var timeout=require(_0x3e28('0x1'));var express=require(_0x3e28('0x2'));var router=express[_0x3e28('0x3')]();var fs_extra=require(_0x3e28('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3e28('0x5'));var config=require('../../config/environment');var controller=require(_0x3e28('0x6'));router[_0x3e28('0x7')]('/',auth[_0x3e28('0x8')](),controller[_0x3e28('0x9')]);router[_0x3e28('0x7')]('/describe',auth[_0x3e28('0x8')](),controller[_0x3e28('0xa')]);router[_0x3e28('0x7')](_0x3e28('0xb'),auth[_0x3e28('0x8')](),controller[_0x3e28('0xc')]);router['get']('/:id/download',auth[_0x3e28('0x8')](),controller['download']);router[_0x3e28('0xd')]('/',auth[_0x3e28('0x8')](),controller['create']);router['put']('/:id',auth[_0x3e28('0x8')](),controller[_0x3e28('0xe')]);router[_0x3e28('0xf')](_0x3e28('0xb'),auth['isAuthenticated'](),controller[_0x3e28('0x10')]);module[_0x3e28('0x11')]=router;