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 _0xfd4a=['create','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','/:id'];(function(_0x228abe,_0x446343){var _0x5e2475=function(_0x424f72){while(--_0x424f72){_0x228abe['push'](_0x228abe['shift']());}};_0x5e2475(++_0x446343);}(_0xfd4a,0x113));var _0xafd4=function(_0x30d9e3,_0x274a5c){_0x30d9e3=_0x30d9e3-0x0;var _0x290431=_0xfd4a[_0x30d9e3];return _0x290431;};'use strict';var multer=require(_0xafd4('0x0'));var util=require(_0xafd4('0x1'));var path=require(_0xafd4('0x2'));var timeout=require('connect-timeout');var express=require(_0xafd4('0x3'));var router=express[_0xafd4('0x4')]();var auth=require(_0xafd4('0x5'));var interaction=require(_0xafd4('0x6'));var config=require(_0xafd4('0x7'));var controller=require('./crmActionsList.controller');router[_0xafd4('0x8')]('/',auth[_0xafd4('0x9')](),controller[_0xafd4('0xa')]);router[_0xafd4('0x8')]('/describe',auth[_0xafd4('0x9')](),controller[_0xafd4('0xb')]);router[_0xafd4('0x8')](_0xafd4('0xc'),auth[_0xafd4('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xafd4('0xd')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xafd4('0xe')]);router[_0xafd4('0xf')](_0xafd4('0xc'),auth[_0xafd4('0x9')](),controller[_0xafd4('0x10')]);module[_0xafd4('0x11')]=router;