80cf2a4143809c9b3530b6c9cfdafb65188305c6
[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 _0x1961=['/:id','exports','multer','util','Router','fs-extra','../../components/interaction/service','../../config/environment','./condition.controller','isAuthenticated','update','delete'];(function(_0x5c5c52,_0x36d085){var _0x4229ff=function(_0x3806df){while(--_0x3806df){_0x5c5c52['push'](_0x5c5c52['shift']());}};_0x4229ff(++_0x36d085);}(_0x1961,0x92));var _0x1196=function(_0x55e63d,_0x2b42fc){_0x55e63d=_0x55e63d-0x0;var _0x2f0f4c=_0x1961[_0x55e63d];return _0x2f0f4c;};'use strict';var multer=require(_0x1196('0x0'));var util=require(_0x1196('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x1196('0x2')]();var fs_extra=require(_0x1196('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x1196('0x4'));var config=require(_0x1196('0x5'));var controller=require(_0x1196('0x6'));router['put']('/:id',auth[_0x1196('0x7')](),controller[_0x1196('0x8')]);router[_0x1196('0x9')](_0x1196('0xa'),auth[_0x1196('0x7')](),controller['destroy']);module[_0x1196('0xb')]=router;