97a2f1e3958ecdc0a62df0d4a4d69871ea9318b0
[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 _0x3c91=['show','post','create','update','destroy','exports','multer','util','path','Router','fs-extra','../../components/auth/service','../../config/environment','./template.controller','get','isAuthenticated','index'];(function(_0x42864e,_0x2562fe){var _0x20840b=function(_0xf3caf1){while(--_0xf3caf1){_0x42864e['push'](_0x42864e['shift']());}};_0x20840b(++_0x2562fe);}(_0x3c91,0x1af));var _0x13c9=function(_0x812ca4,_0x2348d0){_0x812ca4=_0x812ca4-0x0;var _0x28b699=_0x3c91[_0x812ca4];return _0x28b699;};'use strict';var multer=require(_0x13c9('0x0'));var util=require(_0x13c9('0x1'));var path=require(_0x13c9('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x13c9('0x3')]();var fs_extra=require(_0x13c9('0x4'));var auth=require(_0x13c9('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x13c9('0x6'));var controller=require(_0x13c9('0x7'));router[_0x13c9('0x8')]('/',auth[_0x13c9('0x9')](),controller[_0x13c9('0xa')]);router['get']('/:id',auth[_0x13c9('0x9')](),controller[_0x13c9('0xb')]);router[_0x13c9('0xc')]('/',auth[_0x13c9('0x9')](),controller[_0x13c9('0xd')]);router['put']('/:id',auth[_0x13c9('0x9')](),controller[_0x13c9('0xe')]);router['delete']('/:id',auth[_0x13c9('0x9')](),controller[_0x13c9('0xf')]);module[_0x13c9('0x10')]=router;