Built motion from commit (unavailable).|2.5.4
[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 _0x46f7=['../../components/auth/service','../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','express','Router'];(function(_0x208d39,_0x5de94f){var _0x3f96cb=function(_0x23d510){while(--_0x23d510){_0x208d39['push'](_0x208d39['shift']());}};_0x3f96cb(++_0x5de94f);}(_0x46f7,0x194));var _0x746f=function(_0x243b2f,_0x30aa15){_0x243b2f=_0x243b2f-0x0;var _0xcb3c2d=_0x46f7[_0x243b2f];return _0xcb3c2d;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x746f('0x0'));var router=express[_0x746f('0x1')]();var auth=require(_0x746f('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0x746f('0x3'));var controller=require('./voiceContext.controller');router[_0x746f('0x4')]('/',auth[_0x746f('0x5')](),controller['index']);router[_0x746f('0x4')](_0x746f('0x6'),auth[_0x746f('0x5')](),controller[_0x746f('0x7')]);router[_0x746f('0x8')]('/',auth[_0x746f('0x5')](),controller[_0x746f('0x9')]);router[_0x746f('0xa')](_0x746f('0x6'),auth['isAuthenticated'](),controller[_0x746f('0xb')]);router[_0x746f('0xc')]('/:id',auth[_0x746f('0x5')](),controller[_0x746f('0xd')]);module['exports']=router;