7359adc5bd83ef133e85849df81bc5c453dead86
[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 _0x4b39=['/:id','update','delete','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./screenRecording.controller','isAuthenticated','index','get','post','create'];(function(_0xd3e0b9,_0xd80d4d){var _0x470133=function(_0x1aede8){while(--_0x1aede8){_0xd3e0b9['push'](_0xd3e0b9['shift']());}};_0x470133(++_0xd80d4d);}(_0x4b39,0x133));var _0x94b3=function(_0xcde2ee,_0x4d32cc){_0xcde2ee=_0xcde2ee-0x0;var _0x6eb7b2=_0x4b39[_0xcde2ee];return _0x6eb7b2;};'use strict';var multer=require(_0x94b3('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x94b3('0x1'));var express=require(_0x94b3('0x2'));var router=express[_0x94b3('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x94b3('0x4'));var interaction=require(_0x94b3('0x5'));var config=require(_0x94b3('0x6'));var controller=require(_0x94b3('0x7'));router['get']('/',auth[_0x94b3('0x8')](),controller[_0x94b3('0x9')]);router[_0x94b3('0xa')]('/describe',auth[_0x94b3('0x8')](),controller['describe']);router[_0x94b3('0xa')]('/:id',auth[_0x94b3('0x8')](),controller['show']);router[_0x94b3('0xa')]('/:id/download',auth[_0x94b3('0x8')](),controller['download']);router[_0x94b3('0xb')]('/',auth[_0x94b3('0x8')](),controller[_0x94b3('0xc')]);router['put'](_0x94b3('0xd'),auth['isAuthenticated'](),controller[_0x94b3('0xe')]);router[_0x94b3('0xf')](_0x94b3('0xd'),auth[_0x94b3('0x8')](),controller['destroy']);module['exports']=router;