59b8d2e9be22386d8a128a8bfb8a406f0e157abb
[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 _0xaf80=['util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','/:id','show','post','put','destroy','exports','multer'];(function(_0x1fcaf1,_0x21c3c2){var _0x55f464=function(_0x348eb3){while(--_0x348eb3){_0x1fcaf1['push'](_0x1fcaf1['shift']());}};_0x55f464(++_0x21c3c2);}(_0xaf80,0x1ef));var _0x0af8=function(_0x452357,_0x5a2a84){_0x452357=_0x452357-0x0;var _0x2a6424=_0xaf80[_0x452357];return _0x2a6424;};'use strict';var multer=require(_0x0af8('0x0'));var util=require(_0x0af8('0x1'));var path=require(_0x0af8('0x2'));var timeout=require(_0x0af8('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x0af8('0x4'));var interaction=require(_0x0af8('0x5'));var config=require(_0x0af8('0x6'));var controller=require(_0x0af8('0x7'));router[_0x0af8('0x8')]('/',auth[_0x0af8('0x9')](),controller['index']);router['get'](_0x0af8('0xa'),auth['isAuthenticated'](),controller[_0x0af8('0xb')]);router[_0x0af8('0xc')]('/',auth[_0x0af8('0x9')](),controller['create']);router[_0x0af8('0xd')](_0x0af8('0xa'),auth[_0x0af8('0x9')](),controller['update']);router['delete'](_0x0af8('0xa'),auth[_0x0af8('0x9')](),controller[_0x0af8('0xe')]);module[_0x0af8('0xf')]=router;