c6014112decbc355e44937c17e4df0838b58270c
[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 _0xb020=['../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','show','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x301b43,_0x4f2a0c){var _0x50d165=function(_0x388c88){while(--_0x388c88){_0x301b43['push'](_0x301b43['shift']());}};_0x50d165(++_0x4f2a0c);}(_0xb020,0x1d5));var _0x0b02=function(_0x1a809b,_0x4c15e3){_0x1a809b=_0x1a809b-0x0;var _0x5d90e6=_0xb020[_0x1a809b];return _0x5d90e6;};'use strict';var multer=require('multer');var util=require(_0x0b02('0x0'));var path=require(_0x0b02('0x1'));var timeout=require(_0x0b02('0x2'));var express=require(_0x0b02('0x3'));var router=express[_0x0b02('0x4')]();var auth=require(_0x0b02('0x5'));var interaction=require(_0x0b02('0x6'));var config=require(_0x0b02('0x7'));var controller=require(_0x0b02('0x8'));router[_0x0b02('0x9')]('/',auth[_0x0b02('0xa')](),controller[_0x0b02('0xb')]);router['get']('/:id',auth[_0x0b02('0xa')](),controller[_0x0b02('0xc')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x0b02('0xd')](_0x0b02('0xe'),auth[_0x0b02('0xa')](),controller[_0x0b02('0xf')]);router[_0x0b02('0x10')](_0x0b02('0xe'),auth[_0x0b02('0xa')](),controller[_0x0b02('0x11')]);module[_0x0b02('0x12')]=router;