739861d09aabb043eefc164a1f97861a6d60da8b
[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 _0x473a=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','/:id','show','post','isAuthenticated','create','put','util','path'];(function(_0xb30d7c,_0x58f354){var _0x3ebd13=function(_0x544c2c){while(--_0x544c2c){_0xb30d7c['push'](_0xb30d7c['shift']());}};_0x3ebd13(++_0x58f354);}(_0x473a,0xa3));var _0xa473=function(_0x4528ff,_0x41b59f){_0x4528ff=_0x4528ff-0x0;var _0x5e5149=_0x473a[_0x4528ff];return _0x5e5149;};'use strict';var multer=require('multer');var util=require(_0xa473('0x0'));var path=require(_0xa473('0x1'));var timeout=require(_0xa473('0x2'));var express=require('express');var router=express[_0xa473('0x3')]();var auth=require(_0xa473('0x4'));var interaction=require(_0xa473('0x5'));var config=require(_0xa473('0x6'));var controller=require(_0xa473('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xa473('0x8')](_0xa473('0x9'),auth['isAuthenticated'](),controller[_0xa473('0xa')]);router[_0xa473('0xb')]('/',auth[_0xa473('0xc')](),controller[_0xa473('0xd')]);router[_0xa473('0xe')](_0xa473('0x9'),auth['isAuthenticated'](),controller['update']);router['delete'](_0xa473('0x9'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;