a18dd7b19dbec472d013275a2e3b2961c0a29a52
[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 _0x4c99=['../../config/environment','./template.controller','isAuthenticated','show','post','create','put','/:id','update','delete','destroy','exports','multer','path','fs-extra','../../components/auth/service'];(function(_0x25bab9,_0x27d7a0){var _0x4a33e9=function(_0x21020e){while(--_0x21020e){_0x25bab9['push'](_0x25bab9['shift']());}};_0x4a33e9(++_0x27d7a0);}(_0x4c99,0x1ec));var _0x94c9=function(_0x1928c9,_0x13a6d1){_0x1928c9=_0x1928c9-0x0;var _0x51b5fb=_0x4c99[_0x1928c9];return _0x51b5fb;};'use strict';var multer=require(_0x94c9('0x0'));var util=require('util');var path=require(_0x94c9('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x94c9('0x2'));var auth=require(_0x94c9('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x94c9('0x4'));var controller=require(_0x94c9('0x5'));router['get']('/',auth[_0x94c9('0x6')](),controller['index']);router['get']('/:id',auth[_0x94c9('0x6')](),controller[_0x94c9('0x7')]);router[_0x94c9('0x8')]('/',auth[_0x94c9('0x6')](),controller[_0x94c9('0x9')]);router[_0x94c9('0xa')](_0x94c9('0xb'),auth[_0x94c9('0x6')](),controller[_0x94c9('0xc')]);router[_0x94c9('0xd')]('/:id',auth[_0x94c9('0x6')](),controller[_0x94c9('0xe')]);module[_0x94c9('0xf')]=router;