52105a20bb6a3acbd882c36568224ce11e889a72
[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 _0xed65=['util','path','connect-timeout','Router','../../components/auth/service','./network.controller','isAuthenticated','index','get','/:id','show','post','put','update','delete','destroy','exports','multer'];(function(_0x1992f1,_0x5c61f0){var _0x413dfe=function(_0x2136e5){while(--_0x2136e5){_0x1992f1['push'](_0x1992f1['shift']());}};_0x413dfe(++_0x5c61f0);}(_0xed65,0xa1));var _0x5ed6=function(_0x466d24,_0x3a3d6c){_0x466d24=_0x466d24-0x0;var _0x535da6=_0xed65[_0x466d24];return _0x535da6;};'use strict';var multer=require(_0x5ed6('0x0'));var util=require(_0x5ed6('0x1'));var path=require(_0x5ed6('0x2'));var timeout=require(_0x5ed6('0x3'));var express=require('express');var router=express[_0x5ed6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x5ed6('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x5ed6('0x6'));router['get']('/',auth[_0x5ed6('0x7')](),controller[_0x5ed6('0x8')]);router[_0x5ed6('0x9')](_0x5ed6('0xa'),auth[_0x5ed6('0x7')](),controller[_0x5ed6('0xb')]);router[_0x5ed6('0xc')]('/',auth[_0x5ed6('0x7')](),controller['create']);router[_0x5ed6('0xd')](_0x5ed6('0xa'),auth[_0x5ed6('0x7')](),controller[_0x5ed6('0xe')]);router[_0x5ed6('0xf')](_0x5ed6('0xa'),auth[_0x5ed6('0x7')](),controller[_0x5ed6('0x10')]);module[_0x5ed6('0x11')]=router;