4976ea84be985d5b5bcbed098c4dd0887c63df93
[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 _0x7d06=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./screenRecording.controller','get','isAuthenticated','index','describe','/:id','show','/:id/download','download','post','create','update','delete','exports','multer'];(function(_0x2c1ce0,_0x5d6cbe){var _0x13940a=function(_0x255085){while(--_0x255085){_0x2c1ce0['push'](_0x2c1ce0['shift']());}};_0x13940a(++_0x5d6cbe);}(_0x7d06,0xf1));var _0x67d0=function(_0x49808b,_0x470d6c){_0x49808b=_0x49808b-0x0;var _0x5bc770=_0x7d06[_0x49808b];return _0x5bc770;};'use strict';var multer=require(_0x67d0('0x0'));var util=require(_0x67d0('0x1'));var path=require(_0x67d0('0x2'));var timeout=require(_0x67d0('0x3'));var express=require(_0x67d0('0x4'));var router=express[_0x67d0('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x67d0('0x6'));var interaction=require(_0x67d0('0x7'));var config=require('../../config/environment');var controller=require(_0x67d0('0x8'));router[_0x67d0('0x9')]('/',auth[_0x67d0('0xa')](),controller[_0x67d0('0xb')]);router[_0x67d0('0x9')]('/describe',auth[_0x67d0('0xa')](),controller[_0x67d0('0xc')]);router['get'](_0x67d0('0xd'),auth[_0x67d0('0xa')](),controller[_0x67d0('0xe')]);router[_0x67d0('0x9')](_0x67d0('0xf'),auth[_0x67d0('0xa')](),controller[_0x67d0('0x10')]);router[_0x67d0('0x11')]('/',auth['isAuthenticated'](),controller[_0x67d0('0x12')]);router['put']('/:id',auth[_0x67d0('0xa')](),controller[_0x67d0('0x13')]);router[_0x67d0('0x14')](_0x67d0('0xd'),auth[_0x67d0('0xa')](),controller['destroy']);module[_0x67d0('0x15')]=router;