fbcc0795da9547adb0c0cca7fe6f3e9159b87973
[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 _0x1472=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','./template.controller','get','isAuthenticated','/:id','show','post','put','update','delete','destroy','multer','util'];(function(_0x2af29a,_0x4f44bc){var _0x5ef02f=function(_0x4349ef){while(--_0x4349ef){_0x2af29a['push'](_0x2af29a['shift']());}};_0x5ef02f(++_0x4f44bc);}(_0x1472,0x166));var _0x2147=function(_0x58eec7,_0x2353db){_0x58eec7=_0x58eec7-0x0;var _0x25c5d3=_0x1472[_0x58eec7];return _0x25c5d3;};'use strict';var multer=require(_0x2147('0x0'));var util=require(_0x2147('0x1'));var path=require(_0x2147('0x2'));var timeout=require(_0x2147('0x3'));var express=require(_0x2147('0x4'));var router=express[_0x2147('0x5')]();var fs_extra=require(_0x2147('0x6'));var auth=require(_0x2147('0x7'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x2147('0x8'));router[_0x2147('0x9')]('/',auth[_0x2147('0xa')](),controller['index']);router['get'](_0x2147('0xb'),auth['isAuthenticated'](),controller[_0x2147('0xc')]);router[_0x2147('0xd')]('/',auth[_0x2147('0xa')](),controller['create']);router[_0x2147('0xe')](_0x2147('0xb'),auth['isAuthenticated'](),controller[_0x2147('0xf')]);router[_0x2147('0x10')](_0x2147('0xb'),auth[_0x2147('0xa')](),controller[_0x2147('0x11')]);module['exports']=router;