Built motion from commit d5e4af8c.|2.6.23
[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 _0x6ca3=['post','put','/:id','update','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/interaction/service','get','isAuthenticated','index','show'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x6ca3,0xba));var _0x36ca=function(_0x1eadfb,_0xc1e08b){_0x1eadfb=_0x1eadfb-0x0;var _0x5500fc=_0x6ca3[_0x1eadfb];return _0x5500fc;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x36ca('0x0'));var timeout=require(_0x36ca('0x1'));var express=require('express');var router=express[_0x36ca('0x2')]();var fs_extra=require(_0x36ca('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x36ca('0x4'));var config=require('../../config/environment');var controller=require('./network.controller');router[_0x36ca('0x5')]('/',auth[_0x36ca('0x6')](),controller[_0x36ca('0x7')]);router[_0x36ca('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x36ca('0x8')]);router[_0x36ca('0x9')]('/',auth['isAuthenticated'](),controller['create']);router[_0x36ca('0xa')](_0x36ca('0xb'),auth[_0x36ca('0x6')](),controller[_0x36ca('0xc')]);router['delete'](_0x36ca('0xb'),auth['isAuthenticated'](),controller[_0x36ca('0xd')]);module[_0x36ca('0xe')]=router;