Built motion from commit c738b9ac.|2.6.25
[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 _0x7a68=['../../components/interaction/service','../../config/environment','./screenRecording.controller','isAuthenticated','index','get','/describe','describe','/:id/download','post','create','put','/:id','delete','multer','util','path','connect-timeout','fs-extra','../../components/auth/service'];(function(_0x3c45e9,_0x454797){var _0x3b3c2e=function(_0x52136e){while(--_0x52136e){_0x3c45e9['push'](_0x3c45e9['shift']());}};_0x3b3c2e(++_0x454797);}(_0x7a68,0x126));var _0x87a6=function(_0x4bb3ed,_0x3b38f5){_0x4bb3ed=_0x4bb3ed-0x0;var _0x1064d4=_0x7a68[_0x4bb3ed];return _0x1064d4;};'use strict';var multer=require(_0x87a6('0x0'));var util=require(_0x87a6('0x1'));var path=require(_0x87a6('0x2'));var timeout=require(_0x87a6('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x87a6('0x4'));var auth=require(_0x87a6('0x5'));var interaction=require(_0x87a6('0x6'));var config=require(_0x87a6('0x7'));var controller=require(_0x87a6('0x8'));router['get']('/',auth[_0x87a6('0x9')](),controller[_0x87a6('0xa')]);router[_0x87a6('0xb')](_0x87a6('0xc'),auth['isAuthenticated'](),controller[_0x87a6('0xd')]);router[_0x87a6('0xb')]('/:id',auth[_0x87a6('0x9')](),controller['show']);router[_0x87a6('0xb')](_0x87a6('0xe'),auth['isAuthenticated'](),controller['download']);router[_0x87a6('0xf')]('/',auth[_0x87a6('0x9')](),controller[_0x87a6('0x10')]);router[_0x87a6('0x11')](_0x87a6('0x12'),auth[_0x87a6('0x9')](),controller['update']);router[_0x87a6('0x13')](_0x87a6('0x12'),auth[_0x87a6('0x9')](),controller['destroy']);module['exports']=router;