Built motion from commit 47436d59.|2.6.7
[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 _0xf7f4=['../../config/environment','./screenRecording.controller','get','isAuthenticated','index','/describe','/:id','show','/:id/download','post','update','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x205898,_0x177794){var _0x4ff4fa=function(_0x181b68){while(--_0x181b68){_0x205898['push'](_0x205898['shift']());}};_0x4ff4fa(++_0x177794);}(_0xf7f4,0x189));var _0x4f7f=function(_0x619ee8,_0x527418){_0x619ee8=_0x619ee8-0x0;var _0x423f2c=_0xf7f4[_0x619ee8];return _0x423f2c;};'use strict';var multer=require('multer');var util=require(_0x4f7f('0x0'));var path=require('path');var timeout=require(_0x4f7f('0x1'));var express=require(_0x4f7f('0x2'));var router=express[_0x4f7f('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x4f7f('0x4'));var interaction=require(_0x4f7f('0x5'));var config=require(_0x4f7f('0x6'));var controller=require(_0x4f7f('0x7'));router[_0x4f7f('0x8')]('/',auth[_0x4f7f('0x9')](),controller[_0x4f7f('0xa')]);router['get'](_0x4f7f('0xb'),auth[_0x4f7f('0x9')](),controller['describe']);router[_0x4f7f('0x8')](_0x4f7f('0xc'),auth[_0x4f7f('0x9')](),controller[_0x4f7f('0xd')]);router[_0x4f7f('0x8')](_0x4f7f('0xe'),auth[_0x4f7f('0x9')](),controller['download']);router[_0x4f7f('0xf')]('/',auth[_0x4f7f('0x9')](),controller['create']);router['put'](_0x4f7f('0xc'),auth['isAuthenticated'](),controller[_0x4f7f('0x10')]);router['delete'](_0x4f7f('0xc'),auth['isAuthenticated'](),controller[_0x4f7f('0x11')]);module[_0x4f7f('0x12')]=router;