Built motion from commit 19a84241.|2.5.34
[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 _0x814d=['multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../config/environment','./screenRecording.controller','isAuthenticated','get','/describe','/:id','show','download','create','put','update','delete','destroy','exports'];(function(_0x4e55a9,_0x241b22){var _0x4a9b67=function(_0x2a3bd1){while(--_0x2a3bd1){_0x4e55a9['push'](_0x4e55a9['shift']());}};_0x4a9b67(++_0x241b22);}(_0x814d,0x168));var _0xd814=function(_0x478409,_0x3f3b27){_0x478409=_0x478409-0x0;var _0x546d23=_0x814d[_0x478409];return _0x546d23;};'use strict';var multer=require(_0xd814('0x0'));var util=require(_0xd814('0x1'));var path=require(_0xd814('0x2'));var timeout=require(_0xd814('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xd814('0x4'));var auth=require(_0xd814('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xd814('0x6'));var controller=require(_0xd814('0x7'));router['get']('/',auth[_0xd814('0x8')](),controller['index']);router[_0xd814('0x9')](_0xd814('0xa'),auth['isAuthenticated'](),controller['describe']);router['get'](_0xd814('0xb'),auth[_0xd814('0x8')](),controller[_0xd814('0xc')]);router[_0xd814('0x9')]('/:id/download',auth[_0xd814('0x8')](),controller[_0xd814('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xd814('0xe')]);router[_0xd814('0xf')]('/:id',auth['isAuthenticated'](),controller[_0xd814('0x10')]);router[_0xd814('0x11')]('/:id',auth[_0xd814('0x8')](),controller[_0xd814('0x12')]);module[_0xd814('0x13')]=router;