Built motion from commit dbf3a7e2.|2.6.30
[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 _0x7c59=['path','connect-timeout','Router','../../components/auth/service','../../config/environment','put','isAuthenticated','update','/:id','destroy','exports','multer','util'];(function(_0x217ff6,_0x36f75d){var _0x417c93=function(_0x4787d2){while(--_0x4787d2){_0x217ff6['push'](_0x217ff6['shift']());}};_0x417c93(++_0x36f75d);}(_0x7c59,0x66));var _0x97c5=function(_0x4eb119,_0x28bcc8){_0x4eb119=_0x4eb119-0x0;var _0x3857b0=_0x7c59[_0x4eb119];return _0x3857b0;};'use strict';var multer=require(_0x97c5('0x0'));var util=require(_0x97c5('0x1'));var path=require(_0x97c5('0x2'));var timeout=require(_0x97c5('0x3'));var express=require('express');var router=express[_0x97c5('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x97c5('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x97c5('0x6'));var controller=require('./condition.controller');router[_0x97c5('0x7')]('/:id',auth[_0x97c5('0x8')](),controller[_0x97c5('0x9')]);router['delete'](_0x97c5('0xa'),auth[_0x97c5('0x8')](),controller[_0x97c5('0xb')]);module[_0x97c5('0xc')]=router;