996d213a5e3e321f804611d916fd105835142e81
[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 _0xf6e7=['put','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','/:id','show','post','create'];(function(_0x5573ec,_0x235935){var _0x2f7981=function(_0x31f251){while(--_0x31f251){_0x5573ec['push'](_0x5573ec['shift']());}};_0x2f7981(++_0x235935);}(_0xf6e7,0x146));var _0x7f6e=function(_0x36269d,_0x40bc37){_0x36269d=_0x36269d-0x0;var _0x47c278=_0xf6e7[_0x36269d];return _0x47c278;};'use strict';var multer=require(_0x7f6e('0x0'));var util=require(_0x7f6e('0x1'));var path=require(_0x7f6e('0x2'));var timeout=require(_0x7f6e('0x3'));var express=require(_0x7f6e('0x4'));var router=express[_0x7f6e('0x5')]();var auth=require(_0x7f6e('0x6'));var interaction=require(_0x7f6e('0x7'));var config=require(_0x7f6e('0x8'));var controller=require(_0x7f6e('0x9'));router[_0x7f6e('0xa')]('/',auth[_0x7f6e('0xb')](),controller['index']);router[_0x7f6e('0xa')](_0x7f6e('0xc'),auth['isAuthenticated'](),controller[_0x7f6e('0xd')]);router[_0x7f6e('0xe')]('/',auth[_0x7f6e('0xb')](),controller[_0x7f6e('0xf')]);router[_0x7f6e('0x10')](_0x7f6e('0xc'),auth[_0x7f6e('0xb')](),controller[_0x7f6e('0x11')]);router['delete'](_0x7f6e('0xc'),auth[_0x7f6e('0xb')](),controller[_0x7f6e('0x12')]);module['exports']=router;