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 _0xb44a=['/:id','show','post','/:id/contacts','addContacts','put','delete','exports','path','express','../../components/interaction/service','./cmCompany.controller','get','isAuthenticated','index','/describe','describe'];(function(_0x4c5a12,_0x5b08ab){var _0x59947c=function(_0x5f0565){while(--_0x5f0565){_0x4c5a12['push'](_0x4c5a12['shift']());}};_0x59947c(++_0x5b08ab);}(_0xb44a,0x1c2));var _0xab44=function(_0x2ab3c5,_0x35a3ef){_0x2ab3c5=_0x2ab3c5-0x0;var _0x2733aa=_0xb44a[_0x2ab3c5];return _0x2733aa;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab44('0x0'));var timeout=require('connect-timeout');var express=require(_0xab44('0x1'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xab44('0x2'));var config=require('../../config/environment');var controller=require(_0xab44('0x3'));router[_0xab44('0x4')]('/',auth[_0xab44('0x5')](),controller[_0xab44('0x6')]);router[_0xab44('0x4')](_0xab44('0x7'),auth[_0xab44('0x5')](),controller[_0xab44('0x8')]);router[_0xab44('0x4')](_0xab44('0x9'),auth[_0xab44('0x5')](),controller[_0xab44('0xa')]);router[_0xab44('0x4')]('/:id/contacts',auth[_0xab44('0x5')](),controller['getContacts']);router[_0xab44('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xab44('0xb')](_0xab44('0xc'),auth[_0xab44('0x5')](),controller[_0xab44('0xd')]);router[_0xab44('0xe')](_0xab44('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xab44('0xf')]('/:id',auth[_0xab44('0x5')](),controller['destroy']);module[_0xab44('0x10')]=router;