03baa004ac88f6ffa6989cfa4b5650cb230988b0
[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 _0xe3b7=['multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','post','create','addAllCondition','addAnyCondition','addAction','/:id','update','delete','destroy','exports'];(function(_0x490863,_0x502aca){var _0x3a0b2d=function(_0x5ae75b){while(--_0x5ae75b){_0x490863['push'](_0x490863['shift']());}};_0x3a0b2d(++_0x502aca);}(_0xe3b7,0xe1));var _0x7e3b=function(_0x42245d,_0x51758f){_0x42245d=_0x42245d-0x0;var _0x4b211a=_0xe3b7[_0x42245d];return _0x4b211a;};'use strict';var multer=require(_0x7e3b('0x0'));var util=require(_0x7e3b('0x1'));var path=require('path');var timeout=require(_0x7e3b('0x2'));var express=require(_0x7e3b('0x3'));var router=express['Router']();var auth=require(_0x7e3b('0x4'));var interaction=require(_0x7e3b('0x5'));var config=require('../../config/environment');var controller=require('./trigger.controller');router[_0x7e3b('0x6')]('/',auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x8')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x7e3b('0x9')]);router['get'](_0x7e3b('0xa'),auth[_0x7e3b('0x7')](),controller[_0x7e3b('0xb')]);router[_0x7e3b('0x6')](_0x7e3b('0xc'),auth['isAuthenticated'](),controller[_0x7e3b('0xd')]);router[_0x7e3b('0x6')](_0x7e3b('0xe'),auth[_0x7e3b('0x7')](),controller['getActions']);router[_0x7e3b('0xf')]('/',auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x10')]);router['post'](_0x7e3b('0xa'),auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x11')]);router['post'](_0x7e3b('0xc'),auth['isAuthenticated'](),controller[_0x7e3b('0x12')]);router[_0x7e3b('0xf')](_0x7e3b('0xe'),auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x13')]);router['put'](_0x7e3b('0x14'),auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x15')]);router[_0x7e3b('0x16')]('/:id',auth[_0x7e3b('0x7')](),controller[_0x7e3b('0x17')]);module[_0x7e3b('0x18')]=router;