e07ce3b6e91ccca994390dd874addd0fb8535a8e
[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 _0xcb99=['util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','show','/:id/download','download','post','create','/:id','update','destroy','exports','multer'];(function(_0x31f0d5,_0x4b76e3){var _0x55253f=function(_0x19448f){while(--_0x19448f){_0x31f0d5['push'](_0x31f0d5['shift']());}};_0x55253f(++_0x4b76e3);}(_0xcb99,0x14f));var _0x9cb9=function(_0x32be74,_0x1c6d78){_0x32be74=_0x32be74-0x0;var _0x59407f=_0xcb99[_0x32be74];return _0x59407f;};'use strict';var multer=require(_0x9cb9('0x0'));var util=require(_0x9cb9('0x1'));var path=require('path');var timeout=require(_0x9cb9('0x2'));var express=require(_0x9cb9('0x3'));var router=express[_0x9cb9('0x4')]();var fs_extra=require(_0x9cb9('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x9cb9('0x6'));var config=require(_0x9cb9('0x7'));var controller=require('./screenRecording.controller');router[_0x9cb9('0x8')]('/',auth[_0x9cb9('0x9')](),controller[_0x9cb9('0xa')]);router[_0x9cb9('0x8')]('/describe',auth[_0x9cb9('0x9')](),controller[_0x9cb9('0xb')]);router[_0x9cb9('0x8')]('/:id',auth[_0x9cb9('0x9')](),controller[_0x9cb9('0xc')]);router[_0x9cb9('0x8')](_0x9cb9('0xd'),auth[_0x9cb9('0x9')](),controller[_0x9cb9('0xe')]);router[_0x9cb9('0xf')]('/',auth[_0x9cb9('0x9')](),controller[_0x9cb9('0x10')]);router['put'](_0x9cb9('0x11'),auth['isAuthenticated'](),controller[_0x9cb9('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x9cb9('0x13')]);module[_0x9cb9('0x14')]=router;