a5221a630004d90b86c2749a62a2f398cdeff685
[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 _0x0fb7=['../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','/:id','download','post','create','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service'];(function(_0x4a383b,_0x418967){var _0x6dde1e=function(_0x26bac7){while(--_0x26bac7){_0x4a383b['push'](_0x4a383b['shift']());}};_0x6dde1e(++_0x418967);}(_0x0fb7,0x1e8));var _0x70fb=function(_0x4338d1,_0x25f589){_0x4338d1=_0x4338d1-0x0;var _0x2b495e=_0x0fb7[_0x4338d1];return _0x2b495e;};'use strict';var multer=require(_0x70fb('0x0'));var util=require(_0x70fb('0x1'));var path=require('path');var timeout=require(_0x70fb('0x2'));var express=require(_0x70fb('0x3'));var router=express[_0x70fb('0x4')]();var auth=require(_0x70fb('0x5'));var interaction=require(_0x70fb('0x6'));var config=require(_0x70fb('0x7'));var controller=require('./screenRecording.controller');router[_0x70fb('0x8')]('/',auth[_0x70fb('0x9')](),controller['index']);router['get']('/describe',auth[_0x70fb('0x9')](),controller[_0x70fb('0xa')]);router[_0x70fb('0x8')](_0x70fb('0xb'),auth[_0x70fb('0x9')](),controller['show']);router['get']('/:id/download',auth[_0x70fb('0x9')](),controller[_0x70fb('0xc')]);router[_0x70fb('0xd')]('/',auth[_0x70fb('0x9')](),controller[_0x70fb('0xe')]);router['put'](_0x70fb('0xb'),auth[_0x70fb('0x9')](),controller[_0x70fb('0xf')]);router[_0x70fb('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x70fb('0x11')]);module[_0x70fb('0x12')]=router;