Built motion from commit 4d4d9a88.|2.6.26
[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 _0x644f=['../../components/interaction/service','./voiceContext.controller','get','isAuthenticated','/:id','post','create','put','update','exports','multer','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x24c405,_0x56d6fb){var _0x383aef=function(_0x20da69){while(--_0x20da69){_0x24c405['push'](_0x24c405['shift']());}};_0x383aef(++_0x56d6fb);}(_0x644f,0x82));var _0xf644=function(_0x4da356,_0x5235e1){_0x4da356=_0x4da356-0x0;var _0x321b07=_0x644f[_0x4da356];return _0x321b07;};'use strict';var multer=require(_0xf644('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf644('0x1'));var express=require(_0xf644('0x2'));var router=express['Router']();var fs_extra=require(_0xf644('0x3'));var auth=require(_0xf644('0x4'));var interaction=require(_0xf644('0x5'));var config=require('../../config/environment');var controller=require(_0xf644('0x6'));router[_0xf644('0x7')]('/',auth[_0xf644('0x8')](),controller['index']);router['get'](_0xf644('0x9'),auth[_0xf644('0x8')](),controller['show']);router[_0xf644('0xa')]('/',auth[_0xf644('0x8')](),controller[_0xf644('0xb')]);router[_0xf644('0xc')](_0xf644('0x9'),auth[_0xf644('0x8')](),controller[_0xf644('0xd')]);router['delete']('/:id',auth[_0xf644('0x8')](),controller['destroy']);module[_0xf644('0xe')]=router;