687db56378d04c6fd15cf1646b7b69a5c59f7936
[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 _0x6b0d=['update','delete','exports','util','connect-timeout','express','./condition.controller'];(function(_0x368e3a,_0x35ed36){var _0x448ac8=function(_0x16720f){while(--_0x16720f){_0x368e3a['push'](_0x368e3a['shift']());}};_0x448ac8(++_0x35ed36);}(_0x6b0d,0x1b5));var _0xd6b0=function(_0x200971,_0x2362da){_0x200971=_0x200971-0x0;var _0x4110e3=_0x6b0d[_0x200971];return _0x4110e3;};'use strict';var multer=require('multer');var util=require(_0xd6b0('0x0'));var path=require('path');var timeout=require(_0xd6b0('0x1'));var express=require(_0xd6b0('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xd6b0('0x3'));router['put']('/:id',auth['isAuthenticated'](),controller[_0xd6b0('0x4')]);router[_0xd6b0('0x5')]('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xd6b0('0x6')]=router;