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