Built motion from commit da617fac.|2.6.6
[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 _0xa057=['isAuthenticated','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./template.controller','index','get','/:id','show','post'];(function(_0x2d9abc,_0x3ed238){var _0x3ef520=function(_0x48e86a){while(--_0x48e86a){_0x2d9abc['push'](_0x2d9abc['shift']());}};_0x3ef520(++_0x3ed238);}(_0xa057,0x123));var _0x7a05=function(_0x1b1832,_0x54251e){_0x1b1832=_0x1b1832-0x0;var _0x1fb883=_0xa057[_0x1b1832];return _0x1fb883;};'use strict';var multer=require(_0x7a05('0x0'));var util=require(_0x7a05('0x1'));var path=require('path');var timeout=require(_0x7a05('0x2'));var express=require(_0x7a05('0x3'));var router=express[_0x7a05('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x7a05('0x5'));var interaction=require(_0x7a05('0x6'));var config=require('../../config/environment');var controller=require(_0x7a05('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x7a05('0x8')]);router[_0x7a05('0x9')](_0x7a05('0xa'),auth['isAuthenticated'](),controller[_0x7a05('0xb')]);router[_0x7a05('0xc')]('/',auth[_0x7a05('0xd')](),controller['create']);router[_0x7a05('0xe')](_0x7a05('0xa'),auth[_0x7a05('0xd')](),controller[_0x7a05('0xf')]);router[_0x7a05('0x10')](_0x7a05('0xa'),auth['isAuthenticated'](),controller[_0x7a05('0x11')]);module[_0x7a05('0x12')]=router;