Built motion from commit 616d3211.|2.6.4
[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 _0x8a8b=['../../components/interaction/service','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show','create','update','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service'];(function(_0x305cc5,_0x317607){var _0x3ef26f=function(_0x309528){while(--_0x309528){_0x305cc5['push'](_0x305cc5['shift']());}};_0x3ef26f(++_0x317607);}(_0x8a8b,0x19c));var _0xb8a8=function(_0xf7e233,_0x337bd0){_0xf7e233=_0xf7e233-0x0;var _0x27a22a=_0x8a8b[_0xf7e233];return _0x27a22a;};'use strict';var multer=require('multer');var util=require(_0xb8a8('0x0'));var path=require(_0xb8a8('0x1'));var timeout=require('connect-timeout');var express=require(_0xb8a8('0x2'));var router=express[_0xb8a8('0x3')]();var fs_extra=require(_0xb8a8('0x4'));var auth=require(_0xb8a8('0x5'));var interaction=require(_0xb8a8('0x6'));var config=require(_0xb8a8('0x7'));var controller=require('./jscriptyQuestionReport.controller');router[_0xb8a8('0x8')]('/',auth[_0xb8a8('0x9')](),controller['index']);router[_0xb8a8('0x8')](_0xb8a8('0xa'),auth[_0xb8a8('0x9')](),controller[_0xb8a8('0xb')]);router[_0xb8a8('0x8')](_0xb8a8('0xc'),auth[_0xb8a8('0x9')](),controller[_0xb8a8('0xd')]);router['post']('/',auth[_0xb8a8('0x9')](),controller[_0xb8a8('0xe')]);router['put'](_0xb8a8('0xc'),auth['isAuthenticated'](),controller[_0xb8a8('0xf')]);router[_0xb8a8('0x10')](_0xb8a8('0xc'),auth['isAuthenticated'](),controller[_0xb8a8('0x11')]);module[_0xb8a8('0x12')]=router;