6a8a71ced3f1c44637103c2c107445181add2c10
[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 _0xb793=['create','/:id','update','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./screenRecording.controller','get','isAuthenticated','index','show','/:id/download','download','post'];(function(_0x4052e3,_0x1c4dce){var _0x4bdd82=function(_0x3b1526){while(--_0x3b1526){_0x4052e3['push'](_0x4052e3['shift']());}};_0x4bdd82(++_0x1c4dce);}(_0xb793,0x1d2));var _0x3b79=function(_0x49d7ef,_0x27b8f5){_0x49d7ef=_0x49d7ef-0x0;var _0x3c7083=_0xb793[_0x49d7ef];return _0x3c7083;};'use strict';var multer=require(_0x3b79('0x0'));var util=require(_0x3b79('0x1'));var path=require(_0x3b79('0x2'));var timeout=require(_0x3b79('0x3'));var express=require(_0x3b79('0x4'));var router=express[_0x3b79('0x5')]();var fs_extra=require(_0x3b79('0x6'));var auth=require(_0x3b79('0x7'));var interaction=require(_0x3b79('0x8'));var config=require(_0x3b79('0x9'));var controller=require(_0x3b79('0xa'));router[_0x3b79('0xb')]('/',auth[_0x3b79('0xc')](),controller[_0x3b79('0xd')]);router[_0x3b79('0xb')]('/describe',auth['isAuthenticated'](),controller['describe']);router['get']('/:id',auth[_0x3b79('0xc')](),controller[_0x3b79('0xe')]);router[_0x3b79('0xb')](_0x3b79('0xf'),auth[_0x3b79('0xc')](),controller[_0x3b79('0x10')]);router[_0x3b79('0x11')]('/',auth[_0x3b79('0xc')](),controller[_0x3b79('0x12')]);router['put'](_0x3b79('0x13'),auth[_0x3b79('0xc')](),controller[_0x3b79('0x14')]);router['delete'](_0x3b79('0x13'),auth[_0x3b79('0xc')](),controller['destroy']);module[_0x3b79('0x15')]=router;