ba450b80a5bfdd110fb277a44d04bc675dae227c
[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 _0xf9da=['put','update','delete','exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','post'];(function(_0x23a971,_0x70b461){var _0x36c6d3=function(_0x3ccc4e){while(--_0x3ccc4e){_0x23a971['push'](_0x23a971['shift']());}};_0x36c6d3(++_0x70b461);}(_0xf9da,0x82));var _0xaf9d=function(_0x779e96,_0x12508f){_0x779e96=_0x779e96-0x0;var _0x3ce41e=_0xf9da[_0x779e96];return _0x3ce41e;};'use strict';var multer=require('multer');var util=require(_0xaf9d('0x0'));var path=require(_0xaf9d('0x1'));var timeout=require(_0xaf9d('0x2'));var express=require(_0xaf9d('0x3'));var router=express[_0xaf9d('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xaf9d('0x5'));var config=require(_0xaf9d('0x6'));var controller=require(_0xaf9d('0x7'));router[_0xaf9d('0x8')]('/',auth[_0xaf9d('0x9')](),controller[_0xaf9d('0xa')]);router['get'](_0xaf9d('0xb'),auth['isAuthenticated'](),controller[_0xaf9d('0xc')]);router[_0xaf9d('0xd')]('/',auth[_0xaf9d('0x9')](),controller['create']);router[_0xaf9d('0xe')](_0xaf9d('0xb'),auth[_0xaf9d('0x9')](),controller[_0xaf9d('0xf')]);router[_0xaf9d('0x10')](_0xaf9d('0xb'),auth[_0xaf9d('0x9')](),controller['destroy']);module[_0xaf9d('0x11')]=router;