92e922ca2365afa4cba8c9516568d6e0cf2944b2
[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 _0xfa7a=['put','update','delete','destroy','multer','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./voiceContext.controller','isAuthenticated','index','get','/:id','show','create'];(function(_0x390733,_0x1e3d32){var _0x33beb9=function(_0x4491a3){while(--_0x4491a3){_0x390733['push'](_0x390733['shift']());}};_0x33beb9(++_0x1e3d32);}(_0xfa7a,0x15a));var _0xafa7=function(_0x397a18,_0x5cd186){_0x397a18=_0x397a18-0x0;var _0xbbf370=_0xfa7a[_0x397a18];return _0xbbf370;};'use strict';var multer=require(_0xafa7('0x0'));var util=require(_0xafa7('0x1'));var path=require(_0xafa7('0x2'));var timeout=require(_0xafa7('0x3'));var express=require(_0xafa7('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xafa7('0x5'));var config=require(_0xafa7('0x6'));var controller=require(_0xafa7('0x7'));router['get']('/',auth[_0xafa7('0x8')](),controller[_0xafa7('0x9')]);router[_0xafa7('0xa')](_0xafa7('0xb'),auth[_0xafa7('0x8')](),controller[_0xafa7('0xc')]);router['post']('/',auth[_0xafa7('0x8')](),controller[_0xafa7('0xd')]);router[_0xafa7('0xe')](_0xafa7('0xb'),auth[_0xafa7('0x8')](),controller[_0xafa7('0xf')]);router[_0xafa7('0x10')]('/:id',auth[_0xafa7('0x8')](),controller[_0xafa7('0x11')]);module['exports']=router;