Built motion from commit (unavailable).|2.5.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 _0x3397=['../../components/interaction/service','./template.controller','isAuthenticated','get','show','create','put','/:id','destroy','exports','multer','util','path','express','Router'];(function(_0x23db5a,_0x1fddb4){var _0x1145bc=function(_0xa646af){while(--_0xa646af){_0x23db5a['push'](_0x23db5a['shift']());}};_0x1145bc(++_0x1fddb4);}(_0x3397,0xdc));var _0x7339=function(_0xe51920,_0x4a1092){_0xe51920=_0xe51920-0x0;var _0x4e4c70=_0x3397[_0xe51920];return _0x4e4c70;};'use strict';var multer=require(_0x7339('0x0'));var util=require(_0x7339('0x1'));var path=require(_0x7339('0x2'));var timeout=require('connect-timeout');var express=require(_0x7339('0x3'));var router=express[_0x7339('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x7339('0x5'));var config=require('../../config/environment');var controller=require(_0x7339('0x6'));router['get']('/',auth[_0x7339('0x7')](),controller['index']);router[_0x7339('0x8')]('/:id',auth[_0x7339('0x7')](),controller[_0x7339('0x9')]);router['post']('/',auth['isAuthenticated'](),controller[_0x7339('0xa')]);router[_0x7339('0xb')](_0x7339('0xc'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x7339('0xc'),auth[_0x7339('0x7')](),controller[_0x7339('0xd')]);module[_0x7339('0xe')]=router;