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 _0x93ba=['put','isAuthenticated','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x307d88,_0x3f8bba){var _0x38d74b=function(_0x4ea955){while(--_0x4ea955){_0x307d88['push'](_0x307d88['shift']());}};_0x38d74b(++_0x3f8bba);}(_0x93ba,0x117));var _0xa93b=function(_0x2eb794,_0x27550f){_0x2eb794=_0x2eb794-0x0;var _0x64e283=_0x93ba[_0x2eb794];return _0x64e283;};'use strict';var multer=require(_0xa93b('0x0'));var util=require(_0xa93b('0x1'));var path=require(_0xa93b('0x2'));var timeout=require(_0xa93b('0x3'));var express=require('express');var router=express[_0xa93b('0x4')]();var fs_extra=require(_0xa93b('0x5'));var auth=require(_0xa93b('0x6'));var interaction=require(_0xa93b('0x7'));var config=require(_0xa93b('0x8'));var controller=require('./condition.controller');router[_0xa93b('0x9')]('/:id',auth[_0xa93b('0xa')](),controller[_0xa93b('0xb')]);router[_0xa93b('0xc')](_0xa93b('0xd'),auth['isAuthenticated'](),controller[_0xa93b('0xe')]);module[_0xa93b('0xf')]=router;