Built motion from commit 87cd5f02.|2.5.48
[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 _0xb5fa=['/:id','isAuthenticated','post','create','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get'];(function(_0x313dab,_0x3ee88c){var _0x52870d=function(_0x4eb3a5){while(--_0x4eb3a5){_0x313dab['push'](_0x313dab['shift']());}};_0x52870d(++_0x3ee88c);}(_0xb5fa,0xf8));var _0xab5f=function(_0x4a6bc2,_0x552780){_0x4a6bc2=_0x4a6bc2-0x0;var _0x4e7321=_0xb5fa[_0x4a6bc2];return _0x4e7321;};'use strict';var multer=require(_0xab5f('0x0'));var util=require(_0xab5f('0x1'));var path=require(_0xab5f('0x2'));var timeout=require(_0xab5f('0x3'));var express=require(_0xab5f('0x4'));var router=express[_0xab5f('0x5')]();var fs_extra=require(_0xab5f('0x6'));var auth=require(_0xab5f('0x7'));var interaction=require(_0xab5f('0x8'));var config=require(_0xab5f('0x9'));var controller=require(_0xab5f('0xa'));router[_0xab5f('0xb')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xab5f('0xc'),auth[_0xab5f('0xd')](),controller['show']);router[_0xab5f('0xe')]('/',auth[_0xab5f('0xd')](),controller[_0xab5f('0xf')]);router[_0xab5f('0x10')](_0xab5f('0xc'),auth['isAuthenticated'](),controller[_0xab5f('0x11')]);router['delete'](_0xab5f('0xc'),auth['isAuthenticated'](),controller[_0xab5f('0x12')]);module[_0xab5f('0x13')]=router;