a854836b93a4405cef1751b53542799fd0493c0c
[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 _0x741c=['path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/describe','isAuthenticated','/:id','show','/:id/questions','post','create','put','update','delete','exports','multer','util'];(function(_0x4ae024,_0x2e3bfc){var _0x1b0f81=function(_0x52417d){while(--_0x52417d){_0x4ae024['push'](_0x4ae024['shift']());}};_0x1b0f81(++_0x2e3bfc);}(_0x741c,0x67));var _0xc741=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x741c[_0x19950b];return _0x3c6b41;};'use strict';var multer=require(_0xc741('0x0'));var util=require(_0xc741('0x1'));var path=require(_0xc741('0x2'));var timeout=require('connect-timeout');var express=require(_0xc741('0x3'));var router=express[_0xc741('0x4')]();var fs_extra=require(_0xc741('0x5'));var auth=require(_0xc741('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xc741('0x7'));var controller=require('./jscriptySessionReport.controller');router[_0xc741('0x8')]('/',auth['isAuthenticated'](),controller[_0xc741('0x9')]);router['get'](_0xc741('0xa'),auth[_0xc741('0xb')](),controller['describe']);router['get'](_0xc741('0xc'),auth[_0xc741('0xb')](),controller[_0xc741('0xd')]);router['get'](_0xc741('0xe'),auth[_0xc741('0xb')](),controller['getQuestions']);router[_0xc741('0xf')]('/',auth['isAuthenticated'](),controller[_0xc741('0x10')]);router[_0xc741('0x11')]('/:id',auth[_0xc741('0xb')](),controller[_0xc741('0x12')]);router[_0xc741('0x13')](_0xc741('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xc741('0x14')]=router;