Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / variable / 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 _0xe062=['express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','show','post','create','put','update','delete','/:id','destroy','exports','multer','util','connect-timeout'];(function(_0x4c54a1,_0x493a44){var _0x242c78=function(_0x38e007){while(--_0x38e007){_0x4c54a1['push'](_0x4c54a1['shift']());}};_0x242c78(++_0x493a44);}(_0xe062,0xd5));var _0x2e06=function(_0x34b2dc,_0x4a215a){_0x34b2dc=_0x34b2dc-0x0;var _0x49b872=_0xe062[_0x34b2dc];return _0x49b872;};'use strict';var multer=require(_0x2e06('0x0'));var util=require(_0x2e06('0x1'));var path=require('path');var timeout=require(_0x2e06('0x2'));var express=require(_0x2e06('0x3'));var router=express[_0x2e06('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x2e06('0x5'));var config=require(_0x2e06('0x6'));var controller=require('./variable.controller');router['get']('/',auth[_0x2e06('0x7')](),controller[_0x2e06('0x8')]);router['get']('/:id',auth[_0x2e06('0x7')](),controller[_0x2e06('0x9')]);router[_0x2e06('0xa')]('/',auth[_0x2e06('0x7')](),controller[_0x2e06('0xb')]);router[_0x2e06('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x2e06('0xd')]);router[_0x2e06('0xe')](_0x2e06('0xf'),auth['isAuthenticated'](),controller[_0x2e06('0x10')]);module[_0x2e06('0x11')]=router;