Built motion from commit (unavailable).|2.5.20
[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 _0x453e=['../../components/auth/service','../../config/environment','./voiceContext.controller','get','/:id','isAuthenticated','show','post','put','update','exports','path','connect-timeout','express','Router'];(function(_0x2ab8f4,_0x192abd){var _0xf1bee6=function(_0x164784){while(--_0x164784){_0x2ab8f4['push'](_0x2ab8f4['shift']());}};_0xf1bee6(++_0x192abd);}(_0x453e,0xce));var _0xe453=function(_0x5a9397,_0x2e444c){_0x5a9397=_0x5a9397-0x0;var _0x5b89be=_0x453e[_0x5a9397];return _0x5b89be;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe453('0x0'));var timeout=require(_0xe453('0x1'));var express=require(_0xe453('0x2'));var router=express[_0xe453('0x3')]();var auth=require(_0xe453('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe453('0x5'));var controller=require(_0xe453('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xe453('0x7')](_0xe453('0x8'),auth[_0xe453('0x9')](),controller[_0xe453('0xa')]);router[_0xe453('0xb')]('/',auth[_0xe453('0x9')](),controller['create']);router[_0xe453('0xc')](_0xe453('0x8'),auth['isAuthenticated'](),controller[_0xe453('0xd')]);router['delete'](_0xe453('0x8'),auth[_0xe453('0x9')](),controller['destroy']);module[_0xe453('0xe')]=router;