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