bdc13db44b327cf4c2b1eda2c9897f38b456b6ad
[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 _0x77cb=['show','/:id/all_conditions','/:id/any_conditions','getAnyConditions','getActions','post','create','addAnyCondition','addAction','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','get','isAuthenticated','index','/:id'];(function(_0x491a7f,_0x28bb80){var _0x3d8f44=function(_0xdaa716){while(--_0xdaa716){_0x491a7f['push'](_0x491a7f['shift']());}};_0x3d8f44(++_0x28bb80);}(_0x77cb,0x1b2));var _0xb77c=function(_0x3e568e,_0x14c979){_0x3e568e=_0x3e568e-0x0;var _0x4de323=_0x77cb[_0x3e568e];return _0x4de323;};'use strict';var multer=require(_0xb77c('0x0'));var util=require(_0xb77c('0x1'));var path=require(_0xb77c('0x2'));var timeout=require(_0xb77c('0x3'));var express=require(_0xb77c('0x4'));var router=express[_0xb77c('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xb77c('0x6'));var interaction=require(_0xb77c('0x7'));var config=require(_0xb77c('0x8'));var controller=require(_0xb77c('0x9'));router[_0xb77c('0xa')]('/',auth[_0xb77c('0xb')](),controller[_0xb77c('0xc')]);router[_0xb77c('0xa')](_0xb77c('0xd'),auth[_0xb77c('0xb')](),controller[_0xb77c('0xe')]);router[_0xb77c('0xa')](_0xb77c('0xf'),auth['isAuthenticated'](),controller['getAllConditions']);router[_0xb77c('0xa')](_0xb77c('0x10'),auth[_0xb77c('0xb')](),controller[_0xb77c('0x11')]);router['get']('/:id/actions',auth[_0xb77c('0xb')](),controller[_0xb77c('0x12')]);router[_0xb77c('0x13')]('/',auth[_0xb77c('0xb')](),controller[_0xb77c('0x14')]);router[_0xb77c('0x13')](_0xb77c('0xf'),auth[_0xb77c('0xb')](),controller['addAllCondition']);router[_0xb77c('0x13')](_0xb77c('0x10'),auth[_0xb77c('0xb')](),controller[_0xb77c('0x15')]);router[_0xb77c('0x13')]('/:id/actions',auth[_0xb77c('0xb')](),controller[_0xb77c('0x16')]);router[_0xb77c('0x17')](_0xb77c('0xd'),auth[_0xb77c('0xb')](),controller[_0xb77c('0x18')]);router[_0xb77c('0x19')](_0xb77c('0xd'),auth[_0xb77c('0xb')](),controller[_0xb77c('0x1a')]);module[_0xb77c('0x1b')]=router;