a4d4d671c1ed09134475a8bc9911a69d760a5517
[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 _0xb77a=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./screenRecording.controller','isAuthenticated','index','/describe','describe','get','/:id','show','download','post','create','update','delete','destroy','exports','path','connect-timeout','express'];(function(_0x45cb2b,_0x285349){var _0x9411a6=function(_0x15da36){while(--_0x15da36){_0x45cb2b['push'](_0x45cb2b['shift']());}};_0x9411a6(++_0x285349);}(_0xb77a,0x11b));var _0xab77=function(_0x556e80,_0x5cde84){_0x556e80=_0x556e80-0x0;var _0x432c6e=_0xb77a[_0x556e80];return _0x432c6e;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab77('0x0'));var timeout=require(_0xab77('0x1'));var express=require(_0xab77('0x2'));var router=express[_0xab77('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xab77('0x4'));var interaction=require(_0xab77('0x5'));var config=require(_0xab77('0x6'));var controller=require(_0xab77('0x7'));router['get']('/',auth[_0xab77('0x8')](),controller[_0xab77('0x9')]);router['get'](_0xab77('0xa'),auth[_0xab77('0x8')](),controller[_0xab77('0xb')]);router[_0xab77('0xc')](_0xab77('0xd'),auth[_0xab77('0x8')](),controller[_0xab77('0xe')]);router[_0xab77('0xc')]('/:id/download',auth[_0xab77('0x8')](),controller[_0xab77('0xf')]);router[_0xab77('0x10')]('/',auth[_0xab77('0x8')](),controller[_0xab77('0x11')]);router['put'](_0xab77('0xd'),auth['isAuthenticated'](),controller[_0xab77('0x12')]);router[_0xab77('0x13')](_0xab77('0xd'),auth[_0xab77('0x8')](),controller[_0xab77('0x14')]);module[_0xab77('0x15')]=router;