3742afd2b8c605f7c984b89e66110c69c3eba05f
[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 _0x546c=['multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','put','/:id','isAuthenticated','update','exports'];(function(_0x43f881,_0xd6e5a2){var _0x365c14=function(_0x50d386){while(--_0x50d386){_0x43f881['push'](_0x43f881['shift']());}};_0x365c14(++_0xd6e5a2);}(_0x546c,0x1c7));var _0xc546=function(_0x3f3093,_0x35914d){_0x3f3093=_0x3f3093-0x0;var _0x43b07d=_0x546c[_0x3f3093];return _0x43b07d;};'use strict';var multer=require(_0xc546('0x0'));var util=require(_0xc546('0x1'));var path=require(_0xc546('0x2'));var timeout=require(_0xc546('0x3'));var express=require(_0xc546('0x4'));var router=express[_0xc546('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xc546('0x6'));var interaction=require(_0xc546('0x7'));var config=require('../../config/environment');var controller=require('./condition.controller');router[_0xc546('0x8')](_0xc546('0x9'),auth[_0xc546('0xa')](),controller[_0xc546('0xb')]);router['delete'](_0xc546('0x9'),auth[_0xc546('0xa')](),controller['destroy']);module[_0xc546('0xc')]=router;