Built motion from commit eddce310.|2.6.12
[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 _0xb2f3=['destroy','exports','util','path','connect-timeout','express','fs-extra','../../components/interaction/service','../../config/environment','./screenRecording.controller','isAuthenticated','get','/describe','describe','/:id','download','post','create','update'];(function(_0x131f4d,_0x934915){var _0x2a8bee=function(_0x416582){while(--_0x416582){_0x131f4d['push'](_0x131f4d['shift']());}};_0x2a8bee(++_0x934915);}(_0xb2f3,0x17e));var _0x3b2f=function(_0x819464,_0x46fc91){_0x819464=_0x819464-0x0;var _0x49dcc0=_0xb2f3[_0x819464];return _0x49dcc0;};'use strict';var multer=require('multer');var util=require(_0x3b2f('0x0'));var path=require(_0x3b2f('0x1'));var timeout=require(_0x3b2f('0x2'));var express=require(_0x3b2f('0x3'));var router=express['Router']();var fs_extra=require(_0x3b2f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3b2f('0x5'));var config=require(_0x3b2f('0x6'));var controller=require(_0x3b2f('0x7'));router['get']('/',auth[_0x3b2f('0x8')](),controller['index']);router[_0x3b2f('0x9')](_0x3b2f('0xa'),auth[_0x3b2f('0x8')](),controller[_0x3b2f('0xb')]);router[_0x3b2f('0x9')](_0x3b2f('0xc'),auth[_0x3b2f('0x8')](),controller['show']);router[_0x3b2f('0x9')]('/:id/download',auth[_0x3b2f('0x8')](),controller[_0x3b2f('0xd')]);router[_0x3b2f('0xe')]('/',auth[_0x3b2f('0x8')](),controller[_0x3b2f('0xf')]);router['put'](_0x3b2f('0xc'),auth[_0x3b2f('0x8')](),controller[_0x3b2f('0x10')]);router['delete'](_0x3b2f('0xc'),auth[_0x3b2f('0x8')](),controller[_0x3b2f('0x11')]);module[_0x3b2f('0x12')]=router;