4311a039f35a471bb316e8fbb047d1d4980fe7a3
[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 _0xc5ba=['put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id'];(function(_0x28e92b,_0x3764b3){var _0x3053f6=function(_0x307758){while(--_0x307758){_0x28e92b['push'](_0x28e92b['shift']());}};_0x3053f6(++_0x3764b3);}(_0xc5ba,0xb9));var _0xac5b=function(_0x3250f7,_0x1c2afc){_0x3250f7=_0x3250f7-0x0;var _0xdb6ac4=_0xc5ba[_0x3250f7];return _0xdb6ac4;};'use strict';var multer=require(_0xac5b('0x0'));var util=require(_0xac5b('0x1'));var path=require(_0xac5b('0x2'));var timeout=require(_0xac5b('0x3'));var express=require(_0xac5b('0x4'));var router=express[_0xac5b('0x5')]();var fs_extra=require(_0xac5b('0x6'));var auth=require(_0xac5b('0x7'));var interaction=require(_0xac5b('0x8'));var config=require(_0xac5b('0x9'));var controller=require(_0xac5b('0xa'));router[_0xac5b('0xb')]('/',auth[_0xac5b('0xc')](),controller[_0xac5b('0xd')]);router[_0xac5b('0xb')](_0xac5b('0xe'),auth[_0xac5b('0xc')](),controller['show']);router['post']('/',auth[_0xac5b('0xc')](),controller['create']);router[_0xac5b('0xf')](_0xac5b('0xe'),auth[_0xac5b('0xc')](),controller[_0xac5b('0x10')]);router[_0xac5b('0x11')](_0xac5b('0xe'),auth[_0xac5b('0xc')](),controller[_0xac5b('0x12')]);module[_0xac5b('0x13')]=router;