Built motion from commit 3c2ce842.|2.6.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 _0x89fe=['get','isAuthenticated','index','show','post','create','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/interaction/service','../../config/environment','./variable.controller'];(function(_0x2a9ec5,_0xed23b){var _0x52c7c0=function(_0x54b22d){while(--_0x54b22d){_0x2a9ec5['push'](_0x2a9ec5['shift']());}};_0x52c7c0(++_0xed23b);}(_0x89fe,0x83));var _0xe89f=function(_0x4273e2,_0x4e7c61){_0x4273e2=_0x4273e2-0x0;var _0x374a34=_0x89fe[_0x4273e2];return _0x374a34;};'use strict';var multer=require(_0xe89f('0x0'));var util=require(_0xe89f('0x1'));var path=require(_0xe89f('0x2'));var timeout=require(_0xe89f('0x3'));var express=require('express');var router=express[_0xe89f('0x4')]();var fs_extra=require(_0xe89f('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe89f('0x6'));var config=require(_0xe89f('0x7'));var controller=require(_0xe89f('0x8'));router[_0xe89f('0x9')]('/',auth[_0xe89f('0xa')](),controller[_0xe89f('0xb')]);router[_0xe89f('0x9')]('/:id',auth[_0xe89f('0xa')](),controller[_0xe89f('0xc')]);router[_0xe89f('0xd')]('/',auth[_0xe89f('0xa')](),controller[_0xe89f('0xe')]);router['put'](_0xe89f('0xf'),auth[_0xe89f('0xa')](),controller[_0xe89f('0x10')]);router[_0xe89f('0x11')](_0xe89f('0xf'),auth[_0xe89f('0xa')](),controller[_0xe89f('0x12')]);module[_0xe89f('0x13')]=router;