857347fd8b112e7c2d95e0cd77efc265e8805ef4
[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 _0xa02f=['exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','isAuthenticated','index','get','show','post','create','put','/:id','update','delete','destroy'];(function(_0x31db5f,_0x555bf0){var _0x10888e=function(_0x1ccd2f){while(--_0x1ccd2f){_0x31db5f['push'](_0x31db5f['shift']());}};_0x10888e(++_0x555bf0);}(_0xa02f,0x8d));var _0xfa02=function(_0x582d4c,_0x4a5361){_0x582d4c=_0x582d4c-0x0;var _0x3676d7=_0xa02f[_0x582d4c];return _0x3676d7;};'use strict';var multer=require(_0xfa02('0x0'));var util=require(_0xfa02('0x1'));var path=require('path');var timeout=require(_0xfa02('0x2'));var express=require(_0xfa02('0x3'));var router=express['Router']();var auth=require(_0xfa02('0x4'));var interaction=require(_0xfa02('0x5'));var config=require(_0xfa02('0x6'));var controller=require(_0xfa02('0x7'));router['get']('/',auth[_0xfa02('0x8')](),controller[_0xfa02('0x9')]);router[_0xfa02('0xa')]('/:id',auth[_0xfa02('0x8')](),controller[_0xfa02('0xb')]);router[_0xfa02('0xc')]('/',auth[_0xfa02('0x8')](),controller[_0xfa02('0xd')]);router[_0xfa02('0xe')](_0xfa02('0xf'),auth['isAuthenticated'](),controller[_0xfa02('0x10')]);router[_0xfa02('0x11')]('/:id',auth[_0xfa02('0x8')](),controller[_0xfa02('0x12')]);module[_0xfa02('0x13')]=router;