Built motion from commit (unavailable).|2.5.4
[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 _0x3a0d=['index','/:id','show','post','create','put','update','delete','destroy','multer','util','connect-timeout','express','Router','../../config/environment','./template.controller','get','isAuthenticated'];(function(_0x4e73ba,_0x3e30f0){var _0x47e660=function(_0x15b83d){while(--_0x15b83d){_0x4e73ba['push'](_0x4e73ba['shift']());}};_0x47e660(++_0x3e30f0);}(_0x3a0d,0xf3));var _0xd3a0=function(_0x58e109,_0x2fd11c){_0x58e109=_0x58e109-0x0;var _0x1a15e7=_0x3a0d[_0x58e109];return _0x1a15e7;};'use strict';var multer=require(_0xd3a0('0x0'));var util=require(_0xd3a0('0x1'));var path=require('path');var timeout=require(_0xd3a0('0x2'));var express=require(_0xd3a0('0x3'));var router=express[_0xd3a0('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd3a0('0x5'));var controller=require(_0xd3a0('0x6'));router[_0xd3a0('0x7')]('/',auth[_0xd3a0('0x8')](),controller[_0xd3a0('0x9')]);router[_0xd3a0('0x7')](_0xd3a0('0xa'),auth['isAuthenticated'](),controller[_0xd3a0('0xb')]);router[_0xd3a0('0xc')]('/',auth[_0xd3a0('0x8')](),controller[_0xd3a0('0xd')]);router[_0xd3a0('0xe')](_0xd3a0('0xa'),auth[_0xd3a0('0x8')](),controller[_0xd3a0('0xf')]);router[_0xd3a0('0x10')](_0xd3a0('0xa'),auth[_0xd3a0('0x8')](),controller[_0xd3a0('0x11')]);module['exports']=router;