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