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 _0x0598=['delete','destroy','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','describe','get','/:id','/:id/contacts','getContacts','post','update'];(function(_0x1568d5,_0xb6db2d){var _0x1097a2=function(_0x2d1398){while(--_0x2d1398){_0x1568d5['push'](_0x1568d5['shift']());}};_0x1097a2(++_0xb6db2d);}(_0x0598,0x92));var _0x8059=function(_0x52459a,_0x35d4f3){_0x52459a=_0x52459a-0x0;var _0x326e8c=_0x0598[_0x52459a];return _0x326e8c;};'use strict';var multer=require(_0x8059('0x0'));var util=require(_0x8059('0x1'));var path=require('path');var timeout=require(_0x8059('0x2'));var express=require('express');var router=express['Router']();var auth=require(_0x8059('0x3'));var interaction=require(_0x8059('0x4'));var config=require('../../config/environment');var controller=require('./cmCompany.controller');router['get']('/',auth[_0x8059('0x5')](),controller[_0x8059('0x6')]);router['get']('/describe',auth[_0x8059('0x5')](),controller[_0x8059('0x7')]);router[_0x8059('0x8')](_0x8059('0x9'),auth['isAuthenticated'](),controller['show']);router[_0x8059('0x8')](_0x8059('0xa'),auth[_0x8059('0x5')](),controller[_0x8059('0xb')]);router[_0x8059('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0x8059('0xc')](_0x8059('0xa'),auth['isAuthenticated'](),controller['addContacts']);router['put'](_0x8059('0x9'),auth[_0x8059('0x5')](),controller[_0x8059('0xd')]);router[_0x8059('0xe')](_0x8059('0x9'),auth['isAuthenticated'](),controller[_0x8059('0xf')]);module['exports']=router;