47a4ecc138a80d1b96f6c0864f2f373fc902b4fe
[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 _0x257b=['connect-timeout','express','Router','../../components/auth/service','./template.controller','get','isAuthenticated','/:id','show','create','put','update','destroy','exports','multer','util','path'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x257b,0x10d));var _0xb257=function(_0x3813ad,_0x2eff01){_0x3813ad=_0x3813ad-0x0;var _0x16ed55=_0x257b[_0x3813ad];return _0x16ed55;};'use strict';var multer=require(_0xb257('0x0'));var util=require(_0xb257('0x1'));var path=require(_0xb257('0x2'));var timeout=require(_0xb257('0x3'));var express=require(_0xb257('0x4'));var router=express[_0xb257('0x5')]();var auth=require(_0xb257('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xb257('0x7'));router[_0xb257('0x8')]('/',auth[_0xb257('0x9')](),controller['index']);router[_0xb257('0x8')](_0xb257('0xa'),auth[_0xb257('0x9')](),controller[_0xb257('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb257('0xc')]);router[_0xb257('0xd')]('/:id',auth[_0xb257('0x9')](),controller[_0xb257('0xe')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xb257('0xf')]);module[_0xb257('0x10')]=router;