Built motion from commit f7863d46.|2.5.41
[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 _0x612c=['/:id/sessions','/:id/answers','getAnswers','/:id/summary','30s','create','post','/:id/clone','clone','/:id','update','delete','destroy','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./jscriptyProject.controller','get','isAuthenticated','index','show'];(function(_0x43f756,_0xae9f58){var _0x5ba710=function(_0x5205d4){while(--_0x5205d4){_0x43f756['push'](_0x43f756['shift']());}};_0x5ba710(++_0xae9f58);}(_0x612c,0x115));var _0xc612=function(_0x396f86,_0x23d793){_0x396f86=_0x396f86-0x0;var _0x147444=_0x612c[_0x396f86];return _0x147444;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc612('0x0'));var timeout=require('connect-timeout');var express=require(_0xc612('0x1'));var router=express[_0xc612('0x2')]();var fs_extra=require(_0xc612('0x3'));var auth=require(_0xc612('0x4'));var interaction=require(_0xc612('0x5'));var config=require('../../config/environment');var controller=require(_0xc612('0x6'));router[_0xc612('0x7')]('/',auth[_0xc612('0x8')](),controller[_0xc612('0x9')]);router[_0xc612('0x7')]('/:id',auth[_0xc612('0x8')](),controller[_0xc612('0xa')]);router[_0xc612('0x7')](_0xc612('0xb'),auth[_0xc612('0x8')](),controller['getSessions']);router[_0xc612('0x7')](_0xc612('0xc'),auth[_0xc612('0x8')](),controller[_0xc612('0xd')]);router[_0xc612('0x7')](_0xc612('0xe'),auth['isAuthenticated'](),timeout(_0xc612('0xf')),controller['getSummary']);router['post']('/',auth['isAuthenticated'](),controller[_0xc612('0x10')]);router[_0xc612('0x11')](_0xc612('0x12'),auth[_0xc612('0x8')](),controller[_0xc612('0x13')]);router['put'](_0xc612('0x14'),auth[_0xc612('0x8')](),controller[_0xc612('0x15')]);router[_0xc612('0x16')](_0xc612('0x14'),auth['isAuthenticated'](),controller[_0xc612('0x17')]);module['exports']=router;