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 _0x0b2b=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','get','/describe','show','/:id/contacts','getContacts','post','create','addContacts','put','/:id','update','delete','destroy','multer','util','path'];(function(_0x212721,_0x1c0edc){var _0x369f08=function(_0x1c6077){while(--_0x1c6077){_0x212721['push'](_0x212721['shift']());}};_0x369f08(++_0x1c0edc);}(_0x0b2b,0xb5));var _0xb0b2=function(_0x229422,_0x5477c6){_0x229422=_0x229422-0x0;var _0x245f88=_0x0b2b[_0x229422];return _0x245f88;};'use strict';var multer=require(_0xb0b2('0x0'));var util=require(_0xb0b2('0x1'));var path=require(_0xb0b2('0x2'));var timeout=require(_0xb0b2('0x3'));var express=require(_0xb0b2('0x4'));var router=express[_0xb0b2('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xb0b2('0x6'));var interaction=require(_0xb0b2('0x7'));var config=require('../../config/environment');var controller=require('./cmCompany.controller');router['get']('/',auth[_0xb0b2('0x8')](),controller[_0xb0b2('0x9')]);router[_0xb0b2('0xa')](_0xb0b2('0xb'),auth[_0xb0b2('0x8')](),controller['describe']);router[_0xb0b2('0xa')]('/:id',auth[_0xb0b2('0x8')](),controller[_0xb0b2('0xc')]);router[_0xb0b2('0xa')](_0xb0b2('0xd'),auth[_0xb0b2('0x8')](),controller[_0xb0b2('0xe')]);router[_0xb0b2('0xf')]('/',auth[_0xb0b2('0x8')](),controller[_0xb0b2('0x10')]);router[_0xb0b2('0xf')](_0xb0b2('0xd'),auth[_0xb0b2('0x8')](),controller[_0xb0b2('0x11')]);router[_0xb0b2('0x12')](_0xb0b2('0x13'),auth['isAuthenticated'](),controller[_0xb0b2('0x14')]);router[_0xb0b2('0x15')](_0xb0b2('0x13'),auth['isAuthenticated'](),controller[_0xb0b2('0x16')]);module['exports']=router;