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 _0x4d4f=['index','/:id','post','create','put','update','delete','destroy','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareMessage.controller','get','isAuthenticated'];(function(_0x2445bf,_0x2e8806){var _0x294e35=function(_0x4d674c){while(--_0x4d674c){_0x2445bf['push'](_0x2445bf['shift']());}};_0x294e35(++_0x2e8806);}(_0x4d4f,0x1e4));var _0xf4d4=function(_0x10b104,_0x3d69ae){_0x10b104=_0x10b104-0x0;var _0x55efb1=_0x4d4f[_0x10b104];return _0x55efb1;};'use strict';var multer=require('multer');var util=require(_0xf4d4('0x0'));var path=require('path');var timeout=require(_0xf4d4('0x1'));var express=require(_0xf4d4('0x2'));var router=express[_0xf4d4('0x3')]();var auth=require(_0xf4d4('0x4'));var interaction=require(_0xf4d4('0x5'));var config=require(_0xf4d4('0x6'));var controller=require(_0xf4d4('0x7'));router[_0xf4d4('0x8')]('/',auth[_0xf4d4('0x9')](),controller[_0xf4d4('0xa')]);router[_0xf4d4('0x8')](_0xf4d4('0xb'),auth[_0xf4d4('0x9')](),controller['show']);router[_0xf4d4('0xc')]('/',auth[_0xf4d4('0x9')](),controller[_0xf4d4('0xd')]);router[_0xf4d4('0xe')](_0xf4d4('0xb'),auth[_0xf4d4('0x9')](),controller[_0xf4d4('0xf')]);router[_0xf4d4('0x10')]('/:id',auth[_0xf4d4('0x9')](),controller[_0xf4d4('0x11')]);module[_0xf4d4('0x12')]=router;