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