ff3b9876b031e8bc7c9d05faddb8dc1b6f574c9b
[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 _0xe9d8=['Router','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','post','exports','multer','util','path','connect-timeout','express'];(function(_0x1e500e,_0x2c9d74){var _0x10dc5e=function(_0x354423){while(--_0x354423){_0x1e500e['push'](_0x1e500e['shift']());}};_0x10dc5e(++_0x2c9d74);}(_0xe9d8,0x91));var _0x8e9d=function(_0x4e676e,_0x2a7c6d){_0x4e676e=_0x4e676e-0x0;var _0x336a3c=_0xe9d8[_0x4e676e];return _0x336a3c;};'use strict';var multer=require(_0x8e9d('0x0'));var util=require(_0x8e9d('0x1'));var path=require(_0x8e9d('0x2'));var timeout=require(_0x8e9d('0x3'));var express=require(_0x8e9d('0x4'));var router=express[_0x8e9d('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x8e9d('0x6'));var controller=require(_0x8e9d('0x7'));router[_0x8e9d('0x8')]('/',auth[_0x8e9d('0x9')](),controller[_0x8e9d('0xa')]);router['get'](_0x8e9d('0xb'),auth['isAuthenticated'](),controller[_0x8e9d('0xc')]);router[_0x8e9d('0xd')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0x8e9d('0x9')](),controller['update']);router['delete']('/:id',auth[_0x8e9d('0x9')](),controller['destroy']);module[_0x8e9d('0xe')]=router;