Built motion from commit 47436d59.|2.6.7
[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 _0xf233=['../../config/environment','./condition.controller','/:id','isAuthenticated','multer','util','connect-timeout','../../components/auth/service'];(function(_0x560353,_0x7209df){var _0x4ced0a=function(_0x4eecc7){while(--_0x4eecc7){_0x560353['push'](_0x560353['shift']());}};_0x4ced0a(++_0x7209df);}(_0xf233,0x1b4));var _0x3f23=function(_0x24c64a,_0x516fbc){_0x24c64a=_0x24c64a-0x0;var _0x2a16d6=_0xf233[_0x24c64a];return _0x2a16d6;};'use strict';var multer=require(_0x3f23('0x0'));var util=require(_0x3f23('0x1'));var path=require('path');var timeout=require(_0x3f23('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x3f23('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x3f23('0x4'));var controller=require(_0x3f23('0x5'));router['put'](_0x3f23('0x6'),auth[_0x3f23('0x7')](),controller['update']);router['delete']('/:id',auth[_0x3f23('0x7')](),controller['destroy']);module['exports']=router;