6192b2ba6bb647bd03e56bcf38d1aa13dc376bbc
[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 _0x764e=['path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','exports','util'];(function(_0x377810,_0x213126){var _0x495e12=function(_0x5392ae){while(--_0x5392ae){_0x377810['push'](_0x377810['shift']());}};_0x495e12(++_0x213126);}(_0x764e,0x1ed));var _0xe764=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x764e[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require('multer');var util=require(_0xe764('0x0'));var path=require(_0xe764('0x1'));var timeout=require(_0xe764('0x2'));var express=require(_0xe764('0x3'));var router=express[_0xe764('0x4')]();var auth=require(_0xe764('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xe764('0x6'));var controller=require(_0xe764('0x7'));router[_0xe764('0x8')]('/',auth[_0xe764('0x9')](),controller[_0xe764('0xa')]);router[_0xe764('0x8')](_0xe764('0xb'),auth[_0xe764('0x9')](),controller[_0xe764('0xc')]);router[_0xe764('0xd')]('/',auth[_0xe764('0x9')](),controller[_0xe764('0xe')]);router['put']('/:id',auth[_0xe764('0x9')](),controller[_0xe764('0xf')]);router[_0xe764('0x10')](_0xe764('0xb'),auth[_0xe764('0x9')](),controller[_0xe764('0x11')]);module[_0xe764('0x12')]=router;