0ac3754d15602dec1db394c90aa1cec1992e0577
[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 _0x708b=['multer','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','show','post','create','put','delete','/:id'];(function(_0x5285b1,_0x18ff14){var _0x1294ed=function(_0x37f1f6){while(--_0x37f1f6){_0x5285b1['push'](_0x5285b1['shift']());}};_0x1294ed(++_0x18ff14);}(_0x708b,0x77));var _0xb708=function(_0x523ce3,_0x9790e4){_0x523ce3=_0x523ce3-0x0;var _0x4dcd46=_0x708b[_0x523ce3];return _0x4dcd46;};'use strict';var multer=require(_0xb708('0x0'));var util=require(_0xb708('0x1'));var path=require(_0xb708('0x2'));var timeout=require(_0xb708('0x3'));var express=require(_0xb708('0x4'));var router=express['Router']();var auth=require(_0xb708('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xb708('0x6'));var controller=require(_0xb708('0x7'));router[_0xb708('0x8')]('/',auth[_0xb708('0x9')](),controller[_0xb708('0xa')]);router[_0xb708('0x8')]('/:id',auth[_0xb708('0x9')](),controller[_0xb708('0xb')]);router[_0xb708('0xc')]('/',auth[_0xb708('0x9')](),controller[_0xb708('0xd')]);router[_0xb708('0xe')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xb708('0xf')](_0xb708('0x10'),auth[_0xb708('0x9')](),controller['destroy']);module['exports']=router;