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