684d152f4d87d0589ed6e38079f977e17953c80c
[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 _0x65fc=['destroy','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','post','create','update','delete'];(function(_0x5ec395,_0x193b8d){var _0x17632e=function(_0xaca4ad){while(--_0xaca4ad){_0x5ec395['push'](_0x5ec395['shift']());}};_0x17632e(++_0x193b8d);}(_0x65fc,0x1dd));var _0xc65f=function(_0x5ecba3,_0x204d8e){_0x5ecba3=_0x5ecba3-0x0;var _0x5bc0e1=_0x65fc[_0x5ecba3];return _0x5bc0e1;};'use strict';var multer=require('multer');var util=require(_0xc65f('0x0'));var path=require(_0xc65f('0x1'));var timeout=require(_0xc65f('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0xc65f('0x3'));var interaction=require(_0xc65f('0x4'));var config=require(_0xc65f('0x5'));var controller=require(_0xc65f('0x6'));router[_0xc65f('0x7')]('/',auth[_0xc65f('0x8')](),controller[_0xc65f('0x9')]);router[_0xc65f('0x7')](_0xc65f('0xa'),auth['isAuthenticated'](),controller[_0xc65f('0xb')]);router[_0xc65f('0xc')]('/',auth[_0xc65f('0x8')](),controller[_0xc65f('0xd')]);router['put'](_0xc65f('0xa'),auth['isAuthenticated'](),controller[_0xc65f('0xe')]);router[_0xc65f('0xf')](_0xc65f('0xa'),auth[_0xc65f('0x8')](),controller[_0xc65f('0x10')]);module['exports']=router;