Built motion from commit 67e5df37.|2.0.66
[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 _0x0fe0=['create','update','/:id','destroy','exports','multer','util','path','Router','./template.controller','isAuthenticated','index','get','show','post'];(function(_0x3ab1aa,_0x258cbf){var _0x15e309=function(_0x5255fb){while(--_0x5255fb){_0x3ab1aa['push'](_0x3ab1aa['shift']());}};_0x15e309(++_0x258cbf);}(_0x0fe0,0x1a9));var _0x00fe=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x0fe0[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x00fe('0x0'));var util=require(_0x00fe('0x1'));var path=require(_0x00fe('0x2'));var express=require('express');var router=express[_0x00fe('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x00fe('0x4'));router['get']('/',auth[_0x00fe('0x5')](),controller[_0x00fe('0x6')]);router[_0x00fe('0x7')]('/:id',auth[_0x00fe('0x5')](),controller[_0x00fe('0x8')]);router[_0x00fe('0x9')]('/',auth[_0x00fe('0x5')](),controller[_0x00fe('0xa')]);router['put']('/:id',auth[_0x00fe('0x5')](),controller[_0x00fe('0xb')]);router['delete'](_0x00fe('0xc'),auth[_0x00fe('0x5')](),controller[_0x00fe('0xd')]);module[_0x00fe('0xe')]=router;