Built motion from commit (unavailable).|2.5.1
[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 _0xce68=['destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./network.controller','get','index','show','post','isAuthenticated','create','/:id','update','delete'];(function(_0x261c6c,_0x409160){var _0x432299=function(_0x7486df){while(--_0x7486df){_0x261c6c['push'](_0x261c6c['shift']());}};_0x432299(++_0x409160);}(_0xce68,0x10c));var _0x8ce6=function(_0x332c62,_0x305dd9){_0x332c62=_0x332c62-0x0;var _0x5c2423=_0xce68[_0x332c62];return _0x5c2423;};'use strict';var multer=require(_0x8ce6('0x0'));var util=require('util');var path=require(_0x8ce6('0x1'));var timeout=require(_0x8ce6('0x2'));var express=require(_0x8ce6('0x3'));var router=express[_0x8ce6('0x4')]();var auth=require(_0x8ce6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x8ce6('0x6'));var controller=require(_0x8ce6('0x7'));router[_0x8ce6('0x8')]('/',auth['isAuthenticated'](),controller[_0x8ce6('0x9')]);router[_0x8ce6('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x8ce6('0xa')]);router[_0x8ce6('0xb')]('/',auth[_0x8ce6('0xc')](),controller[_0x8ce6('0xd')]);router['put'](_0x8ce6('0xe'),auth[_0x8ce6('0xc')](),controller[_0x8ce6('0xf')]);router[_0x8ce6('0x10')](_0x8ce6('0xe'),auth[_0x8ce6('0xc')](),controller[_0x8ce6('0x11')]);module[_0x8ce6('0x12')]=router;