dacad4f26606f4ed2591e07f00061905c79f728c
[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 _0x7f05=['exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','index','/:id','isAuthenticated','show','/:id/sessions','/:id/answers','getAnswers','get','/:id/summary','getSummary','post','create','/:id/clone','put','update','delete'];(function(_0x5ea7f1,_0xf80c83){var _0x305f33=function(_0x3df6bd){while(--_0x3df6bd){_0x5ea7f1['push'](_0x5ea7f1['shift']());}};_0x305f33(++_0xf80c83);}(_0x7f05,0x17b));var _0x57f0=function(_0x4e8e12,_0x2ed702){_0x4e8e12=_0x4e8e12-0x0;var _0x37f9a4=_0x7f05[_0x4e8e12];return _0x37f9a4;};'use strict';var multer=require('multer');var util=require(_0x57f0('0x0'));var path=require(_0x57f0('0x1'));var timeout=require(_0x57f0('0x2'));var express=require(_0x57f0('0x3'));var router=express[_0x57f0('0x4')]();var fs_extra=require(_0x57f0('0x5'));var auth=require(_0x57f0('0x6'));var interaction=require(_0x57f0('0x7'));var config=require(_0x57f0('0x8'));var controller=require(_0x57f0('0x9'));router['get']('/',auth['isAuthenticated'](),controller[_0x57f0('0xa')]);router['get'](_0x57f0('0xb'),auth[_0x57f0('0xc')](),controller[_0x57f0('0xd')]);router['get'](_0x57f0('0xe'),auth[_0x57f0('0xc')](),controller['getSessions']);router['get'](_0x57f0('0xf'),auth[_0x57f0('0xc')](),controller[_0x57f0('0x10')]);router[_0x57f0('0x11')](_0x57f0('0x12'),auth['isAuthenticated'](),timeout('30s'),controller[_0x57f0('0x13')]);router[_0x57f0('0x14')]('/',auth[_0x57f0('0xc')](),controller[_0x57f0('0x15')]);router[_0x57f0('0x14')](_0x57f0('0x16'),auth['isAuthenticated'](),controller['clone']);router[_0x57f0('0x17')](_0x57f0('0xb'),auth[_0x57f0('0xc')](),controller[_0x57f0('0x18')]);router[_0x57f0('0x19')](_0x57f0('0xb'),auth[_0x57f0('0xc')](),controller['destroy']);module[_0x57f0('0x1a')]=router;