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 _0x073d=['show','post','create','put','destroy','exports','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','./network.controller','get','isAuthenticated','index','/:id'];(function(_0x159f91,_0xe8a30f){var _0x26bd65=function(_0x5680d1){while(--_0x5680d1){_0x159f91['push'](_0x159f91['shift']());}};_0x26bd65(++_0xe8a30f);}(_0x073d,0xd2));var _0xd073=function(_0x2a43b9,_0x2aa7ea){_0x2a43b9=_0x2a43b9-0x0;var _0x3b6c90=_0x073d[_0x2a43b9];return _0x3b6c90;};'use strict';var multer=require('multer');var util=require(_0xd073('0x0'));var path=require(_0xd073('0x1'));var timeout=require(_0xd073('0x2'));var express=require('express');var router=express[_0xd073('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xd073('0x4'));var interaction=require(_0xd073('0x5'));var config=require('../../config/environment');var controller=require(_0xd073('0x6'));router[_0xd073('0x7')]('/',auth[_0xd073('0x8')](),controller[_0xd073('0x9')]);router[_0xd073('0x7')](_0xd073('0xa'),auth[_0xd073('0x8')](),controller[_0xd073('0xb')]);router[_0xd073('0xc')]('/',auth[_0xd073('0x8')](),controller[_0xd073('0xd')]);router[_0xd073('0xe')](_0xd073('0xa'),auth[_0xd073('0x8')](),controller['update']);router['delete'](_0xd073('0xa'),auth['isAuthenticated'](),controller[_0xd073('0xf')]);module[_0xd073('0x10')]=router;