Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / trigger / 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 _0xa316=['addAllCondition','addAnyCondition','addAction','update','delete','exports','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./trigger.controller','get','isAuthenticated','index','/:id','getAllConditions','/:id/any_conditions','/:id/actions','getActions','post','create','/:id/all_conditions'];(function(_0x252805,_0x1d1e8e){var _0x3e74b9=function(_0x16d7a0){while(--_0x16d7a0){_0x252805['push'](_0x252805['shift']());}};_0x3e74b9(++_0x1d1e8e);}(_0xa316,0x1af));var _0x6a31=function(_0x170f0a,_0x15fad9){_0x170f0a=_0x170f0a-0x0;var _0x5f27a2=_0xa316[_0x170f0a];return _0x5f27a2;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6a31('0x0'));var timeout=require(_0x6a31('0x1'));var express=require(_0x6a31('0x2'));var router=express[_0x6a31('0x3')]();var fs_extra=require(_0x6a31('0x4'));var auth=require(_0x6a31('0x5'));var interaction=require(_0x6a31('0x6'));var config=require('../../config/environment');var controller=require(_0x6a31('0x7'));router[_0x6a31('0x8')]('/',auth[_0x6a31('0x9')](),controller[_0x6a31('0xa')]);router[_0x6a31('0x8')](_0x6a31('0xb'),auth[_0x6a31('0x9')](),controller['show']);router[_0x6a31('0x8')]('/:id/all_conditions',auth[_0x6a31('0x9')](),controller[_0x6a31('0xc')]);router[_0x6a31('0x8')](_0x6a31('0xd'),auth[_0x6a31('0x9')](),controller['getAnyConditions']);router[_0x6a31('0x8')](_0x6a31('0xe'),auth[_0x6a31('0x9')](),controller[_0x6a31('0xf')]);router[_0x6a31('0x10')]('/',auth[_0x6a31('0x9')](),controller[_0x6a31('0x11')]);router[_0x6a31('0x10')](_0x6a31('0x12'),auth['isAuthenticated'](),controller[_0x6a31('0x13')]);router[_0x6a31('0x10')]('/:id/any_conditions',auth[_0x6a31('0x9')](),controller[_0x6a31('0x14')]);router[_0x6a31('0x10')](_0x6a31('0xe'),auth['isAuthenticated'](),controller[_0x6a31('0x15')]);router['put'](_0x6a31('0xb'),auth[_0x6a31('0x9')](),controller[_0x6a31('0x16')]);router[_0x6a31('0x17')]('/:id',auth[_0x6a31('0x9')](),controller['destroy']);module[_0x6a31('0x18')]=router;