d977f843455d79a4a7bca5c77a25fc657f4c4bd9
[motion2.git] / server / api / jscriptyProject / 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 _0x9af0=['isAuthenticated','/:id','show','/:id/sessions','getSessions','/:id/answers','getAnswers','/:id/summary','getSummary','create','post','/:id/clone','clone','update','delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','./jscriptyProject.controller','get'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9af0,0xd9));var _0x09af=function(_0x43a672,_0x1efe75){_0x43a672=_0x43a672-0x0;var _0x3e96e9=_0x9af0[_0x43a672];return _0x3e96e9;};'use strict';var multer=require(_0x09af('0x0'));var util=require(_0x09af('0x1'));var path=require(_0x09af('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x09af('0x3')]();var auth=require(_0x09af('0x4'));var interaction=require(_0x09af('0x5'));var config=require('../../config/environment');var controller=require(_0x09af('0x6'));router[_0x09af('0x7')]('/',auth[_0x09af('0x8')](),controller['index']);router['get'](_0x09af('0x9'),auth[_0x09af('0x8')](),controller[_0x09af('0xa')]);router['get'](_0x09af('0xb'),auth[_0x09af('0x8')](),controller[_0x09af('0xc')]);router[_0x09af('0x7')](_0x09af('0xd'),auth[_0x09af('0x8')](),controller[_0x09af('0xe')]);router[_0x09af('0x7')](_0x09af('0xf'),auth[_0x09af('0x8')](),timeout('30s'),controller[_0x09af('0x10')]);router['post']('/',auth[_0x09af('0x8')](),controller[_0x09af('0x11')]);router[_0x09af('0x12')](_0x09af('0x13'),auth[_0x09af('0x8')](),controller[_0x09af('0x14')]);router['put'](_0x09af('0x9'),auth['isAuthenticated'](),controller[_0x09af('0x15')]);router[_0x09af('0x16')](_0x09af('0x9'),auth['isAuthenticated'](),controller[_0x09af('0x17')]);module[_0x09af('0x18')]=router;