3a2de6e50b2be82b7cb7a78b696492b7957657b9
[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 _0xcb81=['connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','index','isAuthenticated','show','post','create','update','delete','/:id','destroy','exports','multer','util'];(function(_0x40b944,_0x112d71){var _0x34a3f2=function(_0xd3f18b){while(--_0xd3f18b){_0x40b944['push'](_0x40b944['shift']());}};_0x34a3f2(++_0x112d71);}(_0xcb81,0x154));var _0x1cb8=function(_0x154cb5,_0x1a8d5a){_0x154cb5=_0x154cb5-0x0;var _0x3f574f=_0xcb81[_0x154cb5];return _0x3f574f;};'use strict';var multer=require(_0x1cb8('0x0'));var util=require(_0x1cb8('0x1'));var path=require('path');var timeout=require(_0x1cb8('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x1cb8('0x3'));var interaction=require(_0x1cb8('0x4'));var config=require(_0x1cb8('0x5'));var controller=require(_0x1cb8('0x6'));router[_0x1cb8('0x7')]('/',auth['isAuthenticated'](),controller[_0x1cb8('0x8')]);router[_0x1cb8('0x7')]('/:id',auth[_0x1cb8('0x9')](),controller[_0x1cb8('0xa')]);router[_0x1cb8('0xb')]('/',auth['isAuthenticated'](),controller[_0x1cb8('0xc')]);router['put']('/:id',auth[_0x1cb8('0x9')](),controller[_0x1cb8('0xd')]);router[_0x1cb8('0xe')](_0x1cb8('0xf'),auth[_0x1cb8('0x9')](),controller[_0x1cb8('0x10')]);module[_0x1cb8('0x11')]=router;