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