Built motion from commit 3c2ce842.|2.6.31
[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 _0x5eef=['update','delete','destroy','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./template.controller','get','/:id','show','post','isAuthenticated','create','put'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x5eef,0x9c));var _0xf5ee=function(_0x13981c,_0xb249e1){_0x13981c=_0x13981c-0x0;var _0x59d65d=_0x5eef[_0x13981c];return _0x59d65d;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf5ee('0x0'));var timeout=require('connect-timeout');var express=require(_0xf5ee('0x1'));var router=express['Router']();var fs_extra=require(_0xf5ee('0x2'));var auth=require(_0xf5ee('0x3'));var interaction=require(_0xf5ee('0x4'));var config=require(_0xf5ee('0x5'));var controller=require(_0xf5ee('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xf5ee('0x7')](_0xf5ee('0x8'),auth['isAuthenticated'](),controller[_0xf5ee('0x9')]);router[_0xf5ee('0xa')]('/',auth[_0xf5ee('0xb')](),controller[_0xf5ee('0xc')]);router[_0xf5ee('0xd')](_0xf5ee('0x8'),auth[_0xf5ee('0xb')](),controller[_0xf5ee('0xe')]);router[_0xf5ee('0xf')](_0xf5ee('0x8'),auth['isAuthenticated'](),controller[_0xf5ee('0x10')]);module['exports']=router;