Built motion from commit (unavailable).|2.3.92
[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 _0x99f7=['path','connect-timeout','express','../../components/interaction/service','../../config/environment','./jscriptySessionReport.controller','get','index','/describe','describe','/:id','isAuthenticated','getQuestions','post','create','put','update','destroy','exports','util'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0x99f7,0x9f));var _0x799f=function(_0xca0542,_0xda307d){_0xca0542=_0xca0542-0x0;var _0x52ee5c=_0x99f7[_0xca0542];return _0x52ee5c;};'use strict';var multer=require('multer');var util=require(_0x799f('0x0'));var path=require(_0x799f('0x1'));var timeout=require(_0x799f('0x2'));var express=require(_0x799f('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x799f('0x4'));var config=require(_0x799f('0x5'));var controller=require(_0x799f('0x6'));router[_0x799f('0x7')]('/',auth['isAuthenticated'](),controller[_0x799f('0x8')]);router[_0x799f('0x7')](_0x799f('0x9'),auth['isAuthenticated'](),controller[_0x799f('0xa')]);router[_0x799f('0x7')](_0x799f('0xb'),auth[_0x799f('0xc')](),controller['show']);router['get']('/:id/questions',auth[_0x799f('0xc')](),controller[_0x799f('0xd')]);router[_0x799f('0xe')]('/',auth[_0x799f('0xc')](),controller[_0x799f('0xf')]);router[_0x799f('0x10')]('/:id',auth[_0x799f('0xc')](),controller[_0x799f('0x11')]);router['delete'](_0x799f('0xb'),auth[_0x799f('0xc')](),controller[_0x799f('0x12')]);module[_0x799f('0x13')]=router;