Built motion from commit d5e4af8c.|2.6.23
[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 _0x0c2b=['Router','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','/:id','post','create','put','update','delete','exports','multer','util','connect-timeout','express'];(function(_0x2dd6d9,_0x62ae06){var _0x4d8f41=function(_0x29f460){while(--_0x29f460){_0x2dd6d9['push'](_0x2dd6d9['shift']());}};_0x4d8f41(++_0x62ae06);}(_0x0c2b,0x194));var _0xb0c2=function(_0x3da862,_0x731725){_0x3da862=_0x3da862-0x0;var _0x6dd924=_0x0c2b[_0x3da862];return _0x6dd924;};'use strict';var multer=require(_0xb0c2('0x0'));var util=require(_0xb0c2('0x1'));var path=require('path');var timeout=require(_0xb0c2('0x2'));var express=require(_0xb0c2('0x3'));var router=express[_0xb0c2('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xb0c2('0x5'));var config=require(_0xb0c2('0x6'));var controller=require(_0xb0c2('0x7'));router[_0xb0c2('0x8')]('/',auth[_0xb0c2('0x9')](),controller['index']);router[_0xb0c2('0x8')](_0xb0c2('0xa'),auth[_0xb0c2('0x9')](),controller['show']);router[_0xb0c2('0xb')]('/',auth[_0xb0c2('0x9')](),controller[_0xb0c2('0xc')]);router[_0xb0c2('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xb0c2('0xe')]);router[_0xb0c2('0xf')](_0xb0c2('0xa'),auth[_0xb0c2('0x9')](),controller['destroy']);module[_0xb0c2('0x10')]=router;