Built motion from commit 0900f080.|2.5.45
[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 _0xf30f=['isAuthenticated','index','/:id','show','post','create','put','delete','destroy','exports','multer','util','path','../../components/auth/service','../../components/interaction/service','./network.controller','get'];(function(_0x29849a,_0x5f5950){var _0x200fc3=function(_0x44c3b2){while(--_0x44c3b2){_0x29849a['push'](_0x29849a['shift']());}};_0x200fc3(++_0x5f5950);}(_0xf30f,0x1a2));var _0xff30=function(_0x5d2803,_0xf375bd){_0x5d2803=_0x5d2803-0x0;var _0xdcad2c=_0xf30f[_0x5d2803];return _0xdcad2c;};'use strict';var multer=require(_0xff30('0x0'));var util=require(_0xff30('0x1'));var path=require(_0xff30('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xff30('0x3'));var interaction=require(_0xff30('0x4'));var config=require('../../config/environment');var controller=require(_0xff30('0x5'));router[_0xff30('0x6')]('/',auth[_0xff30('0x7')](),controller[_0xff30('0x8')]);router[_0xff30('0x6')](_0xff30('0x9'),auth[_0xff30('0x7')](),controller[_0xff30('0xa')]);router[_0xff30('0xb')]('/',auth[_0xff30('0x7')](),controller[_0xff30('0xc')]);router[_0xff30('0xd')]('/:id',auth[_0xff30('0x7')](),controller['update']);router[_0xff30('0xe')](_0xff30('0x9'),auth[_0xff30('0x7')](),controller[_0xff30('0xf')]);module[_0xff30('0x10')]=router;