Built motion from commit 10af8726.|2.6.34
[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 _0x986a=['post','create','put','/:id','update','delete','destroy','multer','util','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','show'];(function(_0x68dd4b,_0x52cabf){var _0x295b02=function(_0x1c67a8){while(--_0x1c67a8){_0x68dd4b['push'](_0x68dd4b['shift']());}};_0x295b02(++_0x52cabf);}(_0x986a,0xb1));var _0xa986=function(_0x334700,_0x36a3a5){_0x334700=_0x334700-0x0;var _0x2ea70c=_0x986a[_0x334700];return _0x2ea70c;};'use strict';var multer=require(_0xa986('0x0'));var util=require(_0xa986('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xa986('0x2'));var router=express['Router']();var fs_extra=require(_0xa986('0x3'));var auth=require(_0xa986('0x4'));var interaction=require(_0xa986('0x5'));var config=require(_0xa986('0x6'));var controller=require('./voiceContext.controller');router['get']('/',auth[_0xa986('0x7')](),controller[_0xa986('0x8')]);router['get']('/:id',auth[_0xa986('0x7')](),controller[_0xa986('0x9')]);router[_0xa986('0xa')]('/',auth[_0xa986('0x7')](),controller[_0xa986('0xb')]);router[_0xa986('0xc')](_0xa986('0xd'),auth['isAuthenticated'](),controller[_0xa986('0xe')]);router[_0xa986('0xf')](_0xa986('0xd'),auth['isAuthenticated'](),controller[_0xa986('0x10')]);module['exports']=router;