Built motion from commit (unavailable).|2.5.22
[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 _0x76c6=['/:id/all_conditions','addAllCondition','/:id/any_conditions','addAction','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','get','isAuthenticated','index','show','getAllConditions','getAnyConditions','/:id/actions','getActions','post','create'];(function(_0x3ff085,_0x27c92e){var _0x2b68c3=function(_0x37811e){while(--_0x37811e){_0x3ff085['push'](_0x3ff085['shift']());}};_0x2b68c3(++_0x27c92e);}(_0x76c6,0x9f));var _0x676c=function(_0x27a8d3,_0x36b711){_0x27a8d3=_0x27a8d3-0x0;var _0x7aff99=_0x76c6[_0x27a8d3];return _0x7aff99;};'use strict';var multer=require(_0x676c('0x0'));var util=require(_0x676c('0x1'));var path=require('path');var timeout=require(_0x676c('0x2'));var express=require(_0x676c('0x3'));var router=express[_0x676c('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x676c('0x5'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x676c('0x6')]('/',auth[_0x676c('0x7')](),controller[_0x676c('0x8')]);router[_0x676c('0x6')]('/:id',auth[_0x676c('0x7')](),controller[_0x676c('0x9')]);router['get']('/:id/all_conditions',auth[_0x676c('0x7')](),controller[_0x676c('0xa')]);router[_0x676c('0x6')]('/:id/any_conditions',auth[_0x676c('0x7')](),controller[_0x676c('0xb')]);router[_0x676c('0x6')](_0x676c('0xc'),auth[_0x676c('0x7')](),controller[_0x676c('0xd')]);router[_0x676c('0xe')]('/',auth[_0x676c('0x7')](),controller[_0x676c('0xf')]);router[_0x676c('0xe')](_0x676c('0x10'),auth[_0x676c('0x7')](),controller[_0x676c('0x11')]);router[_0x676c('0xe')](_0x676c('0x12'),auth[_0x676c('0x7')](),controller['addAnyCondition']);router[_0x676c('0xe')]('/:id/actions',auth[_0x676c('0x7')](),controller[_0x676c('0x13')]);router['put'](_0x676c('0x14'),auth[_0x676c('0x7')](),controller[_0x676c('0x15')]);router[_0x676c('0x16')](_0x676c('0x14'),auth[_0x676c('0x7')](),controller[_0x676c('0x17')]);module[_0x676c('0x18')]=router;