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