Built motion from commit bab6f49e.|2.6.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 _0x73a1=['get','isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x23d1e9,_0x2b9652){var _0x22da5e=function(_0x5073fb){while(--_0x5073fb){_0x23d1e9['push'](_0x23d1e9['shift']());}};_0x22da5e(++_0x2b9652);}(_0x73a1,0x161));var _0x173a=function(_0x3438cf,_0x73b174){_0x3438cf=_0x3438cf-0x0;var _0x278698=_0x73a1[_0x3438cf];return _0x278698;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x173a('0x0'));var timeout=require(_0x173a('0x1'));var express=require('express');var router=express[_0x173a('0x2')]();var fs_extra=require(_0x173a('0x3'));var auth=require(_0x173a('0x4'));var interaction=require(_0x173a('0x5'));var config=require(_0x173a('0x6'));var controller=require('./template.controller');router[_0x173a('0x7')]('/',auth[_0x173a('0x8')](),controller[_0x173a('0x9')]);router[_0x173a('0x7')](_0x173a('0xa'),auth[_0x173a('0x8')](),controller[_0x173a('0xb')]);router[_0x173a('0xc')]('/',auth[_0x173a('0x8')](),controller[_0x173a('0xd')]);router[_0x173a('0xe')](_0x173a('0xa'),auth['isAuthenticated'](),controller[_0x173a('0xf')]);router['delete'](_0x173a('0xa'),auth[_0x173a('0x8')](),controller[_0x173a('0x10')]);module[_0x173a('0x11')]=router;