Built motion from commit 25580385.|2.6.2
[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 _0x967b=['describe','post','create','/:id','delete','util','path','connect-timeout','express','Router','../../components/interaction/service','./jscriptyQuestionReport.controller','isAuthenticated','get','/describe'];(function(_0x596de3,_0x41f133){var _0x50b3e5=function(_0x1b277d){while(--_0x1b277d){_0x596de3['push'](_0x596de3['shift']());}};_0x50b3e5(++_0x41f133);}(_0x967b,0x19a));var _0xb967=function(_0x3ea913,_0x255df2){_0x3ea913=_0x3ea913-0x0;var _0x2b4f28=_0x967b[_0x3ea913];return _0x2b4f28;};'use strict';var multer=require('multer');var util=require(_0xb967('0x0'));var path=require(_0xb967('0x1'));var timeout=require(_0xb967('0x2'));var express=require(_0xb967('0x3'));var router=express[_0xb967('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb967('0x5'));var config=require('../../config/environment');var controller=require(_0xb967('0x6'));router['get']('/',auth[_0xb967('0x7')](),controller['index']);router[_0xb967('0x8')](_0xb967('0x9'),auth[_0xb967('0x7')](),controller[_0xb967('0xa')]);router[_0xb967('0x8')]('/:id',auth[_0xb967('0x7')](),controller['show']);router[_0xb967('0xb')]('/',auth[_0xb967('0x7')](),controller[_0xb967('0xc')]);router['put'](_0xb967('0xd'),auth[_0xb967('0x7')](),controller['update']);router[_0xb967('0xe')]('/:id',auth['isAuthenticated'](),controller['destroy']);module['exports']=router;