35e0e3a9e8bf616a069cb683d7d809a6250509d7
[motion2.git] / server / api / condition / 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 _0x087b=['../../components/interaction/service','../../config/environment','put','isAuthenticated','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x57a8c0,_0x1eccc1){var _0x366ce9=function(_0x439d54){while(--_0x439d54){_0x57a8c0['push'](_0x57a8c0['shift']());}};_0x366ce9(++_0x1eccc1);}(_0x087b,0x19d));var _0xb087=function(_0x39e84d,_0x11931d){_0x39e84d=_0x39e84d-0x0;var _0x1991bc=_0x087b[_0x39e84d];return _0x1991bc;};'use strict';var multer=require(_0xb087('0x0'));var util=require(_0xb087('0x1'));var path=require(_0xb087('0x2'));var timeout=require(_0xb087('0x3'));var express=require(_0xb087('0x4'));var router=express[_0xb087('0x5')]();var auth=require(_0xb087('0x6'));var interaction=require(_0xb087('0x7'));var config=require(_0xb087('0x8'));var controller=require('./condition.controller');router[_0xb087('0x9')]('/:id',auth[_0xb087('0xa')](),controller['update']);router[_0xb087('0xb')](_0xb087('0xc'),auth['isAuthenticated'](),controller[_0xb087('0xd')]);module[_0xb087('0xe')]=router;