2e0f2df64272bb475cb34666a990161906e2abd2
[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 _0x24d8=['delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','post','put','update'];(function(_0x4f1074,_0x2ccc81){var _0x1fa6bf=function(_0x1635c4){while(--_0x1635c4){_0x4f1074['push'](_0x4f1074['shift']());}};_0x1fa6bf(++_0x2ccc81);}(_0x24d8,0x1bb));var _0x824d=function(_0x2db12b,_0x30ab1d){_0x2db12b=_0x2db12b-0x0;var _0x20990b=_0x24d8[_0x2db12b];return _0x20990b;};'use strict';var multer=require(_0x824d('0x0'));var util=require(_0x824d('0x1'));var path=require('path');var timeout=require(_0x824d('0x2'));var express=require(_0x824d('0x3'));var router=express[_0x824d('0x4')]();var fs_extra=require(_0x824d('0x5'));var auth=require(_0x824d('0x6'));var interaction=require(_0x824d('0x7'));var config=require(_0x824d('0x8'));var controller=require(_0x824d('0x9'));router[_0x824d('0xa')]('/',auth[_0x824d('0xb')](),controller[_0x824d('0xc')]);router[_0x824d('0xa')](_0x824d('0xd'),auth[_0x824d('0xb')](),controller['show']);router[_0x824d('0xe')]('/',auth[_0x824d('0xb')](),controller['create']);router[_0x824d('0xf')]('/:id',auth[_0x824d('0xb')](),controller[_0x824d('0x10')]);router[_0x824d('0x11')]('/:id',auth[_0x824d('0xb')](),controller[_0x824d('0x12')]);module[_0x824d('0x13')]=router;