f42c792fa96c6ff874db3fedc4f64a944aef6723
[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 _0xac4a=['express','Router','../../config/environment','./variable.controller','get','index','/:id','show','post','put','isAuthenticated','destroy','exports','multer','util','path','connect-timeout'];(function(_0x36b330,_0x533f72){var _0x5db8a0=function(_0xc9a921){while(--_0xc9a921){_0x36b330['push'](_0x36b330['shift']());}};_0x5db8a0(++_0x533f72);}(_0xac4a,0x13f));var _0xaac4=function(_0x33e5ef,_0x2028f9){_0x33e5ef=_0x33e5ef-0x0;var _0x42db5b=_0xac4a[_0x33e5ef];return _0x42db5b;};'use strict';var multer=require(_0xaac4('0x0'));var util=require(_0xaac4('0x1'));var path=require(_0xaac4('0x2'));var timeout=require(_0xaac4('0x3'));var express=require(_0xaac4('0x4'));var router=express[_0xaac4('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xaac4('0x6'));var controller=require(_0xaac4('0x7'));router[_0xaac4('0x8')]('/',auth['isAuthenticated'](),controller[_0xaac4('0x9')]);router['get'](_0xaac4('0xa'),auth['isAuthenticated'](),controller[_0xaac4('0xb')]);router[_0xaac4('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xaac4('0xd')]('/:id',auth[_0xaac4('0xe')](),controller['update']);router['delete'](_0xaac4('0xa'),auth[_0xaac4('0xe')](),controller[_0xaac4('0xf')]);module[_0xaac4('0x10')]=router;