5adcfdda658c807073c9b4fe6147d85e720373be
[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 _0xe53c=['get','isAuthenticated','index','/:id','post','create','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../config/environment','./voiceContext.controller'];(function(_0x34367f,_0xbd82cb){var _0x356072=function(_0x13b1c3){while(--_0x13b1c3){_0x34367f['push'](_0x34367f['shift']());}};_0x356072(++_0xbd82cb);}(_0xe53c,0x1b3));var _0xce53=function(_0x1a3c28,_0x4d892e){_0x1a3c28=_0x1a3c28-0x0;var _0x259952=_0xe53c[_0x1a3c28];return _0x259952;};'use strict';var multer=require(_0xce53('0x0'));var util=require(_0xce53('0x1'));var path=require(_0xce53('0x2'));var timeout=require(_0xce53('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xce53('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xce53('0x5'));var controller=require(_0xce53('0x6'));router[_0xce53('0x7')]('/',auth[_0xce53('0x8')](),controller[_0xce53('0x9')]);router[_0xce53('0x7')](_0xce53('0xa'),auth[_0xce53('0x8')](),controller['show']);router[_0xce53('0xb')]('/',auth['isAuthenticated'](),controller[_0xce53('0xc')]);router['put'](_0xce53('0xa'),auth[_0xce53('0x8')](),controller[_0xce53('0xd')]);router[_0xce53('0xe')](_0xce53('0xa'),auth[_0xce53('0x8')](),controller[_0xce53('0xf')]);module[_0xce53('0x10')]=router;