Built motion from commit (unavailable).|2.5.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 _0x259e=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','update','destroy','exports','multer','util','connect-timeout','express','Router'];(function(_0x4ffa88,_0x182ec6){var _0x3b8ede=function(_0x3b455c){while(--_0x3b455c){_0x4ffa88['push'](_0x4ffa88['shift']());}};_0x3b8ede(++_0x182ec6);}(_0x259e,0x13e));var _0xe259=function(_0x38d78c,_0x3ec363){_0x38d78c=_0x38d78c-0x0;var _0x21110b=_0x259e[_0x38d78c];return _0x21110b;};'use strict';var multer=require(_0xe259('0x0'));var util=require(_0xe259('0x1'));var path=require('path');var timeout=require(_0xe259('0x2'));var express=require(_0xe259('0x3'));var router=express[_0xe259('0x4')]();var auth=require(_0xe259('0x5'));var interaction=require(_0xe259('0x6'));var config=require(_0xe259('0x7'));var controller=require('./network.controller');router[_0xe259('0x8')]('/',auth['isAuthenticated'](),controller[_0xe259('0x9')]);router['get'](_0xe259('0xa'),auth[_0xe259('0xb')](),controller[_0xe259('0xc')]);router[_0xe259('0xd')]('/',auth['isAuthenticated'](),controller[_0xe259('0xe')]);router[_0xe259('0xf')](_0xe259('0xa'),auth[_0xe259('0xb')](),controller[_0xe259('0x10')]);router['delete'](_0xe259('0xa'),auth['isAuthenticated'](),controller[_0xe259('0x11')]);module[_0xe259('0x12')]=router;