1506f6cf7749c5d7f84be10909adc5f32225614e
[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 _0x0a12=['index','create','put','/:id','update','delete','destroy','exports','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated'];(function(_0x35885a,_0x42fed7){var _0xe86249=function(_0x98edb3){while(--_0x98edb3){_0x35885a['push'](_0x35885a['shift']());}};_0xe86249(++_0x42fed7);}(_0x0a12,0xb8));var _0x20a1=function(_0x710815,_0x520da8){_0x710815=_0x710815-0x0;var _0x5b3b89=_0x0a12[_0x710815];return _0x5b3b89;};'use strict';var multer=require('multer');var util=require(_0x20a1('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x20a1('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0x20a1('0x2'));var interaction=require(_0x20a1('0x3'));var config=require(_0x20a1('0x4'));var controller=require(_0x20a1('0x5'));router[_0x20a1('0x6')]('/',auth[_0x20a1('0x7')](),controller[_0x20a1('0x8')]);router['get']('/:id',auth[_0x20a1('0x7')](),controller['show']);router['post']('/',auth[_0x20a1('0x7')](),controller[_0x20a1('0x9')]);router[_0x20a1('0xa')](_0x20a1('0xb'),auth[_0x20a1('0x7')](),controller[_0x20a1('0xc')]);router[_0x20a1('0xd')]('/:id',auth[_0x20a1('0x7')](),controller[_0x20a1('0xe')]);module[_0x20a1('0xf')]=router;