Built motion from commit ffdca78c.|2.6.24
[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 _0x0a52=['delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./condition.controller','/:id','isAuthenticated','update'];(function(_0x2a75d5,_0x49d231){var _0x4117c5=function(_0x2ef124){while(--_0x2ef124){_0x2a75d5['push'](_0x2a75d5['shift']());}};_0x4117c5(++_0x49d231);}(_0x0a52,0x1d4));var _0x20a5=function(_0x4ee40c,_0x5b419c){_0x4ee40c=_0x4ee40c-0x0;var _0x9e45c2=_0x0a52[_0x4ee40c];return _0x9e45c2;};'use strict';var multer=require(_0x20a5('0x0'));var util=require(_0x20a5('0x1'));var path=require(_0x20a5('0x2'));var timeout=require(_0x20a5('0x3'));var express=require('express');var router=express[_0x20a5('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x20a5('0x5'));var interaction=require(_0x20a5('0x6'));var config=require(_0x20a5('0x7'));var controller=require(_0x20a5('0x8'));router['put'](_0x20a5('0x9'),auth[_0x20a5('0xa')](),controller[_0x20a5('0xb')]);router[_0x20a5('0xc')](_0x20a5('0x9'),auth['isAuthenticated'](),controller[_0x20a5('0xd')]);module[_0x20a5('0xe')]=router;