Built motion from commit (unavailable).|2.5.7
[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 _0xf034=['../../components/interaction/service','./jscriptyProject.controller','get','isAuthenticated','index','/:id','show','/:id/sessions','/:id/summary','30s','getSummary','create','post','/:id/clone','clone','put','update','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service'];(function(_0x3ae2b2,_0x2d936f){var _0x1dbf00=function(_0x4072e9){while(--_0x4072e9){_0x3ae2b2['push'](_0x3ae2b2['shift']());}};_0x1dbf00(++_0x2d936f);}(_0xf034,0x1ef));var _0x4f03=function(_0x38f6ee,_0x31e789){_0x38f6ee=_0x38f6ee-0x0;var _0x3aca1f=_0xf034[_0x38f6ee];return _0x3aca1f;};'use strict';var multer=require(_0x4f03('0x0'));var util=require(_0x4f03('0x1'));var path=require('path');var timeout=require(_0x4f03('0x2'));var express=require('express');var router=express[_0x4f03('0x3')]();var auth=require(_0x4f03('0x4'));var interaction=require(_0x4f03('0x5'));var config=require('../../config/environment');var controller=require(_0x4f03('0x6'));router[_0x4f03('0x7')]('/',auth[_0x4f03('0x8')](),controller[_0x4f03('0x9')]);router[_0x4f03('0x7')](_0x4f03('0xa'),auth[_0x4f03('0x8')](),controller[_0x4f03('0xb')]);router[_0x4f03('0x7')](_0x4f03('0xc'),auth[_0x4f03('0x8')](),controller['getSessions']);router[_0x4f03('0x7')]('/:id/answers',auth['isAuthenticated'](),controller['getAnswers']);router[_0x4f03('0x7')](_0x4f03('0xd'),auth[_0x4f03('0x8')](),timeout(_0x4f03('0xe')),controller[_0x4f03('0xf')]);router['post']('/',auth[_0x4f03('0x8')](),controller[_0x4f03('0x10')]);router[_0x4f03('0x11')](_0x4f03('0x12'),auth[_0x4f03('0x8')](),controller[_0x4f03('0x13')]);router[_0x4f03('0x14')](_0x4f03('0xa'),auth['isAuthenticated'](),controller[_0x4f03('0x15')]);router[_0x4f03('0x16')](_0x4f03('0xa'),auth[_0x4f03('0x8')](),controller[_0x4f03('0x17')]);module[_0x4f03('0x18')]=router;