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