3da2b48aa81f4b0e3fe334061d6979a47c85b779
[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 _0x3210=['create','clone','put','update','delete','destroy','exports','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','isAuthenticated','index','get','/:id','show','/:id/sessions','/:id/answers','getAnswers','30s','getSummary'];(function(_0x9e3354,_0x53a6f9){var _0x312a11=function(_0x1060e3){while(--_0x1060e3){_0x9e3354['push'](_0x9e3354['shift']());}};_0x312a11(++_0x53a6f9);}(_0x3210,0x1b7));var _0x0321=function(_0x3c706b,_0x54564a){_0x3c706b=_0x3c706b-0x0;var _0x375ddb=_0x3210[_0x3c706b];return _0x375ddb;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x0321('0x0'));var express=require('express');var router=express[_0x0321('0x1')]();var fs_extra=require(_0x0321('0x2'));var auth=require(_0x0321('0x3'));var interaction=require(_0x0321('0x4'));var config=require(_0x0321('0x5'));var controller=require(_0x0321('0x6'));router['get']('/',auth[_0x0321('0x7')](),controller[_0x0321('0x8')]);router[_0x0321('0x9')](_0x0321('0xa'),auth[_0x0321('0x7')](),controller[_0x0321('0xb')]);router[_0x0321('0x9')](_0x0321('0xc'),auth[_0x0321('0x7')](),controller['getSessions']);router['get'](_0x0321('0xd'),auth['isAuthenticated'](),controller[_0x0321('0xe')]);router[_0x0321('0x9')]('/:id/summary',auth[_0x0321('0x7')](),timeout(_0x0321('0xf')),controller[_0x0321('0x10')]);router['post']('/',auth[_0x0321('0x7')](),controller[_0x0321('0x11')]);router['post']('/:id/clone',auth[_0x0321('0x7')](),controller[_0x0321('0x12')]);router[_0x0321('0x13')](_0x0321('0xa'),auth[_0x0321('0x7')](),controller[_0x0321('0x14')]);router[_0x0321('0x15')](_0x0321('0xa'),auth['isAuthenticated'](),controller[_0x0321('0x16')]);module[_0x0321('0x17')]=router;