89e105416d3e59ec54fdc1b74ae8d96ff53b47b1
[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 _0x49c1=['show','getSessions','/:id/answers','getAnswers','30s','getSummary','post','create','/:id/clone','clone','put','delete','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment','./jscriptyProject.controller','isAuthenticated','get','/:id'];(function(_0xf3a44f,_0x34864e){var _0x2f01a5=function(_0x4bf61d){while(--_0x4bf61d){_0xf3a44f['push'](_0xf3a44f['shift']());}};_0x2f01a5(++_0x34864e);}(_0x49c1,0xef));var _0x149c=function(_0x37819c,_0x50d2e9){_0x37819c=_0x37819c-0x0;var _0x42e420=_0x49c1[_0x37819c];return _0x42e420;};'use strict';var multer=require(_0x149c('0x0'));var util=require('util');var path=require(_0x149c('0x1'));var timeout=require(_0x149c('0x2'));var express=require(_0x149c('0x3'));var router=express['Router']();var fs_extra=require(_0x149c('0x4'));var auth=require(_0x149c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x149c('0x6'));var controller=require(_0x149c('0x7'));router['get']('/',auth[_0x149c('0x8')](),controller['index']);router[_0x149c('0x9')](_0x149c('0xa'),auth['isAuthenticated'](),controller[_0x149c('0xb')]);router[_0x149c('0x9')]('/:id/sessions',auth[_0x149c('0x8')](),controller[_0x149c('0xc')]);router['get'](_0x149c('0xd'),auth[_0x149c('0x8')](),controller[_0x149c('0xe')]);router[_0x149c('0x9')]('/:id/summary',auth[_0x149c('0x8')](),timeout(_0x149c('0xf')),controller[_0x149c('0x10')]);router[_0x149c('0x11')]('/',auth[_0x149c('0x8')](),controller[_0x149c('0x12')]);router[_0x149c('0x11')](_0x149c('0x13'),auth['isAuthenticated'](),controller[_0x149c('0x14')]);router[_0x149c('0x15')]('/:id',auth[_0x149c('0x8')](),controller['update']);router[_0x149c('0x16')](_0x149c('0xa'),auth[_0x149c('0x8')](),controller[_0x149c('0x17')]);module[_0x149c('0x18')]=router;