Built motion from commit (unavailable).|2.5.31
[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 _0x5a13=['/:id','getSessions','/:id/answers','/:id/summary','post','create','/:id/clone','clone','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','get','isAuthenticated','index'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x5a13,0x145));var _0x35a1=function(_0x308cea,_0x18a76b){_0x308cea=_0x308cea-0x0;var _0x460e7a=_0x5a13[_0x308cea];return _0x460e7a;};'use strict';var multer=require(_0x35a1('0x0'));var util=require(_0x35a1('0x1'));var path=require('path');var timeout=require(_0x35a1('0x2'));var express=require(_0x35a1('0x3'));var router=express[_0x35a1('0x4')]();var fs_extra=require(_0x35a1('0x5'));var auth=require(_0x35a1('0x6'));var interaction=require(_0x35a1('0x7'));var config=require(_0x35a1('0x8'));var controller=require(_0x35a1('0x9'));router[_0x35a1('0xa')]('/',auth[_0x35a1('0xb')](),controller[_0x35a1('0xc')]);router[_0x35a1('0xa')](_0x35a1('0xd'),auth[_0x35a1('0xb')](),controller['show']);router['get']('/:id/sessions',auth[_0x35a1('0xb')](),controller[_0x35a1('0xe')]);router['get'](_0x35a1('0xf'),auth[_0x35a1('0xb')](),controller['getAnswers']);router['get'](_0x35a1('0x10'),auth[_0x35a1('0xb')](),timeout('30s'),controller['getSummary']);router[_0x35a1('0x11')]('/',auth['isAuthenticated'](),controller[_0x35a1('0x12')]);router['post'](_0x35a1('0x13'),auth[_0x35a1('0xb')](),controller[_0x35a1('0x14')]);router[_0x35a1('0x15')](_0x35a1('0xd'),auth[_0x35a1('0xb')](),controller[_0x35a1('0x16')]);router[_0x35a1('0x17')](_0x35a1('0xd'),auth[_0x35a1('0xb')](),controller[_0x35a1('0x18')]);module[_0x35a1('0x19')]=router;