Built motion from commit 8271bb6f.|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 _0x023e=['post','create','put','update','destroy','multer','Router','fs-extra','../../components/interaction/service','../../config/environment','./network.controller','get','isAuthenticated','index','/:id','show'];(function(_0x1e1ecf,_0x175529){var _0x52be90=function(_0x2da012){while(--_0x2da012){_0x1e1ecf['push'](_0x1e1ecf['shift']());}};_0x52be90(++_0x175529);}(_0x023e,0xc5));var _0xe023=function(_0x36daae,_0x471d49){_0x36daae=_0x36daae-0x0;var _0x21dd26=_0x023e[_0x36daae];return _0x21dd26;};'use strict';var multer=require(_0xe023('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe023('0x1')]();var fs_extra=require(_0xe023('0x2'));var auth=require('../../components/auth/service');var interaction=require(_0xe023('0x3'));var config=require(_0xe023('0x4'));var controller=require(_0xe023('0x5'));router[_0xe023('0x6')]('/',auth[_0xe023('0x7')](),controller[_0xe023('0x8')]);router[_0xe023('0x6')](_0xe023('0x9'),auth[_0xe023('0x7')](),controller[_0xe023('0xa')]);router[_0xe023('0xb')]('/',auth[_0xe023('0x7')](),controller[_0xe023('0xc')]);router[_0xe023('0xd')](_0xe023('0x9'),auth[_0xe023('0x7')](),controller[_0xe023('0xe')]);router['delete'](_0xe023('0x9'),auth[_0xe023('0x7')](),controller[_0xe023('0xf')]);module['exports']=router;