796e602e8727189eb3519e13d4faf035765ce429
[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 _0x9805=['put','destroy','exports','multer','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','post','create'];(function(_0xd52147,_0x294a6f){var _0xb01b1c=function(_0x39f248){while(--_0x39f248){_0xd52147['push'](_0xd52147['shift']());}};_0xb01b1c(++_0x294a6f);}(_0x9805,0x18f));var _0x5980=function(_0x4ac3da,_0x3ee33a){_0x4ac3da=_0x4ac3da-0x0;var _0xd1ffc7=_0x9805[_0x4ac3da];return _0xd1ffc7;};'use strict';var multer=require(_0x5980('0x0'));var util=require(_0x5980('0x1'));var path=require(_0x5980('0x2'));var timeout=require(_0x5980('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0x5980('0x4'));var auth=require(_0x5980('0x5'));var interaction=require(_0x5980('0x6'));var config=require(_0x5980('0x7'));var controller=require('./template.controller');router['get']('/',auth[_0x5980('0x8')](),controller[_0x5980('0x9')]);router[_0x5980('0xa')](_0x5980('0xb'),auth[_0x5980('0x8')](),controller[_0x5980('0xc')]);router[_0x5980('0xd')]('/',auth[_0x5980('0x8')](),controller[_0x5980('0xe')]);router[_0x5980('0xf')](_0x5980('0xb'),auth[_0x5980('0x8')](),controller['update']);router['delete'](_0x5980('0xb'),auth[_0x5980('0x8')](),controller[_0x5980('0x10')]);module[_0x5980('0x11')]=router;