Built motion from commit 85328c08.|2.5.50
[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 _0xc140=['update','delete','isAuthenticated','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./condition.controller','put','/:id'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xc140,0x1e4));var _0x0c14=function(_0x1e4a8e,_0x18022b){_0x1e4a8e=_0x1e4a8e-0x0;var _0x5408f9=_0xc140[_0x1e4a8e];return _0x5408f9;};'use strict';var multer=require(_0x0c14('0x0'));var util=require('util');var path=require(_0x0c14('0x1'));var timeout=require('connect-timeout');var express=require(_0x0c14('0x2'));var router=express[_0x0c14('0x3')]();var fs_extra=require(_0x0c14('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x0c14('0x5'));var config=require(_0x0c14('0x6'));var controller=require(_0x0c14('0x7'));router[_0x0c14('0x8')](_0x0c14('0x9'),auth['isAuthenticated'](),controller[_0x0c14('0xa')]);router[_0x0c14('0xb')]('/:id',auth[_0x0c14('0xc')](),controller['destroy']);module['exports']=router;