Built motion from commit ae138b72.|2.6.28
[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 _0x1a55=['get','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','index'];(function(_0x2c7fb4,_0x31f52b){var _0x22ea18=function(_0x5a8457){while(--_0x5a8457){_0x2c7fb4['push'](_0x2c7fb4['shift']());}};_0x22ea18(++_0x31f52b);}(_0x1a55,0x160));var _0x51a5=function(_0x4950ff,_0x1111e6){_0x4950ff=_0x4950ff-0x0;var _0x426b9d=_0x1a55[_0x4950ff];return _0x426b9d;};'use strict';var multer=require('multer');var util=require(_0x51a5('0x0'));var path=require('path');var timeout=require(_0x51a5('0x1'));var express=require('express');var router=express[_0x51a5('0x2')]();var fs_extra=require(_0x51a5('0x3'));var auth=require(_0x51a5('0x4'));var interaction=require(_0x51a5('0x5'));var config=require(_0x51a5('0x6'));var controller=require(_0x51a5('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x51a5('0x8')]);router[_0x51a5('0x9')](_0x51a5('0xa'),auth[_0x51a5('0xb')](),controller[_0x51a5('0xc')]);router[_0x51a5('0xd')]('/',auth['isAuthenticated'](),controller[_0x51a5('0xe')]);router[_0x51a5('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x51a5('0x10')]);router[_0x51a5('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x51a5('0x12')]);module['exports']=router;