Built motion from commit (unavailable).|2.5.23
[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 _0x9f6b=['path','connect-timeout','Router','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','/:id','show','post','create','put','destroy','exports','util'];(function(_0x25bea7,_0x49ab45){var _0x175952=function(_0x56a0b5){while(--_0x56a0b5){_0x25bea7['push'](_0x25bea7['shift']());}};_0x175952(++_0x49ab45);}(_0x9f6b,0xbf));var _0xb9f6=function(_0x24e503,_0x4dd2fd){_0x24e503=_0x24e503-0x0;var _0x261da8=_0x9f6b[_0x24e503];return _0x261da8;};'use strict';var multer=require('multer');var util=require(_0xb9f6('0x0'));var path=require(_0xb9f6('0x1'));var timeout=require(_0xb9f6('0x2'));var express=require('express');var router=express[_0xb9f6('0x3')]();var auth=require(_0xb9f6('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xb9f6('0x5'));var controller=require(_0xb9f6('0x6'));router[_0xb9f6('0x7')]('/',auth[_0xb9f6('0x8')](),controller['index']);router['get'](_0xb9f6('0x9'),auth['isAuthenticated'](),controller[_0xb9f6('0xa')]);router[_0xb9f6('0xb')]('/',auth['isAuthenticated'](),controller[_0xb9f6('0xc')]);router[_0xb9f6('0xd')](_0xb9f6('0x9'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xb9f6('0x9'),auth[_0xb9f6('0x8')](),controller[_0xb9f6('0xe')]);module[_0xb9f6('0xf')]=router;