Built motion from commit da617fac.|2.6.6
[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 _0x6cf4=['download','post','create','update','delete','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/describe','/:id','show','/:id/download'];(function(_0x44c801,_0x5ad314){var _0x3f3468=function(_0x33ea2f){while(--_0x33ea2f){_0x44c801['push'](_0x44c801['shift']());}};_0x3f3468(++_0x5ad314);}(_0x6cf4,0x182));var _0x46cf=function(_0x594ece,_0x2a1f27){_0x594ece=_0x594ece-0x0;var _0x471bc4=_0x6cf4[_0x594ece];return _0x471bc4;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x46cf('0x0'));var timeout=require(_0x46cf('0x1'));var express=require('express');var router=express[_0x46cf('0x2')]();var fs_extra=require(_0x46cf('0x3'));var auth=require(_0x46cf('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x46cf('0x5'));var controller=require('./screenRecording.controller');router[_0x46cf('0x6')]('/',auth[_0x46cf('0x7')](),controller[_0x46cf('0x8')]);router[_0x46cf('0x6')](_0x46cf('0x9'),auth['isAuthenticated'](),controller['describe']);router['get'](_0x46cf('0xa'),auth[_0x46cf('0x7')](),controller[_0x46cf('0xb')]);router[_0x46cf('0x6')](_0x46cf('0xc'),auth['isAuthenticated'](),controller[_0x46cf('0xd')]);router[_0x46cf('0xe')]('/',auth[_0x46cf('0x7')](),controller[_0x46cf('0xf')]);router['put'](_0x46cf('0xa'),auth[_0x46cf('0x7')](),controller[_0x46cf('0x10')]);router[_0x46cf('0x11')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0x46cf('0x12')]=router;