44000741546b86165cfcbf8550e86aeb32a6302d
[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 _0xed26=['destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./template.controller','isAuthenticated','/:id','show','post','create','put','update','delete'];(function(_0x3d7312,_0x2a6489){var _0x369fb0=function(_0x10e420){while(--_0x10e420){_0x3d7312['push'](_0x3d7312['shift']());}};_0x369fb0(++_0x2a6489);}(_0xed26,0xec));var _0x6ed2=function(_0x5ea1c5,_0x3627b8){_0x5ea1c5=_0x5ea1c5-0x0;var _0x1749cb=_0xed26[_0x5ea1c5];return _0x1749cb;};'use strict';var multer=require('multer');var util=require(_0x6ed2('0x0'));var path=require(_0x6ed2('0x1'));var timeout=require(_0x6ed2('0x2'));var express=require(_0x6ed2('0x3'));var router=express[_0x6ed2('0x4')]();var auth=require(_0x6ed2('0x5'));var interaction=require(_0x6ed2('0x6'));var config=require('../../config/environment');var controller=require(_0x6ed2('0x7'));router['get']('/',auth[_0x6ed2('0x8')](),controller['index']);router['get'](_0x6ed2('0x9'),auth[_0x6ed2('0x8')](),controller[_0x6ed2('0xa')]);router[_0x6ed2('0xb')]('/',auth[_0x6ed2('0x8')](),controller[_0x6ed2('0xc')]);router[_0x6ed2('0xd')](_0x6ed2('0x9'),auth[_0x6ed2('0x8')](),controller[_0x6ed2('0xe')]);router[_0x6ed2('0xf')](_0x6ed2('0x9'),auth[_0x6ed2('0x8')](),controller[_0x6ed2('0x10')]);module[_0x6ed2('0x11')]=router;