Built motion from commit f7863d46.|2.5.41
[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 _0x8374=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','exports','multer','util'];(function(_0x1d1f97,_0x575545){var _0x178508=function(_0x5a3702){while(--_0x5a3702){_0x1d1f97['push'](_0x1d1f97['shift']());}};_0x178508(++_0x575545);}(_0x8374,0x174));var _0x4837=function(_0x1afe7f,_0x5094a9){_0x1afe7f=_0x1afe7f-0x0;var _0x2650c0=_0x8374[_0x1afe7f];return _0x2650c0;};'use strict';var multer=require(_0x4837('0x0'));var util=require(_0x4837('0x1'));var path=require(_0x4837('0x2'));var timeout=require(_0x4837('0x3'));var express=require(_0x4837('0x4'));var router=express[_0x4837('0x5')]();var fs_extra=require(_0x4837('0x6'));var auth=require(_0x4837('0x7'));var interaction=require(_0x4837('0x8'));var config=require(_0x4837('0x9'));var controller=require(_0x4837('0xa'));router[_0x4837('0xb')]('/',auth[_0x4837('0xc')](),controller[_0x4837('0xd')]);router['get'](_0x4837('0xe'),auth['isAuthenticated'](),controller[_0x4837('0xf')]);router[_0x4837('0x10')]('/',auth[_0x4837('0xc')](),controller[_0x4837('0x11')]);router[_0x4837('0x12')](_0x4837('0xe'),auth[_0x4837('0xc')](),controller[_0x4837('0x13')]);router[_0x4837('0x14')](_0x4837('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x4837('0x15')]=router;