Built motion from commit d1eab355.|2.6.28
[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 _0xf23c=['../../components/auth/service','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index','show','post','create','put','/:id','delete','destroy','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x164eca,_0x555e28){var _0x2ce562=function(_0x148ca6){while(--_0x148ca6){_0x164eca['push'](_0x164eca['shift']());}};_0x2ce562(++_0x555e28);}(_0xf23c,0x77));var _0xcf23=function(_0x146be0,_0x39a85e){_0x146be0=_0x146be0-0x0;var _0x1bcc25=_0xf23c[_0x146be0];return _0x1bcc25;};'use strict';var multer=require(_0xcf23('0x0'));var util=require(_0xcf23('0x1'));var path=require(_0xcf23('0x2'));var timeout=require(_0xcf23('0x3'));var express=require(_0xcf23('0x4'));var router=express[_0xcf23('0x5')]();var fs_extra=require(_0xcf23('0x6'));var auth=require(_0xcf23('0x7'));var interaction=require(_0xcf23('0x8'));var config=require(_0xcf23('0x9'));var controller=require(_0xcf23('0xa'));router[_0xcf23('0xb')]('/',auth[_0xcf23('0xc')](),controller[_0xcf23('0xd')]);router['get']('/:id',auth[_0xcf23('0xc')](),controller[_0xcf23('0xe')]);router[_0xcf23('0xf')]('/',auth[_0xcf23('0xc')](),controller[_0xcf23('0x10')]);router[_0xcf23('0x11')](_0xcf23('0x12'),auth[_0xcf23('0xc')](),controller['update']);router[_0xcf23('0x13')](_0xcf23('0x12'),auth[_0xcf23('0xc')](),controller[_0xcf23('0x14')]);module['exports']=router;