c65b3f43d6c2fd0e0fb033fbe6a7c61f4915d79d
[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 _0x324f=['../../components/auth/service','../../components/interaction/service','./voiceContext.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util','path','Router'];(function(_0x39bfb6,_0x4272c8){var _0x23fef9=function(_0x5f83c1){while(--_0x5f83c1){_0x39bfb6['push'](_0x39bfb6['shift']());}};_0x23fef9(++_0x4272c8);}(_0x324f,0x94));var _0xf324=function(_0x1369c5,_0x48b717){_0x1369c5=_0x1369c5-0x0;var _0x6f395=_0x324f[_0x1369c5];return _0x6f395;};'use strict';var multer=require(_0xf324('0x0'));var util=require(_0xf324('0x1'));var path=require(_0xf324('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xf324('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xf324('0x4'));var interaction=require(_0xf324('0x5'));var config=require('../../config/environment');var controller=require(_0xf324('0x6'));router[_0xf324('0x7')]('/',auth['isAuthenticated'](),controller[_0xf324('0x8')]);router[_0xf324('0x7')](_0xf324('0x9'),auth[_0xf324('0xa')](),controller[_0xf324('0xb')]);router[_0xf324('0xc')]('/',auth[_0xf324('0xa')](),controller[_0xf324('0xd')]);router[_0xf324('0xe')]('/:id',auth[_0xf324('0xa')](),controller[_0xf324('0xf')]);router[_0xf324('0x10')](_0xf324('0x9'),auth['isAuthenticated'](),controller[_0xf324('0x11')]);module[_0xf324('0x12')]=router;