Built motion from commit ecb45b58.|2.6.31
[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 _0x80fa=['create','put','update','delete','destroy','exports','util','path','connect-timeout','fs-extra','../../components/interaction/service','./jscriptyQuestionReport.controller','isAuthenticated','index','get','/describe','describe','/:id','show'];(function(_0x8e358b,_0x3c7af6){var _0x4673b0=function(_0x27eaae){while(--_0x27eaae){_0x8e358b['push'](_0x8e358b['shift']());}};_0x4673b0(++_0x3c7af6);}(_0x80fa,0x1bb));var _0xa80f=function(_0x3100fc,_0x5e0699){_0x3100fc=_0x3100fc-0x0;var _0x32f012=_0x80fa[_0x3100fc];return _0x32f012;};'use strict';var multer=require('multer');var util=require(_0xa80f('0x0'));var path=require(_0xa80f('0x1'));var timeout=require(_0xa80f('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xa80f('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xa80f('0x4'));var config=require('../../config/environment');var controller=require(_0xa80f('0x5'));router['get']('/',auth[_0xa80f('0x6')](),controller[_0xa80f('0x7')]);router[_0xa80f('0x8')](_0xa80f('0x9'),auth[_0xa80f('0x6')](),controller[_0xa80f('0xa')]);router[_0xa80f('0x8')](_0xa80f('0xb'),auth[_0xa80f('0x6')](),controller[_0xa80f('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa80f('0xd')]);router[_0xa80f('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xa80f('0xf')]);router[_0xa80f('0x10')](_0xa80f('0xb'),auth['isAuthenticated'](),controller[_0xa80f('0x11')]);module[_0xa80f('0x12')]=router;