97b0356ee7a973563fb91e45f79bfab8b864901c
[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 _0x7f81=['util','express','Router','fs-extra','../../components/auth/service','../../config/environment','./condition.controller','put','isAuthenticated','delete','destroy','multer'];(function(_0x4fafac,_0x3a1c4d){var _0x3d2b43=function(_0x7fa4fe){while(--_0x7fa4fe){_0x4fafac['push'](_0x4fafac['shift']());}};_0x3d2b43(++_0x3a1c4d);}(_0x7f81,0x17f));var _0x17f8=function(_0x9ca77d,_0x32cf55){_0x9ca77d=_0x9ca77d-0x0;var _0x35b5dd=_0x7f81[_0x9ca77d];return _0x35b5dd;};'use strict';var multer=require(_0x17f8('0x0'));var util=require(_0x17f8('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x17f8('0x2'));var router=express[_0x17f8('0x3')]();var fs_extra=require(_0x17f8('0x4'));var auth=require(_0x17f8('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x17f8('0x6'));var controller=require(_0x17f8('0x7'));router[_0x17f8('0x8')]('/:id',auth[_0x17f8('0x9')](),controller['update']);router[_0x17f8('0xa')]('/:id',auth[_0x17f8('0x9')](),controller[_0x17f8('0xb')]);module['exports']=router;