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