55d0f53f525ef76f326548adf9143555ecf0c416
[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 _0x7a08=['get','isAuthenticated','index','/describe','describe','/:id','show','getQuestions','post','create','update','destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller'];(function(_0x3e112d,_0x2bb132){var _0x531c31=function(_0x1954bc){while(--_0x1954bc){_0x3e112d['push'](_0x3e112d['shift']());}};_0x531c31(++_0x2bb132);}(_0x7a08,0x11e));var _0x87a0=function(_0x29a08d,_0x551eca){_0x29a08d=_0x29a08d-0x0;var _0x10fc1a=_0x7a08[_0x29a08d];return _0x10fc1a;};'use strict';var multer=require(_0x87a0('0x0'));var util=require(_0x87a0('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x87a0('0x2'));var router=express[_0x87a0('0x3')]();var auth=require(_0x87a0('0x4'));var interaction=require(_0x87a0('0x5'));var config=require(_0x87a0('0x6'));var controller=require(_0x87a0('0x7'));router[_0x87a0('0x8')]('/',auth[_0x87a0('0x9')](),controller[_0x87a0('0xa')]);router[_0x87a0('0x8')](_0x87a0('0xb'),auth['isAuthenticated'](),controller[_0x87a0('0xc')]);router[_0x87a0('0x8')](_0x87a0('0xd'),auth[_0x87a0('0x9')](),controller[_0x87a0('0xe')]);router['get']('/:id/questions',auth[_0x87a0('0x9')](),controller[_0x87a0('0xf')]);router[_0x87a0('0x10')]('/',auth[_0x87a0('0x9')](),controller[_0x87a0('0x11')]);router['put'](_0x87a0('0xd'),auth[_0x87a0('0x9')](),controller[_0x87a0('0x12')]);router['delete'](_0x87a0('0xd'),auth[_0x87a0('0x9')](),controller[_0x87a0('0x13')]);module[_0x87a0('0x14')]=router;