Built motion from commit 753c950e.|2.5.42
[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 _0x63e2=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','post','update','delete','destroy','exports','multer','util','connect-timeout','fs-extra'];(function(_0x2f1d7a,_0x528503){var _0x12e2e4=function(_0x200c3d){while(--_0x200c3d){_0x2f1d7a['push'](_0x2f1d7a['shift']());}};_0x12e2e4(++_0x528503);}(_0x63e2,0x130));var _0x263e=function(_0x5e3d07,_0x2b7265){_0x5e3d07=_0x5e3d07-0x0;var _0x5b883a=_0x63e2[_0x5e3d07];return _0x5b883a;};'use strict';var multer=require(_0x263e('0x0'));var util=require(_0x263e('0x1'));var path=require('path');var timeout=require(_0x263e('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x263e('0x3'));var auth=require(_0x263e('0x4'));var interaction=require(_0x263e('0x5'));var config=require(_0x263e('0x6'));var controller=require('./jscriptyQuestionReport.controller');router[_0x263e('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0x263e('0x8')](),controller['describe']);router[_0x263e('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x263e('0x9')]('/',auth[_0x263e('0x8')](),controller['create']);router['put']('/:id',auth[_0x263e('0x8')](),controller[_0x263e('0xa')]);router[_0x263e('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x263e('0xc')]);module[_0x263e('0xd')]=router;