Built motion from commit (unavailable).|2.5.31
[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 _0xa0fb=['../../components/auth/service','../../components/interaction/service','../../config/environment','./variable.controller','get','isAuthenticated','index','/:id','show','post','update','delete','exports','multer','util','path','express','Router','fs-extra'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xa0fb,0x19c));var _0xba0f=function(_0x18b4cf,_0xb2b103){_0x18b4cf=_0x18b4cf-0x0;var _0x3c2a0e=_0xa0fb[_0x18b4cf];return _0x3c2a0e;};'use strict';var multer=require(_0xba0f('0x0'));var util=require(_0xba0f('0x1'));var path=require(_0xba0f('0x2'));var timeout=require('connect-timeout');var express=require(_0xba0f('0x3'));var router=express[_0xba0f('0x4')]();var fs_extra=require(_0xba0f('0x5'));var auth=require(_0xba0f('0x6'));var interaction=require(_0xba0f('0x7'));var config=require(_0xba0f('0x8'));var controller=require(_0xba0f('0x9'));router[_0xba0f('0xa')]('/',auth[_0xba0f('0xb')](),controller[_0xba0f('0xc')]);router[_0xba0f('0xa')](_0xba0f('0xd'),auth['isAuthenticated'](),controller[_0xba0f('0xe')]);router[_0xba0f('0xf')]('/',auth[_0xba0f('0xb')](),controller['create']);router['put'](_0xba0f('0xd'),auth[_0xba0f('0xb')](),controller[_0xba0f('0x10')]);router[_0xba0f('0x11')](_0xba0f('0xd'),auth[_0xba0f('0xb')](),controller['destroy']);module[_0xba0f('0x12')]=router;