Built motion from commit 85328c08.|2.5.50
[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 _0x8f3b=['isAuthenticated','post','put','delete','destroy','multer','path','express','Router','../../components/interaction/service','../../config/environment','get','index','/describe','describe','/:id','show','/:id/download'];(function(_0x5dbe34,_0x17081c){var _0xd9592b=function(_0x52164e){while(--_0x52164e){_0x5dbe34['push'](_0x5dbe34['shift']());}};_0xd9592b(++_0x17081c);}(_0x8f3b,0x1d9));var _0xb8f3=function(_0x201515,_0x202dc4){_0x201515=_0x201515-0x0;var _0x3163ae=_0x8f3b[_0x201515];return _0x3163ae;};'use strict';var multer=require(_0xb8f3('0x0'));var util=require('util');var path=require(_0xb8f3('0x1'));var timeout=require('connect-timeout');var express=require(_0xb8f3('0x2'));var router=express[_0xb8f3('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb8f3('0x4'));var config=require(_0xb8f3('0x5'));var controller=require('./screenRecording.controller');router[_0xb8f3('0x6')]('/',auth['isAuthenticated'](),controller[_0xb8f3('0x7')]);router['get'](_0xb8f3('0x8'),auth['isAuthenticated'](),controller[_0xb8f3('0x9')]);router[_0xb8f3('0x6')](_0xb8f3('0xa'),auth['isAuthenticated'](),controller[_0xb8f3('0xb')]);router['get'](_0xb8f3('0xc'),auth[_0xb8f3('0xd')](),controller['download']);router[_0xb8f3('0xe')]('/',auth[_0xb8f3('0xd')](),controller['create']);router[_0xb8f3('0xf')]('/:id',auth[_0xb8f3('0xd')](),controller['update']);router[_0xb8f3('0x10')](_0xb8f3('0xa'),auth['isAuthenticated'](),controller[_0xb8f3('0x11')]);module['exports']=router;