Built motion from commit da617fac.|2.6.6
[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 _0x6b81=['util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./condition.controller','/:id','destroy','exports','multer'];(function(_0x3d0914,_0x5f1566){var _0x5508ed=function(_0xb2c861){while(--_0xb2c861){_0x3d0914['push'](_0x3d0914['shift']());}};_0x5508ed(++_0x5f1566);}(_0x6b81,0x16a));var _0x16b8=function(_0x2b7f97,_0x3fe5c6){_0x2b7f97=_0x2b7f97-0x0;var _0x3c2339=_0x6b81[_0x2b7f97];return _0x3c2339;};'use strict';var multer=require(_0x16b8('0x0'));var util=require(_0x16b8('0x1'));var path=require('path');var timeout=require(_0x16b8('0x2'));var express=require(_0x16b8('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x16b8('0x4'));var interaction=require(_0x16b8('0x5'));var config=require(_0x16b8('0x6'));var controller=require(_0x16b8('0x7'));router['put'](_0x16b8('0x8'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x16b8('0x9')]);module[_0x16b8('0xa')]=router;