Built motion from commit 85328c08.|2.5.50
[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 _0x5b2a=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','/:id','show','post','put','delete','destroy','multer'];(function(_0x176b13,_0x78c30b){var _0x5cd0b0=function(_0x1039a2){while(--_0x1039a2){_0x176b13['push'](_0x176b13['shift']());}};_0x5cd0b0(++_0x78c30b);}(_0x5b2a,0x17b));var _0xa5b2=function(_0xf0bc07,_0x510ebf){_0xf0bc07=_0xf0bc07-0x0;var _0x1c50c2=_0x5b2a[_0xf0bc07];return _0x1c50c2;};'use strict';var multer=require(_0xa5b2('0x0'));var util=require(_0xa5b2('0x1'));var path=require(_0xa5b2('0x2'));var timeout=require(_0xa5b2('0x3'));var express=require(_0xa5b2('0x4'));var router=express[_0xa5b2('0x5')]();var fs_extra=require(_0xa5b2('0x6'));var auth=require(_0xa5b2('0x7'));var interaction=require(_0xa5b2('0x8'));var config=require(_0xa5b2('0x9'));var controller=require(_0xa5b2('0xa'));router[_0xa5b2('0xb')]('/',auth[_0xa5b2('0xc')](),controller['index']);router[_0xa5b2('0xb')](_0xa5b2('0xd'),auth[_0xa5b2('0xc')](),controller[_0xa5b2('0xe')]);router[_0xa5b2('0xf')]('/',auth[_0xa5b2('0xc')](),controller['create']);router[_0xa5b2('0x10')](_0xa5b2('0xd'),auth['isAuthenticated'](),controller['update']);router[_0xa5b2('0x11')](_0xa5b2('0xd'),auth['isAuthenticated'](),controller[_0xa5b2('0x12')]);module['exports']=router;