Built motion from commit 994c64e1.|2.6.1
[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 _0xfc61=['/:id','isAuthenticated','show','/:id/all_conditions','getAllConditions','getAnyConditions','/:id/actions','getActions','post','/:id/any_conditions','addAnyCondition','addAction','put','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./trigger.controller','index','get'];(function(_0x3f66c4,_0x40bdf3){var _0x2349a8=function(_0x2adce8){while(--_0x2adce8){_0x3f66c4['push'](_0x3f66c4['shift']());}};_0x2349a8(++_0x40bdf3);}(_0xfc61,0x78));var _0x1fc6=function(_0x84b503,_0x1af412){_0x84b503=_0x84b503-0x0;var _0x2ec41e=_0xfc61[_0x84b503];return _0x2ec41e;};'use strict';var multer=require(_0x1fc6('0x0'));var util=require(_0x1fc6('0x1'));var path=require(_0x1fc6('0x2'));var timeout=require(_0x1fc6('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x1fc6('0x4'));var interaction=require(_0x1fc6('0x5'));var config=require(_0x1fc6('0x6'));var controller=require(_0x1fc6('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x1fc6('0x8')]);router[_0x1fc6('0x9')](_0x1fc6('0xa'),auth[_0x1fc6('0xb')](),controller[_0x1fc6('0xc')]);router['get'](_0x1fc6('0xd'),auth[_0x1fc6('0xb')](),controller[_0x1fc6('0xe')]);router[_0x1fc6('0x9')]('/:id/any_conditions',auth[_0x1fc6('0xb')](),controller[_0x1fc6('0xf')]);router['get'](_0x1fc6('0x10'),auth[_0x1fc6('0xb')](),controller[_0x1fc6('0x11')]);router[_0x1fc6('0x12')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1fc6('0x12')](_0x1fc6('0xd'),auth[_0x1fc6('0xb')](),controller['addAllCondition']);router['post'](_0x1fc6('0x13'),auth['isAuthenticated'](),controller[_0x1fc6('0x14')]);router[_0x1fc6('0x12')](_0x1fc6('0x10'),auth[_0x1fc6('0xb')](),controller[_0x1fc6('0x15')]);router[_0x1fc6('0x16')](_0x1fc6('0xa'),auth[_0x1fc6('0xb')](),controller['update']);router[_0x1fc6('0x17')](_0x1fc6('0xa'),auth[_0x1fc6('0xb')](),controller[_0x1fc6('0x18')]);module[_0x1fc6('0x19')]=router;