d03b0a25969a281ccd85814dc90e3d2c1d5bf5dd
[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 _0xcb0f=['../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','/:id','show','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','addAllCondition','addAnyCondition','put','update','delete','exports','multer','util','path','express','Router'];(function(_0x4c25af,_0x40e416){var _0x41baa9=function(_0x30c7cf){while(--_0x30c7cf){_0x4c25af['push'](_0x4c25af['shift']());}};_0x41baa9(++_0x40e416);}(_0xcb0f,0x7d));var _0xfcb0=function(_0x532189,_0x2f943b){_0x532189=_0x532189-0x0;var _0x5de0dc=_0xcb0f[_0x532189];return _0x5de0dc;};'use strict';var multer=require(_0xfcb0('0x0'));var util=require(_0xfcb0('0x1'));var path=require(_0xfcb0('0x2'));var timeout=require('connect-timeout');var express=require(_0xfcb0('0x3'));var router=express[_0xfcb0('0x4')]();var auth=require(_0xfcb0('0x5'));var interaction=require(_0xfcb0('0x6'));var config=require(_0xfcb0('0x7'));var controller=require(_0xfcb0('0x8'));router[_0xfcb0('0x9')]('/',auth[_0xfcb0('0xa')](),controller[_0xfcb0('0xb')]);router[_0xfcb0('0x9')](_0xfcb0('0xc'),auth['isAuthenticated'](),controller[_0xfcb0('0xd')]);router[_0xfcb0('0x9')]('/:id/all_conditions',auth[_0xfcb0('0xa')](),controller[_0xfcb0('0xe')]);router[_0xfcb0('0x9')](_0xfcb0('0xf'),auth[_0xfcb0('0xa')](),controller[_0xfcb0('0x10')]);router[_0xfcb0('0x9')](_0xfcb0('0x11'),auth[_0xfcb0('0xa')](),controller[_0xfcb0('0x12')]);router['post']('/',auth[_0xfcb0('0xa')](),controller['create']);router[_0xfcb0('0x13')]('/:id/all_conditions',auth[_0xfcb0('0xa')](),controller[_0xfcb0('0x14')]);router[_0xfcb0('0x13')](_0xfcb0('0xf'),auth['isAuthenticated'](),controller[_0xfcb0('0x15')]);router[_0xfcb0('0x13')](_0xfcb0('0x11'),auth[_0xfcb0('0xa')](),controller['addAction']);router[_0xfcb0('0x16')](_0xfcb0('0xc'),auth['isAuthenticated'](),controller[_0xfcb0('0x17')]);router[_0xfcb0('0x18')]('/:id',auth[_0xfcb0('0xa')](),controller['destroy']);module[_0xfcb0('0x19')]=router;