339a7b467e32df01db7b35772d352765583c603d
[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 _0x5301=['put','update','destroy','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','get','index','/describe','describe','/:id','isAuthenticated','show','getQuestions','post'];(function(_0x154192,_0x2d360f){var _0x3c2792=function(_0x2e257b){while(--_0x2e257b){_0x154192['push'](_0x154192['shift']());}};_0x3c2792(++_0x2d360f);}(_0x5301,0x157));var _0x1530=function(_0x2b146f,_0x31e0a9){_0x2b146f=_0x2b146f-0x0;var _0x40c7d4=_0x5301[_0x2b146f];return _0x40c7d4;};'use strict';var multer=require('multer');var util=require(_0x1530('0x0'));var path=require(_0x1530('0x1'));var timeout=require(_0x1530('0x2'));var express=require(_0x1530('0x3'));var router=express[_0x1530('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1530('0x5'));var config=require(_0x1530('0x6'));var controller=require(_0x1530('0x7'));router[_0x1530('0x8')]('/',auth['isAuthenticated'](),controller[_0x1530('0x9')]);router['get'](_0x1530('0xa'),auth['isAuthenticated'](),controller[_0x1530('0xb')]);router[_0x1530('0x8')](_0x1530('0xc'),auth[_0x1530('0xd')](),controller[_0x1530('0xe')]);router['get']('/:id/questions',auth[_0x1530('0xd')](),controller[_0x1530('0xf')]);router[_0x1530('0x10')]('/',auth[_0x1530('0xd')](),controller['create']);router[_0x1530('0x11')](_0x1530('0xc'),auth[_0x1530('0xd')](),controller[_0x1530('0x12')]);router['delete']('/:id',auth[_0x1530('0xd')](),controller[_0x1530('0x13')]);module['exports']=router;