0419691610cc936f99ffb7da9cf527c09fdf84a6
[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 _0xb31c=['delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/describe','isAuthenticated','describe','/:id','/:id/download','post','create','put','update'];(function(_0x4423fc,_0x386165){var _0x150146=function(_0x22efb9){while(--_0x22efb9){_0x4423fc['push'](_0x4423fc['shift']());}};_0x150146(++_0x386165);}(_0xb31c,0x10b));var _0xcb31=function(_0x58d3e4,_0x3bae7f){_0x58d3e4=_0x58d3e4-0x0;var _0x52ff5b=_0xb31c[_0x58d3e4];return _0x52ff5b;};'use strict';var multer=require('multer');var util=require(_0xcb31('0x0'));var path=require(_0xcb31('0x1'));var timeout=require(_0xcb31('0x2'));var express=require(_0xcb31('0x3'));var router=express[_0xcb31('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xcb31('0x5'));var interaction=require(_0xcb31('0x6'));var config=require(_0xcb31('0x7'));var controller=require('./screenRecording.controller');router[_0xcb31('0x8')]('/',auth['isAuthenticated'](),controller[_0xcb31('0x9')]);router['get'](_0xcb31('0xa'),auth[_0xcb31('0xb')](),controller[_0xcb31('0xc')]);router['get'](_0xcb31('0xd'),auth[_0xcb31('0xb')](),controller['show']);router['get'](_0xcb31('0xe'),auth[_0xcb31('0xb')](),controller['download']);router[_0xcb31('0xf')]('/',auth['isAuthenticated'](),controller[_0xcb31('0x10')]);router[_0xcb31('0x11')](_0xcb31('0xd'),auth[_0xcb31('0xb')](),controller[_0xcb31('0x12')]);router[_0xcb31('0x13')](_0xcb31('0xd'),auth['isAuthenticated'](),controller[_0xcb31('0x14')]);module[_0xcb31('0x15')]=router;