291c3917c69a2eaca81b2a4ac590822d0526d463
[motion2.git] / server / api / jscriptyQuestionReport / 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 _0x7a52=['express','Router','../../components/interaction/service','../../config/environment','./jscriptyQuestionReport.controller','get','isAuthenticated','index','describe','post','create','/:id','update','multer','path','connect-timeout'];(function(_0x2f0943,_0x4cfd45){var _0x4966f4=function(_0x19d8bc){while(--_0x19d8bc){_0x2f0943['push'](_0x2f0943['shift']());}};_0x4966f4(++_0x4cfd45);}(_0x7a52,0x1bd));var _0x27a5=function(_0x1a8fcc,_0x4c489b){_0x1a8fcc=_0x1a8fcc-0x0;var _0xab4e96=_0x7a52[_0x1a8fcc];return _0xab4e96;};'use strict';var multer=require(_0x27a5('0x0'));var util=require('util');var path=require(_0x27a5('0x1'));var timeout=require(_0x27a5('0x2'));var express=require(_0x27a5('0x3'));var router=express[_0x27a5('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x27a5('0x5'));var config=require(_0x27a5('0x6'));var controller=require(_0x27a5('0x7'));router[_0x27a5('0x8')]('/',auth[_0x27a5('0x9')](),controller[_0x27a5('0xa')]);router[_0x27a5('0x8')]('/describe',auth[_0x27a5('0x9')](),controller[_0x27a5('0xb')]);router['get']('/:id',auth[_0x27a5('0x9')](),controller['show']);router[_0x27a5('0xc')]('/',auth[_0x27a5('0x9')](),controller[_0x27a5('0xd')]);router['put'](_0x27a5('0xe'),auth[_0x27a5('0x9')](),controller[_0x27a5('0xf')]);router['delete']('/:id',auth[_0x27a5('0x9')](),controller['destroy']);module['exports']=router;