Built motion from commit (unavailable).|2.4.4
[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 _0x0d63=['../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id','show','download','put','update','delete','destroy','multer','util','path','connect-timeout','express'];(function(_0x1d0c98,_0x59bca9){var _0x397b08=function(_0x2a3c87){while(--_0x2a3c87){_0x1d0c98['push'](_0x1d0c98['shift']());}};_0x397b08(++_0x59bca9);}(_0x0d63,0xf2));var _0x30d6=function(_0x4843f9,_0x4af459){_0x4843f9=_0x4843f9-0x0;var _0x193c6a=_0x0d63[_0x4843f9];return _0x193c6a;};'use strict';var multer=require(_0x30d6('0x0'));var util=require(_0x30d6('0x1'));var path=require(_0x30d6('0x2'));var timeout=require(_0x30d6('0x3'));var express=require(_0x30d6('0x4'));var router=express['Router']();var auth=require(_0x30d6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x30d6('0x6'));var controller=require('./screenRecording.controller');router[_0x30d6('0x7')]('/',auth[_0x30d6('0x8')](),controller[_0x30d6('0x9')]);router['get'](_0x30d6('0xa'),auth[_0x30d6('0x8')](),controller[_0x30d6('0xb')]);router[_0x30d6('0x7')](_0x30d6('0xc'),auth[_0x30d6('0x8')](),controller[_0x30d6('0xd')]);router['get']('/:id/download',auth['isAuthenticated'](),controller[_0x30d6('0xe')]);router['post']('/',auth[_0x30d6('0x8')](),controller['create']);router[_0x30d6('0xf')]('/:id',auth[_0x30d6('0x8')](),controller[_0x30d6('0x10')]);router[_0x30d6('0x11')](_0x30d6('0xc'),auth[_0x30d6('0x8')](),controller[_0x30d6('0x12')]);module['exports']=router;