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 _0x5c79=['show','post','create','put','update','destroy','util','path','connect-timeout','Router','../../config/environment','./squareMessage.controller','get','isAuthenticated','/:id'];(function(_0x30cc1a,_0x4808be){var _0x77f295=function(_0x27b42b){while(--_0x27b42b){_0x30cc1a['push'](_0x30cc1a['shift']());}};_0x77f295(++_0x4808be);}(_0x5c79,0x18c));var _0x95c7=function(_0x3cd91d,_0x163516){_0x3cd91d=_0x3cd91d-0x0;var _0x3b4fab=_0x5c79[_0x3cd91d];return _0x3b4fab;};'use strict';var multer=require('multer');var util=require(_0x95c7('0x0'));var path=require(_0x95c7('0x1'));var timeout=require(_0x95c7('0x2'));var express=require('express');var router=express[_0x95c7('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x95c7('0x4'));var controller=require(_0x95c7('0x5'));router[_0x95c7('0x6')]('/',auth[_0x95c7('0x7')](),controller['index']);router[_0x95c7('0x6')](_0x95c7('0x8'),auth[_0x95c7('0x7')](),controller[_0x95c7('0x9')]);router[_0x95c7('0xa')]('/',auth[_0x95c7('0x7')](),controller[_0x95c7('0xb')]);router[_0x95c7('0xc')]('/:id',auth[_0x95c7('0x7')](),controller[_0x95c7('0xd')]);router['delete'](_0x95c7('0x8'),auth[_0x95c7('0x7')](),controller[_0x95c7('0xe')]);module['exports']=router;