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