Built motion from commit (unavailable).|2.5.4
[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 _0x3c44=['index','show','create','put','/:id','isAuthenticated','update','delete','exports','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0xa6fefc,_0x24a434){var _0x2c65a7=function(_0x58c1d1){while(--_0x58c1d1){_0xa6fefc['push'](_0xa6fefc['shift']());}};_0x2c65a7(++_0x24a434);}(_0x3c44,0x129));var _0x43c4=function(_0x1768ee,_0x476865){_0x1768ee=_0x1768ee-0x0;var _0x5aa692=_0x3c44[_0x1768ee];return _0x5aa692;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x43c4('0x0'));var timeout=require(_0x43c4('0x1'));var express=require(_0x43c4('0x2'));var router=express['Router']();var auth=require(_0x43c4('0x3'));var interaction=require(_0x43c4('0x4'));var config=require(_0x43c4('0x5'));var controller=require('./variable.controller');router[_0x43c4('0x6')]('/',auth['isAuthenticated'](),controller[_0x43c4('0x7')]);router[_0x43c4('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x43c4('0x8')]);router['post']('/',auth['isAuthenticated'](),controller[_0x43c4('0x9')]);router[_0x43c4('0xa')](_0x43c4('0xb'),auth[_0x43c4('0xc')](),controller[_0x43c4('0xd')]);router[_0x43c4('0xe')](_0x43c4('0xb'),auth[_0x43c4('0xc')](),controller['destroy']);module[_0x43c4('0xf')]=router;