Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / voiceContext / 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 _0x4ed9=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','destroy','exports','multer','util'];(function(_0x3a1ea5,_0x349f01){var _0xfac9b2=function(_0xd5310c){while(--_0xd5310c){_0x3a1ea5['push'](_0x3a1ea5['shift']());}};_0xfac9b2(++_0x349f01);}(_0x4ed9,0x1ca));var _0x94ed=function(_0x351908,_0xf6d758){_0x351908=_0x351908-0x0;var _0x4bad93=_0x4ed9[_0x351908];return _0x4bad93;};'use strict';var multer=require(_0x94ed('0x0'));var util=require(_0x94ed('0x1'));var path=require(_0x94ed('0x2'));var timeout=require('connect-timeout');var express=require(_0x94ed('0x3'));var router=express[_0x94ed('0x4')]();var auth=require(_0x94ed('0x5'));var interaction=require(_0x94ed('0x6'));var config=require(_0x94ed('0x7'));var controller=require('./voiceContext.controller');router[_0x94ed('0x8')]('/',auth[_0x94ed('0x9')](),controller[_0x94ed('0xa')]);router['get'](_0x94ed('0xb'),auth[_0x94ed('0x9')](),controller[_0x94ed('0xc')]);router[_0x94ed('0xd')]('/',auth['isAuthenticated'](),controller[_0x94ed('0xe')]);router[_0x94ed('0xf')](_0x94ed('0xb'),auth[_0x94ed('0x9')](),controller[_0x94ed('0x10')]);router[_0x94ed('0x11')]('/:id',auth[_0x94ed('0x9')](),controller[_0x94ed('0x12')]);module[_0x94ed('0x13')]=router;