Built motion from commit (unavailable).|2.4.17
[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 _0x62db=['util','path','connect-timeout','express','Router','../../components/auth/service','./voiceContext.controller','get','index','/:id','show','isAuthenticated','create','put','delete','destroy','multer'];(function(_0x32343c,_0x58c4fb){var _0x1d6073=function(_0x2811ef){while(--_0x2811ef){_0x32343c['push'](_0x32343c['shift']());}};_0x1d6073(++_0x58c4fb);}(_0x62db,0x131));var _0xb62d=function(_0x4997e0,_0x4ebf5e){_0x4997e0=_0x4997e0-0x0;var _0x5d2fcd=_0x62db[_0x4997e0];return _0x5d2fcd;};'use strict';var multer=require(_0xb62d('0x0'));var util=require(_0xb62d('0x1'));var path=require(_0xb62d('0x2'));var timeout=require(_0xb62d('0x3'));var express=require(_0xb62d('0x4'));var router=express[_0xb62d('0x5')]();var auth=require(_0xb62d('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb62d('0x7'));router[_0xb62d('0x8')]('/',auth['isAuthenticated'](),controller[_0xb62d('0x9')]);router[_0xb62d('0x8')](_0xb62d('0xa'),auth['isAuthenticated'](),controller[_0xb62d('0xb')]);router['post']('/',auth[_0xb62d('0xc')](),controller[_0xb62d('0xd')]);router[_0xb62d('0xe')](_0xb62d('0xa'),auth[_0xb62d('0xc')](),controller['update']);router[_0xb62d('0xf')](_0xb62d('0xa'),auth['isAuthenticated'](),controller[_0xb62d('0x10')]);module['exports']=router;