Built motion from commit (unavailable).|2.5.21
[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 _0xd4f3=['multer','path','express','Router','../../config/environment','./template.controller','isAuthenticated','index','get','/:id','show','create','put','delete','destroy'];(function(_0x53e8a0,_0x496723){var _0x3f268d=function(_0x3925be){while(--_0x3925be){_0x53e8a0['push'](_0x53e8a0['shift']());}};_0x3f268d(++_0x496723);}(_0xd4f3,0x1a4));var _0x3d4f=function(_0x411978,_0x4927bb){_0x411978=_0x411978-0x0;var _0x5cf515=_0xd4f3[_0x411978];return _0x5cf515;};'use strict';var multer=require(_0x3d4f('0x0'));var util=require('util');var path=require(_0x3d4f('0x1'));var timeout=require('connect-timeout');var express=require(_0x3d4f('0x2'));var router=express[_0x3d4f('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x3d4f('0x4'));var controller=require(_0x3d4f('0x5'));router['get']('/',auth[_0x3d4f('0x6')](),controller[_0x3d4f('0x7')]);router[_0x3d4f('0x8')](_0x3d4f('0x9'),auth['isAuthenticated'](),controller[_0x3d4f('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x3d4f('0xb')]);router[_0x3d4f('0xc')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x3d4f('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x3d4f('0xe')]);module['exports']=router;