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