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