Built motion from commit (unavailable).|2.5.0
[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 _0xeec8=['create','/:id','update','multer','connect-timeout','../../components/interaction/service','./template.controller','get','isAuthenticated','index','show','post'];(function(_0x1d04ad,_0x266790){var _0x3fb07f=function(_0x5ab868){while(--_0x5ab868){_0x1d04ad['push'](_0x1d04ad['shift']());}};_0x3fb07f(++_0x266790);}(_0xeec8,0x16b));var _0x8eec=function(_0x3b000c,_0xa3a56d){_0x3b000c=_0x3b000c-0x0;var _0x430655=_0xeec8[_0x3b000c];return _0x430655;};'use strict';var multer=require(_0x8eec('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x8eec('0x1'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x8eec('0x2'));var config=require('../../config/environment');var controller=require(_0x8eec('0x3'));router[_0x8eec('0x4')]('/',auth[_0x8eec('0x5')](),controller[_0x8eec('0x6')]);router[_0x8eec('0x4')]('/:id',auth[_0x8eec('0x5')](),controller[_0x8eec('0x7')]);router[_0x8eec('0x8')]('/',auth[_0x8eec('0x5')](),controller[_0x8eec('0x9')]);router['put'](_0x8eec('0xa'),auth[_0x8eec('0x5')](),controller[_0x8eec('0xb')]);router['delete']('/:id',auth[_0x8eec('0x5')](),controller['destroy']);module['exports']=router;