Built motion from commit (unavailable).|2.5.4
[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 _0x9f62=['./jscriptySessionReport.controller','get','isAuthenticated','/describe','describe','/:id/questions','create','/:id','destroy','exports','util','connect-timeout','express','Router','../../config/environment'];(function(_0x274598,_0x2c7251){var _0xbca5fa=function(_0x35459c){while(--_0x35459c){_0x274598['push'](_0x274598['shift']());}};_0xbca5fa(++_0x2c7251);}(_0x9f62,0x154));var _0x29f6=function(_0x4cfe52,_0x2728e0){_0x4cfe52=_0x4cfe52-0x0;var _0x9f5605=_0x9f62[_0x4cfe52];return _0x9f5605;};'use strict';var multer=require('multer');var util=require(_0x29f6('0x0'));var path=require('path');var timeout=require(_0x29f6('0x1'));var express=require(_0x29f6('0x2'));var router=express[_0x29f6('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x29f6('0x4'));var controller=require(_0x29f6('0x5'));router[_0x29f6('0x6')]('/',auth[_0x29f6('0x7')](),controller['index']);router[_0x29f6('0x6')](_0x29f6('0x8'),auth[_0x29f6('0x7')](),controller[_0x29f6('0x9')]);router[_0x29f6('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router['get'](_0x29f6('0xa'),auth[_0x29f6('0x7')](),controller['getQuestions']);router['post']('/',auth[_0x29f6('0x7')](),controller[_0x29f6('0xb')]);router['put'](_0x29f6('0xc'),auth[_0x29f6('0x7')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x29f6('0xd')]);module[_0x29f6('0xe')]=router;