Built motion from commit (unavailable).|2.5.26
[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 _0x68cf=['/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','create','addAnyCondition','addAction','/:id','update','delete','destroy','exports','multer','connect-timeout','express','fs-extra','../../components/interaction/service','./trigger.controller','get','isAuthenticated','show'];(function(_0x2f5ac5,_0x1ee939){var _0x37c9a8=function(_0x15031f){while(--_0x15031f){_0x2f5ac5['push'](_0x2f5ac5['shift']());}};_0x37c9a8(++_0x1ee939);}(_0x68cf,0x117));var _0xf68c=function(_0x16ed87,_0x3ccf0b){_0x16ed87=_0x16ed87-0x0;var _0x493ba7=_0x68cf[_0x16ed87];return _0x493ba7;};'use strict';var multer=require(_0xf68c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf68c('0x1'));var express=require(_0xf68c('0x2'));var router=express['Router']();var fs_extra=require(_0xf68c('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0xf68c('0x4'));var config=require('../../config/environment');var controller=require(_0xf68c('0x5'));router[_0xf68c('0x6')]('/',auth[_0xf68c('0x7')](),controller['index']);router[_0xf68c('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xf68c('0x8')]);router[_0xf68c('0x6')](_0xf68c('0x9'),auth[_0xf68c('0x7')](),controller[_0xf68c('0xa')]);router['get'](_0xf68c('0xb'),auth['isAuthenticated'](),controller[_0xf68c('0xc')]);router[_0xf68c('0x6')](_0xf68c('0xd'),auth[_0xf68c('0x7')](),controller[_0xf68c('0xe')]);router[_0xf68c('0xf')]('/',auth[_0xf68c('0x7')](),controller[_0xf68c('0x10')]);router[_0xf68c('0xf')](_0xf68c('0x9'),auth[_0xf68c('0x7')](),controller['addAllCondition']);router[_0xf68c('0xf')](_0xf68c('0xb'),auth[_0xf68c('0x7')](),controller[_0xf68c('0x11')]);router[_0xf68c('0xf')](_0xf68c('0xd'),auth[_0xf68c('0x7')](),controller[_0xf68c('0x12')]);router['put'](_0xf68c('0x13'),auth[_0xf68c('0x7')](),controller[_0xf68c('0x14')]);router[_0xf68c('0x15')](_0xf68c('0x13'),auth[_0xf68c('0x7')](),controller[_0xf68c('0x16')]);module[_0xf68c('0x17')]=router;