Built motion from commit d6d69adf.|2.6.33
[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 _0x17a5=['get','isAuthenticated','/:id','show','/:id/all_conditions','getAllConditions','/:id/any_conditions','getAnyConditions','/:id/actions','getActions','post','create','addAllCondition','addAnyCondition','addAction','update','delete','destroy','exports','util','path','express','fs-extra','../../components/interaction/service','./trigger.controller'];(function(_0x34b888,_0x2afae9){var _0x5c6703=function(_0x389a6d){while(--_0x389a6d){_0x34b888['push'](_0x34b888['shift']());}};_0x5c6703(++_0x2afae9);}(_0x17a5,0x1d5));var _0x517a=function(_0x4025df,_0x5bdc3a){_0x4025df=_0x4025df-0x0;var _0x3caeca=_0x17a5[_0x4025df];return _0x3caeca;};'use strict';var multer=require('multer');var util=require(_0x517a('0x0'));var path=require(_0x517a('0x1'));var timeout=require('connect-timeout');var express=require(_0x517a('0x2'));var router=express['Router']();var fs_extra=require(_0x517a('0x3'));var auth=require('../../components/auth/service');var interaction=require(_0x517a('0x4'));var config=require('../../config/environment');var controller=require(_0x517a('0x5'));router[_0x517a('0x6')]('/',auth[_0x517a('0x7')](),controller['index']);router[_0x517a('0x6')](_0x517a('0x8'),auth[_0x517a('0x7')](),controller[_0x517a('0x9')]);router[_0x517a('0x6')](_0x517a('0xa'),auth[_0x517a('0x7')](),controller[_0x517a('0xb')]);router[_0x517a('0x6')](_0x517a('0xc'),auth[_0x517a('0x7')](),controller[_0x517a('0xd')]);router[_0x517a('0x6')](_0x517a('0xe'),auth['isAuthenticated'](),controller[_0x517a('0xf')]);router[_0x517a('0x10')]('/',auth['isAuthenticated'](),controller[_0x517a('0x11')]);router[_0x517a('0x10')](_0x517a('0xa'),auth[_0x517a('0x7')](),controller[_0x517a('0x12')]);router[_0x517a('0x10')]('/:id/any_conditions',auth[_0x517a('0x7')](),controller[_0x517a('0x13')]);router[_0x517a('0x10')](_0x517a('0xe'),auth['isAuthenticated'](),controller[_0x517a('0x14')]);router['put'](_0x517a('0x8'),auth[_0x517a('0x7')](),controller[_0x517a('0x15')]);router[_0x517a('0x16')]('/:id',auth['isAuthenticated'](),controller[_0x517a('0x17')]);module[_0x517a('0x18')]=router;