Built motion from commit 14588770.|2.5.38
[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 _0x86f0=['util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./screenRecording.controller','get','index','/describe','isAuthenticated','describe','/:id/download','delete','exports'];(function(_0x4563c1,_0x348ecb){var _0x45015f=function(_0x291510){while(--_0x291510){_0x4563c1['push'](_0x4563c1['shift']());}};_0x45015f(++_0x348ecb);}(_0x86f0,0x121));var _0x086f=function(_0x2822a0,_0x36626f){_0x2822a0=_0x2822a0-0x0;var _0x1648d5=_0x86f0[_0x2822a0];return _0x1648d5;};'use strict';var multer=require('multer');var util=require(_0x086f('0x0'));var path=require(_0x086f('0x1'));var timeout=require(_0x086f('0x2'));var express=require(_0x086f('0x3'));var router=express['Router']();var fs_extra=require(_0x086f('0x4'));var auth=require(_0x086f('0x5'));var interaction=require(_0x086f('0x6'));var config=require(_0x086f('0x7'));var controller=require(_0x086f('0x8'));router[_0x086f('0x9')]('/',auth['isAuthenticated'](),controller[_0x086f('0xa')]);router[_0x086f('0x9')](_0x086f('0xb'),auth[_0x086f('0xc')](),controller[_0x086f('0xd')]);router[_0x086f('0x9')]('/:id',auth[_0x086f('0xc')](),controller['show']);router['get'](_0x086f('0xe'),auth['isAuthenticated'](),controller['download']);router['post']('/',auth[_0x086f('0xc')](),controller['create']);router['put']('/:id',auth[_0x086f('0xc')](),controller['update']);router[_0x086f('0xf')]('/:id',auth[_0x086f('0xc')](),controller['destroy']);module[_0x086f('0x10')]=router;