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 _0xe11a=['express','Router','fs-extra','../../components/auth/service','./cmCompany.controller','get','/describe','isAuthenticated','show','/:id/contacts','post','create','/:id','delete','destroy','util','path','connect-timeout'];(function(_0x480224,_0x4a0331){var _0x3b83e2=function(_0x1b3101){while(--_0x1b3101){_0x480224['push'](_0x480224['shift']());}};_0x3b83e2(++_0x4a0331);}(_0xe11a,0x153));var _0xae11=function(_0x5ca716,_0x3ad8f0){_0x5ca716=_0x5ca716-0x0;var _0x2176ca=_0xe11a[_0x5ca716];return _0x2176ca;};'use strict';var multer=require('multer');var util=require(_0xae11('0x0'));var path=require(_0xae11('0x1'));var timeout=require(_0xae11('0x2'));var express=require(_0xae11('0x3'));var router=express[_0xae11('0x4')]();var fs_extra=require(_0xae11('0x5'));var auth=require(_0xae11('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xae11('0x7'));router[_0xae11('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xae11('0x8')](_0xae11('0x9'),auth[_0xae11('0xa')](),controller['describe']);router[_0xae11('0x8')]('/:id',auth[_0xae11('0xa')](),controller[_0xae11('0xb')]);router[_0xae11('0x8')](_0xae11('0xc'),auth[_0xae11('0xa')](),controller['getContacts']);router[_0xae11('0xd')]('/',auth[_0xae11('0xa')](),controller[_0xae11('0xe')]);router[_0xae11('0xd')]('/:id/contacts',auth[_0xae11('0xa')](),controller['addContacts']);router['put'](_0xae11('0xf'),auth['isAuthenticated'](),controller['update']);router[_0xae11('0x10')](_0xae11('0xf'),auth[_0xae11('0xa')](),controller[_0xae11('0x11')]);module['exports']=router;