Built motion from commit (unavailable).|2.5.1
[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 _0x4480=['update','destroy','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./jscriptyProject.controller','isAuthenticated','index','get','/:id','show','getSessions','30s','getSummary','post','create','/:id/clone','clone'];(function(_0xda753c,_0x19af58){var _0x557f55=function(_0x236ac6){while(--_0x236ac6){_0xda753c['push'](_0xda753c['shift']());}};_0x557f55(++_0x19af58);}(_0x4480,0x80));var _0x0448=function(_0x58dc25,_0x49b9d5){_0x58dc25=_0x58dc25-0x0;var _0x21b0a7=_0x4480[_0x58dc25];return _0x21b0a7;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0448('0x0'));var timeout=require('connect-timeout');var express=require(_0x0448('0x1'));var router=express[_0x0448('0x2')]();var auth=require(_0x0448('0x3'));var interaction=require(_0x0448('0x4'));var config=require(_0x0448('0x5'));var controller=require(_0x0448('0x6'));router['get']('/',auth[_0x0448('0x7')](),controller[_0x0448('0x8')]);router[_0x0448('0x9')](_0x0448('0xa'),auth[_0x0448('0x7')](),controller[_0x0448('0xb')]);router['get']('/:id/sessions',auth[_0x0448('0x7')](),controller[_0x0448('0xc')]);router[_0x0448('0x9')]('/:id/answers',auth[_0x0448('0x7')](),controller['getAnswers']);router[_0x0448('0x9')]('/:id/summary',auth[_0x0448('0x7')](),timeout(_0x0448('0xd')),controller[_0x0448('0xe')]);router[_0x0448('0xf')]('/',auth[_0x0448('0x7')](),controller[_0x0448('0x10')]);router[_0x0448('0xf')](_0x0448('0x11'),auth[_0x0448('0x7')](),controller[_0x0448('0x12')]);router['put'](_0x0448('0xa'),auth['isAuthenticated'](),controller[_0x0448('0x13')]);router['delete'](_0x0448('0xa'),auth[_0x0448('0x7')](),controller[_0x0448('0x14')]);module['exports']=router;