066ed1066d9df6cd593cab09d3b2c457c229e335
[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 _0x3036=['describe','/:id','isAuthenticated','show','/:id/questions','getQuestions','create','put','delete','destroy','exports','path','connect-timeout','express','../../components/auth/service','get','index','/describe'];(function(_0x2f1762,_0xab43df){var _0x8ab21=function(_0xf6c1f5){while(--_0xf6c1f5){_0x2f1762['push'](_0x2f1762['shift']());}};_0x8ab21(++_0xab43df);}(_0x3036,0x1a9));var _0x6303=function(_0x23940a,_0x3708d8){_0x23940a=_0x23940a-0x0;var _0x21d480=_0x3036[_0x23940a];return _0x21d480;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6303('0x0'));var timeout=require(_0x6303('0x1'));var express=require(_0x6303('0x2'));var router=express['Router']();var auth=require(_0x6303('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./jscriptySessionReport.controller');router[_0x6303('0x4')]('/',auth['isAuthenticated'](),controller[_0x6303('0x5')]);router[_0x6303('0x4')](_0x6303('0x6'),auth['isAuthenticated'](),controller[_0x6303('0x7')]);router[_0x6303('0x4')](_0x6303('0x8'),auth[_0x6303('0x9')](),controller[_0x6303('0xa')]);router[_0x6303('0x4')](_0x6303('0xb'),auth[_0x6303('0x9')](),controller[_0x6303('0xc')]);router['post']('/',auth[_0x6303('0x9')](),controller[_0x6303('0xd')]);router[_0x6303('0xe')](_0x6303('0x8'),auth[_0x6303('0x9')](),controller['update']);router[_0x6303('0xf')](_0x6303('0x8'),auth[_0x6303('0x9')](),controller[_0x6303('0x10')]);module[_0x6303('0x11')]=router;