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 _0xad86=['/:id','isAuthenticated','show','getConditions','/:id/actions','getActions','post','create','addConditions','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./automation.controller','get'];(function(_0x279216,_0x19e24b){var _0x4f16de=function(_0x3b7991){while(--_0x3b7991){_0x279216['push'](_0x279216['shift']());}};_0x4f16de(++_0x19e24b);}(_0xad86,0x194));var _0x6ad8=function(_0x5b709a,_0x599b4b){_0x5b709a=_0x5b709a-0x0;var _0x34cf52=_0xad86[_0x5b709a];return _0x34cf52;};'use strict';var multer=require(_0x6ad8('0x0'));var util=require(_0x6ad8('0x1'));var path=require(_0x6ad8('0x2'));var timeout=require(_0x6ad8('0x3'));var express=require(_0x6ad8('0x4'));var router=express[_0x6ad8('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x6ad8('0x6'));var config=require(_0x6ad8('0x7'));var controller=require(_0x6ad8('0x8'));router[_0x6ad8('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x6ad8('0x9')](_0x6ad8('0xa'),auth[_0x6ad8('0xb')](),controller[_0x6ad8('0xc')]);router['get']('/:id/conditions',auth[_0x6ad8('0xb')](),controller[_0x6ad8('0xd')]);router[_0x6ad8('0x9')](_0x6ad8('0xe'),auth[_0x6ad8('0xb')](),controller[_0x6ad8('0xf')]);router[_0x6ad8('0x10')]('/',auth[_0x6ad8('0xb')](),controller[_0x6ad8('0x11')]);router['post']('/:id/conditions',auth['isAuthenticated'](),controller[_0x6ad8('0x12')]);router[_0x6ad8('0x10')]('/:id/actions',auth[_0x6ad8('0xb')](),controller['addActions']);router[_0x6ad8('0x13')](_0x6ad8('0xa'),auth['isAuthenticated'](),controller[_0x6ad8('0x14')]);router['delete'](_0x6ad8('0xa'),auth[_0x6ad8('0xb')](),controller[_0x6ad8('0x15')]);module[_0x6ad8('0x16')]=router;