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 _0x3bf5=['util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareMessage.controller','isAuthenticated','index','get','/:id','show','post','create','delete','destroy'];(function(_0x5376ef,_0x534da3){var _0x3d720b=function(_0x9f8730){while(--_0x9f8730){_0x5376ef['push'](_0x5376ef['shift']());}};_0x3d720b(++_0x534da3);}(_0x3bf5,0x1d4));var _0x53bf=function(_0x5ed54b,_0x3a2827){_0x5ed54b=_0x5ed54b-0x0;var _0x4b58c7=_0x3bf5[_0x5ed54b];return _0x4b58c7;};'use strict';var multer=require('multer');var util=require(_0x53bf('0x0'));var path=require(_0x53bf('0x1'));var timeout=require(_0x53bf('0x2'));var express=require('express');var router=express[_0x53bf('0x3')]();var fs_extra=require(_0x53bf('0x4'));var auth=require(_0x53bf('0x5'));var interaction=require(_0x53bf('0x6'));var config=require(_0x53bf('0x7'));var controller=require(_0x53bf('0x8'));router['get']('/',auth[_0x53bf('0x9')](),controller[_0x53bf('0xa')]);router[_0x53bf('0xb')](_0x53bf('0xc'),auth[_0x53bf('0x9')](),controller[_0x53bf('0xd')]);router[_0x53bf('0xe')]('/',auth[_0x53bf('0x9')](),controller[_0x53bf('0xf')]);router['put'](_0x53bf('0xc'),auth[_0x53bf('0x9')](),controller['update']);router[_0x53bf('0x10')](_0x53bf('0xc'),auth[_0x53bf('0x9')](),controller[_0x53bf('0x11')]);module['exports']=router;