912a26400cc949c6429a654cfc9045ab4abcd598
[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 _0xb96d=['create','put','update','destroy','exports','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','./template.controller','get','isAuthenticated','index','/:id','post'];(function(_0x1be404,_0x2eeda5){var _0x479636=function(_0x5bda47){while(--_0x5bda47){_0x1be404['push'](_0x1be404['shift']());}};_0x479636(++_0x2eeda5);}(_0xb96d,0x9e));var _0xdb96=function(_0x1f44e4,_0x22d9fd){_0x1f44e4=_0x1f44e4-0x0;var _0x591989=_0xb96d[_0x1f44e4];return _0x591989;};'use strict';var multer=require('multer');var util=require(_0xdb96('0x0'));var path=require(_0xdb96('0x1'));var timeout=require(_0xdb96('0x2'));var express=require('express');var router=express[_0xdb96('0x3')]();var fs_extra=require(_0xdb96('0x4'));var auth=require(_0xdb96('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xdb96('0x6'));router[_0xdb96('0x7')]('/',auth[_0xdb96('0x8')](),controller[_0xdb96('0x9')]);router['get'](_0xdb96('0xa'),auth[_0xdb96('0x8')](),controller['show']);router[_0xdb96('0xb')]('/',auth['isAuthenticated'](),controller[_0xdb96('0xc')]);router[_0xdb96('0xd')]('/:id',auth[_0xdb96('0x8')](),controller[_0xdb96('0xe')]);router['delete'](_0xdb96('0xa'),auth[_0xdb96('0x8')](),controller[_0xdb96('0xf')]);module[_0xdb96('0x10')]=router;