85fe4b56763e71126f7098131bbd73696fdc4e2a
[motion2.git] / server / api / squareMessage / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf7ef=['delete','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','./squareMessage.controller','get','index','isAuthenticated','show','put'];(function(_0x43aa05,_0x45f683){var _0x53c8a6=function(_0x205c67){while(--_0x205c67){_0x43aa05['push'](_0x43aa05['shift']());}};_0x53c8a6(++_0x45f683);}(_0xf7ef,0xc6));var _0xff7e=function(_0x2e2234,_0x12d5b1){_0x2e2234=_0x2e2234-0x0;var _0x2cf401=_0xf7ef[_0x2e2234];return _0x2cf401;};'use strict';var multer=require(_0xff7e('0x0'));var util=require(_0xff7e('0x1'));var path=require(_0xff7e('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xff7e('0x3')]();var auth=require(_0xff7e('0x4'));var interaction=require(_0xff7e('0x5'));var config=require('../../config/environment');var controller=require(_0xff7e('0x6'));router[_0xff7e('0x7')]('/',auth['isAuthenticated'](),controller[_0xff7e('0x8')]);router[_0xff7e('0x7')]('/:id',auth[_0xff7e('0x9')](),controller[_0xff7e('0xa')]);router['post']('/',auth[_0xff7e('0x9')](),controller['create']);router[_0xff7e('0xb')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0xff7e('0xc')]('/:id',auth[_0xff7e('0x9')](),controller[_0xff7e('0xd')]);module[_0xff7e('0xe')]=router;