30faf8d990b58da04abca843037e4bbf2fdecfd8
[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 _0x0428=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./screenRecording.controller','get','isAuthenticated','index','/describe','describe','show','/:id/download','download','put','/:id','delete','exports','util','path','connect-timeout','express','Router'];(function(_0x5a4123,_0x5f0c47){var _0x1cd833=function(_0x355bb7){while(--_0x355bb7){_0x5a4123['push'](_0x5a4123['shift']());}};_0x1cd833(++_0x5f0c47);}(_0x0428,0xed));var _0x8042=function(_0x156dd7,_0x2be938){_0x156dd7=_0x156dd7-0x0;var _0x14f078=_0x0428[_0x156dd7];return _0x14f078;};'use strict';var multer=require('multer');var util=require(_0x8042('0x0'));var path=require(_0x8042('0x1'));var timeout=require(_0x8042('0x2'));var express=require(_0x8042('0x3'));var router=express[_0x8042('0x4')]();var fs_extra=require(_0x8042('0x5'));var auth=require(_0x8042('0x6'));var interaction=require(_0x8042('0x7'));var config=require(_0x8042('0x8'));var controller=require(_0x8042('0x9'));router[_0x8042('0xa')]('/',auth[_0x8042('0xb')](),controller[_0x8042('0xc')]);router[_0x8042('0xa')](_0x8042('0xd'),auth['isAuthenticated'](),controller[_0x8042('0xe')]);router[_0x8042('0xa')]('/:id',auth[_0x8042('0xb')](),controller[_0x8042('0xf')]);router[_0x8042('0xa')](_0x8042('0x10'),auth[_0x8042('0xb')](),controller[_0x8042('0x11')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x8042('0x12')](_0x8042('0x13'),auth[_0x8042('0xb')](),controller['update']);router[_0x8042('0x14')](_0x8042('0x13'),auth[_0x8042('0xb')](),controller['destroy']);module[_0x8042('0x15')]=router;