Built motion from commit f7863d46.|2.5.41
[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 _0xfd28=['express','fs-extra','../../components/auth/service','../../components/interaction/service','./variable.controller','get','isAuthenticated','index','show','post','put','delete','exports','util','path'];(function(_0x23117d,_0x3f4d4f){var _0x3270d8=function(_0x15851e){while(--_0x15851e){_0x23117d['push'](_0x23117d['shift']());}};_0x3270d8(++_0x3f4d4f);}(_0xfd28,0x148));var _0x8fd2=function(_0xa2c0a3,_0x5bbac0){_0xa2c0a3=_0xa2c0a3-0x0;var _0x52c618=_0xfd28[_0xa2c0a3];return _0x52c618;};'use strict';var multer=require('multer');var util=require(_0x8fd2('0x0'));var path=require(_0x8fd2('0x1'));var timeout=require('connect-timeout');var express=require(_0x8fd2('0x2'));var router=express['Router']();var fs_extra=require(_0x8fd2('0x3'));var auth=require(_0x8fd2('0x4'));var interaction=require(_0x8fd2('0x5'));var config=require('../../config/environment');var controller=require(_0x8fd2('0x6'));router[_0x8fd2('0x7')]('/',auth[_0x8fd2('0x8')](),controller[_0x8fd2('0x9')]);router[_0x8fd2('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x8fd2('0xa')]);router[_0x8fd2('0xb')]('/',auth[_0x8fd2('0x8')](),controller['create']);router[_0x8fd2('0xc')]('/:id',auth[_0x8fd2('0x8')](),controller['update']);router[_0x8fd2('0xd')]('/:id',auth[_0x8fd2('0x8')](),controller['destroy']);module[_0x8fd2('0xe')]=router;