Built motion from commit (unavailable).|2.5.11
[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 _0x6a2f=['create','put','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./voiceContext.controller','get','index','/:id','isAuthenticated','post'];(function(_0x40b0b9,_0x59cd60){var _0x28e0e2=function(_0x2b75c6){while(--_0x2b75c6){_0x40b0b9['push'](_0x40b0b9['shift']());}};_0x28e0e2(++_0x59cd60);}(_0x6a2f,0xd0));var _0xf6a2=function(_0x485c9f,_0x399a20){_0x485c9f=_0x485c9f-0x0;var _0x2ba76e=_0x6a2f[_0x485c9f];return _0x2ba76e;};'use strict';var multer=require(_0xf6a2('0x0'));var util=require('util');var path=require(_0xf6a2('0x1'));var timeout=require(_0xf6a2('0x2'));var express=require(_0xf6a2('0x3'));var router=express[_0xf6a2('0x4')]();var auth=require(_0xf6a2('0x5'));var interaction=require(_0xf6a2('0x6'));var config=require('../../config/environment');var controller=require(_0xf6a2('0x7'));router[_0xf6a2('0x8')]('/',auth['isAuthenticated'](),controller[_0xf6a2('0x9')]);router[_0xf6a2('0x8')](_0xf6a2('0xa'),auth[_0xf6a2('0xb')](),controller['show']);router[_0xf6a2('0xc')]('/',auth['isAuthenticated'](),controller[_0xf6a2('0xd')]);router[_0xf6a2('0xe')](_0xf6a2('0xa'),auth[_0xf6a2('0xb')](),controller['update']);router['delete']('/:id',auth[_0xf6a2('0xb')](),controller[_0xf6a2('0xf')]);module[_0xf6a2('0x10')]=router;