Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / network / 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 _0x22f5=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','put','update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x5d32bc,_0x4e8a61){var _0xf3d4d4=function(_0x115169){while(--_0x115169){_0x5d32bc['push'](_0x5d32bc['shift']());}};_0xf3d4d4(++_0x4e8a61);}(_0x22f5,0xca));var _0x522f=function(_0x41ddd3,_0x36eee5){_0x41ddd3=_0x41ddd3-0x0;var _0x5c194f=_0x22f5[_0x41ddd3];return _0x5c194f;};'use strict';var multer=require(_0x522f('0x0'));var util=require(_0x522f('0x1'));var path=require('path');var timeout=require(_0x522f('0x2'));var express=require(_0x522f('0x3'));var router=express[_0x522f('0x4')]();var fs_extra=require(_0x522f('0x5'));var auth=require(_0x522f('0x6'));var interaction=require(_0x522f('0x7'));var config=require(_0x522f('0x8'));var controller=require('./network.controller');router[_0x522f('0x9')]('/',auth[_0x522f('0xa')](),controller[_0x522f('0xb')]);router[_0x522f('0x9')](_0x522f('0xc'),auth[_0x522f('0xa')](),controller[_0x522f('0xd')]);router[_0x522f('0xe')]('/',auth[_0x522f('0xa')](),controller['create']);router[_0x522f('0xf')]('/:id',auth[_0x522f('0xa')](),controller[_0x522f('0x10')]);router[_0x522f('0x11')](_0x522f('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0x522f('0x12')]=router;