Built motion from commit 56b8093a.|2.6.29
[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 _0x0309=['connect-timeout','express','fs-extra','../../components/auth/service','./template.controller','get','isAuthenticated','show','post','create','put','/:id','update','destroy','exports','multer','util','path'];(function(_0x46f2d4,_0x14bd47){var _0x3f0b92=function(_0x541bfe){while(--_0x541bfe){_0x46f2d4['push'](_0x46f2d4['shift']());}};_0x3f0b92(++_0x14bd47);}(_0x0309,0x8d));var _0x9030=function(_0x291347,_0x48305d){_0x291347=_0x291347-0x0;var _0x2c07a0=_0x0309[_0x291347];return _0x2c07a0;};'use strict';var multer=require(_0x9030('0x0'));var util=require(_0x9030('0x1'));var path=require(_0x9030('0x2'));var timeout=require(_0x9030('0x3'));var express=require(_0x9030('0x4'));var router=express['Router']();var fs_extra=require(_0x9030('0x5'));var auth=require(_0x9030('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x9030('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0x9030('0x8')]('/:id',auth[_0x9030('0x9')](),controller[_0x9030('0xa')]);router[_0x9030('0xb')]('/',auth[_0x9030('0x9')](),controller[_0x9030('0xc')]);router[_0x9030('0xd')](_0x9030('0xe'),auth[_0x9030('0x9')](),controller[_0x9030('0xf')]);router['delete'](_0x9030('0xe'),auth['isAuthenticated'](),controller[_0x9030('0x10')]);module[_0x9030('0x11')]=router;