Built motion from commit (unavailable).|2.5.13
[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 _0x997b=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','put','update','delete','exports','multer','util','path'];(function(_0x40f330,_0x3b8a1e){var _0x22896b=function(_0xaa2a6f){while(--_0xaa2a6f){_0x40f330['push'](_0x40f330['shift']());}};_0x22896b(++_0x3b8a1e);}(_0x997b,0x10b));var _0xb997=function(_0x17fdad,_0x368f25){_0x17fdad=_0x17fdad-0x0;var _0x20eb8c=_0x997b[_0x17fdad];return _0x20eb8c;};'use strict';var multer=require(_0xb997('0x0'));var util=require(_0xb997('0x1'));var path=require(_0xb997('0x2'));var timeout=require(_0xb997('0x3'));var express=require(_0xb997('0x4'));var router=express[_0xb997('0x5')]();var auth=require(_0xb997('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb997('0x7'));var controller=require(_0xb997('0x8'));router[_0xb997('0x9')]('/',auth[_0xb997('0xa')](),controller[_0xb997('0xb')]);router[_0xb997('0x9')](_0xb997('0xc'),auth[_0xb997('0xa')](),controller[_0xb997('0xd')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xb997('0xe')](_0xb997('0xc'),auth[_0xb997('0xa')](),controller[_0xb997('0xf')]);router[_0xb997('0x10')](_0xb997('0xc'),auth['isAuthenticated'](),controller['destroy']);module[_0xb997('0x11')]=router;