Built motion from commit e1760111.|2.6.18
[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 _0x630e=['path','Router','fs-extra','../../components/auth/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','post','create','put','delete','destroy','multer'];(function(_0x69c91e,_0x2ab08c){var _0x22cb44=function(_0x5402d8){while(--_0x5402d8){_0x69c91e['push'](_0x69c91e['shift']());}};_0x22cb44(++_0x2ab08c);}(_0x630e,0x1af));var _0xe630=function(_0x10d784,_0x123341){_0x10d784=_0x10d784-0x0;var _0x1d987b=_0x630e[_0x10d784];return _0x1d987b;};'use strict';var multer=require(_0xe630('0x0'));var util=require('util');var path=require(_0xe630('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xe630('0x2')]();var fs_extra=require(_0xe630('0x3'));var auth=require(_0xe630('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xe630('0x5'));var controller=require(_0xe630('0x6'));router[_0xe630('0x7')]('/',auth[_0xe630('0x8')](),controller[_0xe630('0x9')]);router['get'](_0xe630('0xa'),auth[_0xe630('0x8')](),controller['show']);router[_0xe630('0xb')]('/',auth['isAuthenticated'](),controller[_0xe630('0xc')]);router[_0xe630('0xd')](_0xe630('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xe630('0xe')](_0xe630('0xa'),auth[_0xe630('0x8')](),controller[_0xe630('0xf')]);module['exports']=router;