28328780134d5789164445439180b0cb921ce2f2
[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 _0x5a26=['put','update','delete','exports','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','index','get','/describe','isAuthenticated','/:id','/:id/questions','getQuestions','post','create'];(function(_0x401b82,_0x1fa8da){var _0x26c874=function(_0x52923b){while(--_0x52923b){_0x401b82['push'](_0x401b82['shift']());}};_0x26c874(++_0x1fa8da);}(_0x5a26,0x1e8));var _0x65a2=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x5a26[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x65a2('0x0'));var util=require('util');var path=require(_0x65a2('0x1'));var timeout=require('connect-timeout');var express=require(_0x65a2('0x2'));var router=express[_0x65a2('0x3')]();var fs_extra=require(_0x65a2('0x4'));var auth=require(_0x65a2('0x5'));var interaction=require(_0x65a2('0x6'));var config=require(_0x65a2('0x7'));var controller=require(_0x65a2('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x65a2('0x9')]);router[_0x65a2('0xa')](_0x65a2('0xb'),auth[_0x65a2('0xc')](),controller['describe']);router[_0x65a2('0xa')](_0x65a2('0xd'),auth[_0x65a2('0xc')](),controller['show']);router[_0x65a2('0xa')](_0x65a2('0xe'),auth[_0x65a2('0xc')](),controller[_0x65a2('0xf')]);router[_0x65a2('0x10')]('/',auth[_0x65a2('0xc')](),controller[_0x65a2('0x11')]);router[_0x65a2('0x12')](_0x65a2('0xd'),auth[_0x65a2('0xc')](),controller[_0x65a2('0x13')]);router[_0x65a2('0x14')](_0x65a2('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x65a2('0x15')]=router;