Built motion from commit (unavailable).|2.5.8
[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 _0xde3d=['path','connect-timeout','Router','../../components/auth/service','../../config/environment','./template.controller','get','isAuthenticated','/:id','show','post','update','delete','destroy','multer'];(function(_0x3dea18,_0x5b9686){var _0x1e1231=function(_0x11af71){while(--_0x11af71){_0x3dea18['push'](_0x3dea18['shift']());}};_0x1e1231(++_0x5b9686);}(_0xde3d,0xfe));var _0xdde3=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xde3d[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0xdde3('0x0'));var util=require('util');var path=require(_0xdde3('0x1'));var timeout=require(_0xdde3('0x2'));var express=require('express');var router=express[_0xdde3('0x3')]();var auth=require(_0xdde3('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xdde3('0x5'));var controller=require(_0xdde3('0x6'));router[_0xdde3('0x7')]('/',auth[_0xdde3('0x8')](),controller['index']);router['get'](_0xdde3('0x9'),auth['isAuthenticated'](),controller[_0xdde3('0xa')]);router[_0xdde3('0xb')]('/',auth[_0xdde3('0x8')](),controller['create']);router['put'](_0xdde3('0x9'),auth['isAuthenticated'](),controller[_0xdde3('0xc')]);router[_0xdde3('0xd')](_0xdde3('0x9'),auth['isAuthenticated'](),controller[_0xdde3('0xe')]);module['exports']=router;