Built motion from commit b0a9a629.|2.6.33
[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 _0x369b=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','put','update','delete','destroy','util'];(function(_0x122c68,_0x42cded){var _0x363ab4=function(_0x3d7129){while(--_0x3d7129){_0x122c68['push'](_0x122c68['shift']());}};_0x363ab4(++_0x42cded);}(_0x369b,0x168));var _0xb369=function(_0xa1e3e3,_0x29fe0e){_0xa1e3e3=_0xa1e3e3-0x0;var _0xc980e9=_0x369b[_0xa1e3e3];return _0xc980e9;};'use strict';var multer=require('multer');var util=require(_0xb369('0x0'));var path=require(_0xb369('0x1'));var timeout=require(_0xb369('0x2'));var express=require(_0xb369('0x3'));var router=express[_0xb369('0x4')]();var fs_extra=require(_0xb369('0x5'));var auth=require(_0xb369('0x6'));var interaction=require(_0xb369('0x7'));var config=require(_0xb369('0x8'));var controller=require(_0xb369('0x9'));router[_0xb369('0xa')]('/',auth[_0xb369('0xb')](),controller[_0xb369('0xc')]);router[_0xb369('0xa')](_0xb369('0xd'),auth[_0xb369('0xb')](),controller[_0xb369('0xe')]);router['post']('/',auth[_0xb369('0xb')](),controller['create']);router[_0xb369('0xf')](_0xb369('0xd'),auth[_0xb369('0xb')](),controller[_0xb369('0x10')]);router[_0xb369('0x11')](_0xb369('0xd'),auth[_0xb369('0xb')](),controller[_0xb369('0x12')]);module['exports']=router;