c037d062d52bef3b6a714436129fbb8c6f47a187
[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 _0x7a52=['../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','put','delete','multer','path','connect-timeout','express','Router'];(function(_0xbca1b1,_0x33f0ce){var _0x4e1686=function(_0x58a80c){while(--_0x58a80c){_0xbca1b1['push'](_0xbca1b1['shift']());}};_0x4e1686(++_0x33f0ce);}(_0x7a52,0x1bd));var _0x27a5=function(_0x56eda3,_0xda3e68){_0x56eda3=_0x56eda3-0x0;var _0x57c9c3=_0x7a52[_0x56eda3];return _0x57c9c3;};'use strict';var multer=require(_0x27a5('0x0'));var util=require('util');var path=require(_0x27a5('0x1'));var timeout=require(_0x27a5('0x2'));var express=require(_0x27a5('0x3'));var router=express[_0x27a5('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x27a5('0x5'));var interaction=require(_0x27a5('0x6'));var config=require(_0x27a5('0x7'));var controller=require(_0x27a5('0x8'));router[_0x27a5('0x9')]('/',auth[_0x27a5('0xa')](),controller[_0x27a5('0xb')]);router['get'](_0x27a5('0xc'),auth[_0x27a5('0xa')](),controller['show']);router['post']('/',auth[_0x27a5('0xa')](),controller['create']);router[_0x27a5('0xd')](_0x27a5('0xc'),auth[_0x27a5('0xa')](),controller['update']);router[_0x27a5('0xe')](_0x27a5('0xc'),auth[_0x27a5('0xa')](),controller['destroy']);module['exports']=router;