435e0d742b27fac332bf1bcb9ae061e9c63378a5
[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 _0x6290=['put','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./jscriptyAnswerReport.controller','isAuthenticated','get','/describe','describe','/:id','show','create'];(function(_0x2f6a10,_0x32b9f3){var _0x5e32e1=function(_0x11be3b){while(--_0x11be3b){_0x2f6a10['push'](_0x2f6a10['shift']());}};_0x5e32e1(++_0x32b9f3);}(_0x6290,0x122));var _0x0629=function(_0x3305f2,_0x421435){_0x3305f2=_0x3305f2-0x0;var _0xe2b665=_0x6290[_0x3305f2];return _0xe2b665;};'use strict';var multer=require('multer');var util=require(_0x0629('0x0'));var path=require(_0x0629('0x1'));var timeout=require(_0x0629('0x2'));var express=require(_0x0629('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x0629('0x4'));var config=require(_0x0629('0x5'));var controller=require(_0x0629('0x6'));router['get']('/',auth[_0x0629('0x7')](),controller['index']);router[_0x0629('0x8')](_0x0629('0x9'),auth['isAuthenticated'](),controller[_0x0629('0xa')]);router[_0x0629('0x8')](_0x0629('0xb'),auth[_0x0629('0x7')](),controller[_0x0629('0xc')]);router['post']('/',auth[_0x0629('0x7')](),controller[_0x0629('0xd')]);router[_0x0629('0xe')](_0x0629('0xb'),auth[_0x0629('0x7')](),controller[_0x0629('0xf')]);router[_0x0629('0x10')](_0x0629('0xb'),auth['isAuthenticated'](),controller[_0x0629('0x11')]);module[_0x0629('0x12')]=router;