e579c4ef090cd6d9f891c79e09a315d76e6ab9c0
[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 _0x6f69=['../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','/:id','isAuthenticated','show','post','create','put','update','multer','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x5469ba,_0x52f08f){var _0x1a8518=function(_0x9714e8){while(--_0x9714e8){_0x5469ba['push'](_0x5469ba['shift']());}};_0x1a8518(++_0x52f08f);}(_0x6f69,0x8a));var _0x96f6=function(_0x5c2000,_0x8fa375){_0x5c2000=_0x5c2000-0x0;var _0x16da17=_0x6f69[_0x5c2000];return _0x16da17;};'use strict';var multer=require(_0x96f6('0x0'));var util=require(_0x96f6('0x1'));var path=require(_0x96f6('0x2'));var timeout=require(_0x96f6('0x3'));var express=require(_0x96f6('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x96f6('0x5'));var interaction=require(_0x96f6('0x6'));var config=require(_0x96f6('0x7'));var controller=require(_0x96f6('0x8'));router[_0x96f6('0x9')]('/',auth['isAuthenticated'](),controller[_0x96f6('0xa')]);router['get'](_0x96f6('0xb'),auth[_0x96f6('0xc')](),controller[_0x96f6('0xd')]);router[_0x96f6('0xe')]('/',auth[_0x96f6('0xc')](),controller[_0x96f6('0xf')]);router[_0x96f6('0x10')](_0x96f6('0xb'),auth[_0x96f6('0xc')](),controller[_0x96f6('0x11')]);router['delete'](_0x96f6('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;