Built motion from commit e6806ed6.|2.6.0
[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 _0x5d9c=['multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','/:id','post','isAuthenticated','create','put','destroy','exports'];(function(_0x35d7cf,_0x58e447){var _0x10f6d3=function(_0x3b79dc){while(--_0x3b79dc){_0x35d7cf['push'](_0x35d7cf['shift']());}};_0x10f6d3(++_0x58e447);}(_0x5d9c,0x169));var _0xc5d9=function(_0x1067d8,_0x2122a1){_0x1067d8=_0x1067d8-0x0;var _0x364b78=_0x5d9c[_0x1067d8];return _0x364b78;};'use strict';var multer=require(_0xc5d9('0x0'));var util=require(_0xc5d9('0x1'));var path=require(_0xc5d9('0x2'));var timeout=require(_0xc5d9('0x3'));var express=require('express');var router=express[_0xc5d9('0x4')]();var fs_extra=require(_0xc5d9('0x5'));var auth=require(_0xc5d9('0x6'));var interaction=require(_0xc5d9('0x7'));var config=require(_0xc5d9('0x8'));var controller=require(_0xc5d9('0x9'));router[_0xc5d9('0xa')]('/',auth['isAuthenticated'](),controller[_0xc5d9('0xb')]);router[_0xc5d9('0xa')](_0xc5d9('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xc5d9('0xd')]('/',auth[_0xc5d9('0xe')](),controller[_0xc5d9('0xf')]);router[_0xc5d9('0x10')](_0xc5d9('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xc5d9('0xc'),auth[_0xc5d9('0xe')](),controller[_0xc5d9('0x11')]);module[_0xc5d9('0x12')]=router;