Built motion from commit (unavailable).|2.5.1
[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 _0x76d4=['index','get','/:id','show','post','create','put','update','delete','util','path','Router','../../components/interaction/service','../../config/environment','./variable.controller','isAuthenticated'];(function(_0x34a8c8,_0x31e259){var _0x1fe6e5=function(_0x30f28d){while(--_0x30f28d){_0x34a8c8['push'](_0x34a8c8['shift']());}};_0x1fe6e5(++_0x31e259);}(_0x76d4,0x1b9));var _0x476d=function(_0x283ebd,_0x383db3){_0x283ebd=_0x283ebd-0x0;var _0x35eb2d=_0x76d4[_0x283ebd];return _0x35eb2d;};'use strict';var multer=require('multer');var util=require(_0x476d('0x0'));var path=require(_0x476d('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x476d('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x476d('0x3'));var config=require(_0x476d('0x4'));var controller=require(_0x476d('0x5'));router['get']('/',auth[_0x476d('0x6')](),controller[_0x476d('0x7')]);router[_0x476d('0x8')](_0x476d('0x9'),auth[_0x476d('0x6')](),controller[_0x476d('0xa')]);router[_0x476d('0xb')]('/',auth[_0x476d('0x6')](),controller[_0x476d('0xc')]);router[_0x476d('0xd')](_0x476d('0x9'),auth[_0x476d('0x6')](),controller[_0x476d('0xe')]);router[_0x476d('0xf')](_0x476d('0x9'),auth[_0x476d('0x6')](),controller['destroy']);module['exports']=router;