Built motion from commit 43538d75.|2.5.35
[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 _0x27c8=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','index','get','/:id','isAuthenticated','show','post','put','delete','destroy','exports','util','path'];(function(_0x42f85f,_0x58e64e){var _0x4d1417=function(_0x2d98c5){while(--_0x2d98c5){_0x42f85f['push'](_0x42f85f['shift']());}};_0x4d1417(++_0x58e64e);}(_0x27c8,0x6a));var _0x827c=function(_0x60d53e,_0x25f227){_0x60d53e=_0x60d53e-0x0;var _0x36a6cd=_0x27c8[_0x60d53e];return _0x36a6cd;};'use strict';var multer=require('multer');var util=require(_0x827c('0x0'));var path=require(_0x827c('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x827c('0x2')]();var fs_extra=require(_0x827c('0x3'));var auth=require(_0x827c('0x4'));var interaction=require(_0x827c('0x5'));var config=require(_0x827c('0x6'));var controller=require(_0x827c('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x827c('0x8')]);router[_0x827c('0x9')](_0x827c('0xa'),auth[_0x827c('0xb')](),controller[_0x827c('0xc')]);router[_0x827c('0xd')]('/',auth['isAuthenticated'](),controller['create']);router[_0x827c('0xe')](_0x827c('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x827c('0xf')](_0x827c('0xa'),auth['isAuthenticated'](),controller[_0x827c('0x10')]);module[_0x827c('0x11')]=router;