Built motion from commit b0a9a629.|2.6.33
[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 _0x2fe5=['isAuthenticated','show','create','put','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./template.controller','get','index','/:id'];(function(_0x352c7c,_0x545754){var _0x112642=function(_0x245fe6){while(--_0x245fe6){_0x352c7c['push'](_0x352c7c['shift']());}};_0x112642(++_0x545754);}(_0x2fe5,0x14b));var _0x52fe=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x2fe5[_0x59ee6f];return _0x4c0979;};'use strict';var multer=require(_0x52fe('0x0'));var util=require(_0x52fe('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x52fe('0x2'));var router=express[_0x52fe('0x3')]();var fs_extra=require(_0x52fe('0x4'));var auth=require(_0x52fe('0x5'));var interaction=require(_0x52fe('0x6'));var config=require('../../config/environment');var controller=require(_0x52fe('0x7'));router[_0x52fe('0x8')]('/',auth['isAuthenticated'](),controller[_0x52fe('0x9')]);router[_0x52fe('0x8')](_0x52fe('0xa'),auth[_0x52fe('0xb')](),controller[_0x52fe('0xc')]);router['post']('/',auth[_0x52fe('0xb')](),controller[_0x52fe('0xd')]);router[_0x52fe('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x52fe('0xf')]);router[_0x52fe('0x10')]('/:id',auth[_0x52fe('0xb')](),controller[_0x52fe('0x11')]);module[_0x52fe('0x12')]=router;