Built motion from commit 449495f6.|2.6.27
[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 _0x30fe=['../../config/environment','./jscriptyQuestionReport.controller','isAuthenticated','index','get','/describe','describe','post','create','put','/:id','update','delete','multer','util','path','express'];(function(_0x2f75d0,_0x5c990d){var _0x137d2d=function(_0x4d3042){while(--_0x4d3042){_0x2f75d0['push'](_0x2f75d0['shift']());}};_0x137d2d(++_0x5c990d);}(_0x30fe,0xd9));var _0xe30f=function(_0x1ae9ff,_0x89c032){_0x1ae9ff=_0x1ae9ff-0x0;var _0x4b16ea=_0x30fe[_0x1ae9ff];return _0x4b16ea;};'use strict';var multer=require(_0xe30f('0x0'));var util=require(_0xe30f('0x1'));var path=require(_0xe30f('0x2'));var timeout=require('connect-timeout');var express=require(_0xe30f('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe30f('0x4'));var controller=require(_0xe30f('0x5'));router['get']('/',auth[_0xe30f('0x6')](),controller[_0xe30f('0x7')]);router[_0xe30f('0x8')](_0xe30f('0x9'),auth['isAuthenticated'](),controller[_0xe30f('0xa')]);router[_0xe30f('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xe30f('0xb')]('/',auth['isAuthenticated'](),controller[_0xe30f('0xc')]);router[_0xe30f('0xd')](_0xe30f('0xe'),auth[_0xe30f('0x6')](),controller[_0xe30f('0xf')]);router[_0xe30f('0x10')]('/:id',auth[_0xe30f('0x6')](),controller['destroy']);module['exports']=router;