967dca03f0725e948ad667efe02a84d9fda6ce25
[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 _0xbeff=['connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./variable.controller','get','index','isAuthenticated','show','put','update','delete','/:id','destroy','exports','util','path'];(function(_0x59d0cc,_0xa7c52b){var _0x2ae79f=function(_0x33042e){while(--_0x33042e){_0x59d0cc['push'](_0x59d0cc['shift']());}};_0x2ae79f(++_0xa7c52b);}(_0xbeff,0x8e));var _0xfbef=function(_0x5c58cb,_0x421722){_0x5c58cb=_0x5c58cb-0x0;var _0x35964f=_0xbeff[_0x5c58cb];return _0x35964f;};'use strict';var multer=require('multer');var util=require(_0xfbef('0x0'));var path=require(_0xfbef('0x1'));var timeout=require(_0xfbef('0x2'));var express=require(_0xfbef('0x3'));var router=express[_0xfbef('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xfbef('0x5'));var config=require(_0xfbef('0x6'));var controller=require(_0xfbef('0x7'));router[_0xfbef('0x8')]('/',auth['isAuthenticated'](),controller[_0xfbef('0x9')]);router[_0xfbef('0x8')]('/:id',auth[_0xfbef('0xa')](),controller[_0xfbef('0xb')]);router['post']('/',auth[_0xfbef('0xa')](),controller['create']);router[_0xfbef('0xc')]('/:id',auth[_0xfbef('0xa')](),controller[_0xfbef('0xd')]);router[_0xfbef('0xe')](_0xfbef('0xf'),auth[_0xfbef('0xa')](),controller[_0xfbef('0x10')]);module[_0xfbef('0x11')]=router;