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