f6914df9109e8821161525b740f13110bf650827
[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 _0xc5c8=['../../components/interaction/service','./template.controller','get','isAuthenticated','index','/:id','show','post','update','destroy','multer','util','path','express','../../components/auth/service'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xc5c8,0x118));var _0x8c5c=function(_0x27af3b,_0x137570){_0x27af3b=_0x27af3b-0x0;var _0x1e4b81=_0xc5c8[_0x27af3b];return _0x1e4b81;};'use strict';var multer=require(_0x8c5c('0x0'));var util=require(_0x8c5c('0x1'));var path=require(_0x8c5c('0x2'));var timeout=require('connect-timeout');var express=require(_0x8c5c('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x8c5c('0x4'));var interaction=require(_0x8c5c('0x5'));var config=require('../../config/environment');var controller=require(_0x8c5c('0x6'));router[_0x8c5c('0x7')]('/',auth[_0x8c5c('0x8')](),controller[_0x8c5c('0x9')]);router[_0x8c5c('0x7')](_0x8c5c('0xa'),auth[_0x8c5c('0x8')](),controller[_0x8c5c('0xb')]);router[_0x8c5c('0xc')]('/',auth[_0x8c5c('0x8')](),controller['create']);router['put']('/:id',auth[_0x8c5c('0x8')](),controller[_0x8c5c('0xd')]);router['delete']('/:id',auth[_0x8c5c('0x8')](),controller[_0x8c5c('0xe')]);module['exports']=router;