a77ae141826492f624be035cb958836b8ce35e2d
[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 _0x6986=['put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','show','create'];(function(_0x7148a3,_0x1c6652){var _0x52f31d=function(_0x31c8a7){while(--_0x31c8a7){_0x7148a3['push'](_0x7148a3['shift']());}};_0x52f31d(++_0x1c6652);}(_0x6986,0x148));var _0x6698=function(_0x179c4a,_0x10eb06){_0x179c4a=_0x179c4a-0x0;var _0x5d1879=_0x6986[_0x179c4a];return _0x5d1879;};'use strict';var multer=require(_0x6698('0x0'));var util=require(_0x6698('0x1'));var path=require('path');var timeout=require(_0x6698('0x2'));var express=require(_0x6698('0x3'));var router=express[_0x6698('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6698('0x5'));var config=require(_0x6698('0x6'));var controller=require(_0x6698('0x7'));router[_0x6698('0x8')]('/',auth[_0x6698('0x9')](),controller[_0x6698('0xa')]);router[_0x6698('0x8')](_0x6698('0xb'),auth['isAuthenticated'](),controller[_0x6698('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x6698('0xd')]);router[_0x6698('0xe')](_0x6698('0xb'),auth[_0x6698('0x9')](),controller[_0x6698('0xf')]);router[_0x6698('0x10')](_0x6698('0xb'),auth[_0x6698('0x9')](),controller[_0x6698('0x11')]);module[_0x6698('0x12')]=router;