Built motion from commit 3e059bc2.|2.5.32
[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 _0xb44a=['destroy','exports','path','express','../../components/auth/service','../../config/environment','./template.controller','get','isAuthenticated','index','/:id','show','post','create','put','delete'];(function(_0x154c18,_0x26749f){var _0xaf76e=function(_0x1e9633){while(--_0x1e9633){_0x154c18['push'](_0x154c18['shift']());}};_0xaf76e(++_0x26749f);}(_0xb44a,0x1c2));var _0xab44=function(_0x5f002d,_0x1b9dc8){_0x5f002d=_0x5f002d-0x0;var _0x544598=_0xb44a[_0x5f002d];return _0x544598;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab44('0x0'));var timeout=require('connect-timeout');var express=require(_0xab44('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xab44('0x2'));var interaction=require('../../components/interaction/service');var config=require(_0xab44('0x3'));var controller=require(_0xab44('0x4'));router[_0xab44('0x5')]('/',auth[_0xab44('0x6')](),controller[_0xab44('0x7')]);router[_0xab44('0x5')](_0xab44('0x8'),auth[_0xab44('0x6')](),controller[_0xab44('0x9')]);router[_0xab44('0xa')]('/',auth[_0xab44('0x6')](),controller[_0xab44('0xb')]);router[_0xab44('0xc')]('/:id',auth[_0xab44('0x6')](),controller['update']);router[_0xab44('0xd')]('/:id',auth['isAuthenticated'](),controller[_0xab44('0xe')]);module[_0xab44('0xf')]=router;