Built motion from commit 47436d59.|2.6.7
[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 _0x26aa=['../../components/interaction/service','../../config/environment','./voiceContext.controller','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x5b95f0,_0x34b479){var _0x1a5bfb=function(_0x1752da){while(--_0x1752da){_0x5b95f0['push'](_0x5b95f0['shift']());}};_0x1a5bfb(++_0x34b479);}(_0x26aa,0x175));var _0xa26a=function(_0x2330d5,_0x432cd8){_0x2330d5=_0x2330d5-0x0;var _0x5ce19e=_0x26aa[_0x2330d5];return _0x5ce19e;};'use strict';var multer=require('multer');var util=require(_0xa26a('0x0'));var path=require(_0xa26a('0x1'));var timeout=require(_0xa26a('0x2'));var express=require(_0xa26a('0x3'));var router=express[_0xa26a('0x4')]();var fs_extra=require(_0xa26a('0x5'));var auth=require(_0xa26a('0x6'));var interaction=require(_0xa26a('0x7'));var config=require(_0xa26a('0x8'));var controller=require(_0xa26a('0x9'));router['get']('/',auth[_0xa26a('0xa')](),controller[_0xa26a('0xb')]);router['get'](_0xa26a('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xa26a('0xd')]('/',auth[_0xa26a('0xa')](),controller[_0xa26a('0xe')]);router[_0xa26a('0xf')](_0xa26a('0xc'),auth[_0xa26a('0xa')](),controller[_0xa26a('0x10')]);router[_0xa26a('0x11')](_0xa26a('0xc'),auth['isAuthenticated'](),controller[_0xa26a('0x12')]);module['exports']=router;