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