932f8c6264dcacf1aea8e76422643da4c0f96a8f
[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 _0x2ca6=['put','destroy','exports','multer','util','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','isAuthenticated','index','get','/:id','create'];(function(_0x25f626,_0x329182){var _0x55cd15=function(_0x255a16){while(--_0x255a16){_0x25f626['push'](_0x25f626['shift']());}};_0x55cd15(++_0x329182);}(_0x2ca6,0xd3));var _0x62ca=function(_0x2916c1,_0x266bf5){_0x2916c1=_0x2916c1-0x0;var _0x26658b=_0x2ca6[_0x2916c1];return _0x26658b;};'use strict';var multer=require(_0x62ca('0x0'));var util=require(_0x62ca('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x62ca('0x2'));var interaction=require(_0x62ca('0x3'));var config=require('../../config/environment');var controller=require(_0x62ca('0x4'));router['get']('/',auth[_0x62ca('0x5')](),controller[_0x62ca('0x6')]);router[_0x62ca('0x7')](_0x62ca('0x8'),auth[_0x62ca('0x5')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x62ca('0x9')]);router[_0x62ca('0xa')](_0x62ca('0x8'),auth[_0x62ca('0x5')](),controller['update']);router['delete']('/:id',auth[_0x62ca('0x5')](),controller[_0x62ca('0xb')]);module[_0x62ca('0xc')]=router;