1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x5bbb=['show','get','/:id/conditions','getConditions','getActions','create','post','addConditions','/:id/actions','addActions','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./automation.controller','index','isAuthenticated'];(function(_0x50c7ac,_0x40f438){var _0x140135=function(_0x18d920){while(--_0x18d920){_0x50c7ac['push'](_0x50c7ac['shift']());}};_0x140135(++_0x40f438);}(_0x5bbb,0x132));var _0xb5bb=function(_0x4fb615,_0x5f487f){_0x4fb615=_0x4fb615-0x0;var _0x561581=_0x5bbb[_0x4fb615];return _0x561581;};'use strict';var multer=require(_0xb5bb('0x0'));var util=require(_0xb5bb('0x1'));var path=require(_0xb5bb('0x2'));var timeout=require(_0xb5bb('0x3'));var express=require(_0xb5bb('0x4'));var router=express[_0xb5bb('0x5')]();var fs_extra=require(_0xb5bb('0x6'));var auth=require(_0xb5bb('0x7'));var interaction=require(_0xb5bb('0x8'));var config=require(_0xb5bb('0x9'));var controller=require(_0xb5bb('0xa'));router['get']('/',auth['isAuthenticated'](),controller[_0xb5bb('0xb')]);router['get']('/:id',auth[_0xb5bb('0xc')](),controller[_0xb5bb('0xd')]);router[_0xb5bb('0xe')](_0xb5bb('0xf'),auth['isAuthenticated'](),controller[_0xb5bb('0x10')]);router['get']('/:id/actions',auth[_0xb5bb('0xc')](),controller[_0xb5bb('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb5bb('0x12')]);router[_0xb5bb('0x13')](_0xb5bb('0xf'),auth['isAuthenticated'](),controller[_0xb5bb('0x14')]);router[_0xb5bb('0x13')](_0xb5bb('0x15'),auth['isAuthenticated'](),controller[_0xb5bb('0x16')]);router[_0xb5bb('0x17')](_0xb5bb('0x18'),auth['isAuthenticated'](),controller[_0xb5bb('0x19')]);router[_0xb5bb('0x1a')](_0xb5bb('0x18'),auth['isAuthenticated'](),controller[_0xb5bb('0x1b')]);module[_0xb5bb('0x1c')]=router;