Built motion from commit (unavailable).|2.0.74
[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 _0x8390=['../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','show','create','put','update','destroy','multer','util','path','express','../../components/auth/service','../../components/interaction/service'];(function(_0x468a9d,_0x9924e){var _0x1013c0=function(_0x544274){while(--_0x544274){_0x468a9d['push'](_0x468a9d['shift']());}};_0x1013c0(++_0x9924e);}(_0x8390,0x71));var _0x0839=function(_0x3c487b,_0x44c5e2){_0x3c487b=_0x3c487b-0x0;var _0x1d65f6=_0x8390[_0x3c487b];return _0x1d65f6;};'use strict';var multer=require(_0x0839('0x0'));var util=require(_0x0839('0x1'));var path=require(_0x0839('0x2'));var express=require(_0x0839('0x3'));var router=express['Router']();var auth=require(_0x0839('0x4'));var interaction=require(_0x0839('0x5'));var config=require(_0x0839('0x6'));var controller=require(_0x0839('0x7'));router[_0x0839('0x8')]('/',auth[_0x0839('0x9')](),controller[_0x0839('0xa')]);router[_0x0839('0x8')](_0x0839('0xb'),auth[_0x0839('0x9')](),controller[_0x0839('0xc')]);router['post']('/',auth[_0x0839('0x9')](),controller[_0x0839('0xd')]);router[_0x0839('0xe')](_0x0839('0xb'),auth['isAuthenticated'](),controller[_0x0839('0xf')]);router['delete'](_0x0839('0xb'),auth['isAuthenticated'](),controller[_0x0839('0x10')]);module['exports']=router;