Built motion from commit 3e059bc2.|2.5.32
[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 _0x5adb=['update','delete','destroy','exports','multer','fs-extra','../../components/auth/service','./voiceContext.controller','isAuthenticated','index','get','show','post','create','/:id'];(function(_0x1a556b,_0x2bacfb){var _0x2cb88a=function(_0x1a4d59){while(--_0x1a4d59){_0x1a556b['push'](_0x1a556b['shift']());}};_0x2cb88a(++_0x2bacfb);}(_0x5adb,0x17b));var _0xb5ad=function(_0x579b79,_0x5b57b2){_0x579b79=_0x579b79-0x0;var _0x41e899=_0x5adb[_0x579b79];return _0x41e899;};'use strict';var multer=require(_0xb5ad('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xb5ad('0x1'));var auth=require(_0xb5ad('0x2'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb5ad('0x3'));router['get']('/',auth[_0xb5ad('0x4')](),controller[_0xb5ad('0x5')]);router[_0xb5ad('0x6')]('/:id',auth[_0xb5ad('0x4')](),controller[_0xb5ad('0x7')]);router[_0xb5ad('0x8')]('/',auth['isAuthenticated'](),controller[_0xb5ad('0x9')]);router['put'](_0xb5ad('0xa'),auth[_0xb5ad('0x4')](),controller[_0xb5ad('0xb')]);router[_0xb5ad('0xc')](_0xb5ad('0xa'),auth[_0xb5ad('0x4')](),controller[_0xb5ad('0xd')]);module[_0xb5ad('0xe')]=router;