Built motion from commit (unavailable).|2.5.1
[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 _0x9a27=['util','path','connect-timeout','express','Router','../../config/environment','get','isAuthenticated','index','/:id','post','put','update','delete','destroy','exports','multer'];(function(_0x401854,_0xf94d36){var _0x548b09=function(_0x3e3c97){while(--_0x3e3c97){_0x401854['push'](_0x401854['shift']());}};_0x548b09(++_0xf94d36);}(_0x9a27,0x186));var _0x79a2=function(_0x366ac5,_0xfdd4f1){_0x366ac5=_0x366ac5-0x0;var _0x5bc55d=_0x9a27[_0x366ac5];return _0x5bc55d;};'use strict';var multer=require(_0x79a2('0x0'));var util=require(_0x79a2('0x1'));var path=require(_0x79a2('0x2'));var timeout=require(_0x79a2('0x3'));var express=require(_0x79a2('0x4'));var router=express[_0x79a2('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x79a2('0x6'));var controller=require('./template.controller');router[_0x79a2('0x7')]('/',auth[_0x79a2('0x8')](),controller[_0x79a2('0x9')]);router[_0x79a2('0x7')](_0x79a2('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x79a2('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x79a2('0xc')](_0x79a2('0xa'),auth[_0x79a2('0x8')](),controller[_0x79a2('0xd')]);router[_0x79a2('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x79a2('0xf')]);module[_0x79a2('0x10')]=router;