aaae1af683135f1b5f5a180ec4fd902d36859756
[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 _0xf34f=['../../components/auth/service','../../components/interaction/service','./trigger.controller','isAuthenticated','get','show','getAllConditions','getAnyConditions','/:id/actions','getActions','create','post','/:id/all_conditions','addAllCondition','/:id/any_conditions','addAnyCondition','addAction','put','/:id','update','delete','destroy','multer','path','express','fs-extra'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0xf34f,0x64));var _0xff34=function(_0x48c333,_0x3a4f7b){_0x48c333=_0x48c333-0x0;var _0x18bc3c=_0xf34f[_0x48c333];return _0x18bc3c;};'use strict';var multer=require(_0xff34('0x0'));var util=require('util');var path=require(_0xff34('0x1'));var timeout=require('connect-timeout');var express=require(_0xff34('0x2'));var router=express['Router']();var fs_extra=require(_0xff34('0x3'));var auth=require(_0xff34('0x4'));var interaction=require(_0xff34('0x5'));var config=require('../../config/environment');var controller=require(_0xff34('0x6'));router['get']('/',auth[_0xff34('0x7')](),controller['index']);router[_0xff34('0x8')]('/:id',auth[_0xff34('0x7')](),controller[_0xff34('0x9')]);router['get']('/:id/all_conditions',auth[_0xff34('0x7')](),controller[_0xff34('0xa')]);router[_0xff34('0x8')]('/:id/any_conditions',auth[_0xff34('0x7')](),controller[_0xff34('0xb')]);router['get'](_0xff34('0xc'),auth[_0xff34('0x7')](),controller[_0xff34('0xd')]);router['post']('/',auth[_0xff34('0x7')](),controller[_0xff34('0xe')]);router[_0xff34('0xf')](_0xff34('0x10'),auth[_0xff34('0x7')](),controller[_0xff34('0x11')]);router[_0xff34('0xf')](_0xff34('0x12'),auth[_0xff34('0x7')](),controller[_0xff34('0x13')]);router[_0xff34('0xf')](_0xff34('0xc'),auth[_0xff34('0x7')](),controller[_0xff34('0x14')]);router[_0xff34('0x15')](_0xff34('0x16'),auth[_0xff34('0x7')](),controller[_0xff34('0x17')]);router[_0xff34('0x18')](_0xff34('0x16'),auth['isAuthenticated'](),controller[_0xff34('0x19')]);module['exports']=router;