ae75f258f0a6166e3cd50aea658a8ded5535289a
[motion2.git] / server / api / jscriptySessionReport / 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 _0x89f1=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','isAuthenticated','get','/describe','describe','show','/:id/questions','getQuestions','post','create','/:id','update','delete','destroy','exports','multer'];(function(_0x3ff69a,_0x4a224c){var _0x167484=function(_0x9fba43){while(--_0x9fba43){_0x3ff69a['push'](_0x3ff69a['shift']());}};_0x167484(++_0x4a224c);}(_0x89f1,0x1cd));var _0x189f=function(_0x5e9b23,_0x3069fd){_0x5e9b23=_0x5e9b23-0x0;var _0x27501f=_0x89f1[_0x5e9b23];return _0x27501f;};'use strict';var multer=require(_0x189f('0x0'));var util=require(_0x189f('0x1'));var path=require('path');var timeout=require(_0x189f('0x2'));var express=require(_0x189f('0x3'));var router=express[_0x189f('0x4')]();var fs_extra=require(_0x189f('0x5'));var auth=require(_0x189f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x189f('0x7'));var controller=require('./jscriptySessionReport.controller');router['get']('/',auth[_0x189f('0x8')](),controller['index']);router[_0x189f('0x9')](_0x189f('0xa'),auth[_0x189f('0x8')](),controller[_0x189f('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x189f('0xc')]);router[_0x189f('0x9')](_0x189f('0xd'),auth['isAuthenticated'](),controller[_0x189f('0xe')]);router[_0x189f('0xf')]('/',auth['isAuthenticated'](),controller[_0x189f('0x10')]);router['put'](_0x189f('0x11'),auth[_0x189f('0x8')](),controller[_0x189f('0x12')]);router[_0x189f('0x13')](_0x189f('0x11'),auth[_0x189f('0x8')](),controller[_0x189f('0x14')]);module[_0x189f('0x15')]=router;