d3c4ecb5e513d81a1f8cd3efdc6b4f9788a2fc7a
[motion2.git] / server / api / template / 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 _0xdc5f=['./template.controller','get','isAuthenticated','/:id','post','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x2fcf18,_0x10009a){var _0x4c68cc=function(_0x444002){while(--_0x444002){_0x2fcf18['push'](_0x2fcf18['shift']());}};_0x4c68cc(++_0x10009a);}(_0xdc5f,0x1cc));var _0xfdc5=function(_0x376b45,_0x5964fb){_0x376b45=_0x376b45-0x0;var _0x2341b3=_0xdc5f[_0x376b45];return _0x2341b3;};'use strict';var multer=require(_0xfdc5('0x0'));var util=require('util');var path=require(_0xfdc5('0x1'));var timeout=require(_0xfdc5('0x2'));var express=require(_0xfdc5('0x3'));var router=express[_0xfdc5('0x4')]();var auth=require(_0xfdc5('0x5'));var interaction=require(_0xfdc5('0x6'));var config=require(_0xfdc5('0x7'));var controller=require(_0xfdc5('0x8'));router[_0xfdc5('0x9')]('/',auth[_0xfdc5('0xa')](),controller['index']);router[_0xfdc5('0x9')](_0xfdc5('0xb'),auth['isAuthenticated'](),controller['show']);router[_0xfdc5('0xc')]('/',auth[_0xfdc5('0xa')](),controller['create']);router[_0xfdc5('0xd')]('/:id',auth[_0xfdc5('0xa')](),controller[_0xfdc5('0xe')]);router[_0xfdc5('0xf')](_0xfdc5('0xb'),auth[_0xfdc5('0xa')](),controller[_0xfdc5('0x10')]);module[_0xfdc5('0x11')]=router;