Built motion from commit 85328c08.|2.5.50
[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 _0x79f1=['fs-extra','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete','destroy','multer','util','express','Router'];(function(_0x1983dc,_0x21194c){var _0x1d64e4=function(_0x5c8f02){while(--_0x5c8f02){_0x1983dc['push'](_0x1983dc['shift']());}};_0x1d64e4(++_0x21194c);}(_0x79f1,0xf8));var _0x179f=function(_0x12fcbd,_0x884804){_0x12fcbd=_0x12fcbd-0x0;var _0x28ec2a=_0x79f1[_0x12fcbd];return _0x28ec2a;};'use strict';var multer=require(_0x179f('0x0'));var util=require(_0x179f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x179f('0x2'));var router=express[_0x179f('0x3')]();var fs_extra=require(_0x179f('0x4'));var auth=require(_0x179f('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x179f('0x6'));var controller=require(_0x179f('0x7'));router[_0x179f('0x8')]('/',auth[_0x179f('0x9')](),controller[_0x179f('0xa')]);router[_0x179f('0x8')](_0x179f('0xb'),auth[_0x179f('0x9')](),controller[_0x179f('0xc')]);router[_0x179f('0xd')]('/',auth[_0x179f('0x9')](),controller[_0x179f('0xe')]);router['put'](_0x179f('0xb'),auth[_0x179f('0x9')](),controller[_0x179f('0xf')]);router[_0x179f('0x10')](_0x179f('0xb'),auth[_0x179f('0x9')](),controller[_0x179f('0x11')]);module['exports']=router;