36544ec54a251bec920bd0a1a97ed58a12c7ef91
[motion2.git] / server / api / jscriptyAnswerReport / 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 _0x448c=['exports','util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyAnswerReport.controller','get','post','isAuthenticated','update','delete','/:id'];(function(_0x4b22c4,_0x550d36){var _0x497806=function(_0x348b65){while(--_0x348b65){_0x4b22c4['push'](_0x4b22c4['shift']());}};_0x497806(++_0x550d36);}(_0x448c,0x119));var _0xc448=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x448c[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0xc448('0x0'));var path=require(_0xc448('0x1'));var timeout=require('connect-timeout');var express=require(_0xc448('0x2'));var router=express['Router']();var auth=require(_0xc448('0x3'));var interaction=require(_0xc448('0x4'));var config=require(_0xc448('0x5'));var controller=require(_0xc448('0x6'));router[_0xc448('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xc448('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xc448('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xc448('0x8')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0xc448('0x9')](),controller[_0xc448('0xa')]);router[_0xc448('0xb')](_0xc448('0xc'),auth[_0xc448('0x9')](),controller['destroy']);module[_0xc448('0xd')]=router;