f4d32242b12f15066136b3a3da2a40bb1be9d2b4
[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 _0x1c02=['update','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get','/:id','show','post','isAuthenticated','create'];(function(_0x226254,_0x417c73){var _0x154074=function(_0x2150f5){while(--_0x2150f5){_0x226254['push'](_0x226254['shift']());}};_0x154074(++_0x417c73);}(_0x1c02,0x1ef));var _0x21c0=function(_0x2d65e3,_0x4f1f02){_0x2d65e3=_0x2d65e3-0x0;var _0x20610f=_0x1c02[_0x2d65e3];return _0x20610f;};'use strict';var multer=require(_0x21c0('0x0'));var util=require(_0x21c0('0x1'));var path=require(_0x21c0('0x2'));var timeout=require('connect-timeout');var express=require(_0x21c0('0x3'));var router=express[_0x21c0('0x4')]();var auth=require(_0x21c0('0x5'));var interaction=require(_0x21c0('0x6'));var config=require(_0x21c0('0x7'));var controller=require('./squareMessage.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x21c0('0x8')]);router[_0x21c0('0x9')](_0x21c0('0xa'),auth['isAuthenticated'](),controller[_0x21c0('0xb')]);router[_0x21c0('0xc')]('/',auth[_0x21c0('0xd')](),controller[_0x21c0('0xe')]);router['put']('/:id',auth[_0x21c0('0xd')](),controller[_0x21c0('0xf')]);router['delete'](_0x21c0('0xa'),auth[_0x21c0('0xd')](),controller['destroy']);module[_0x21c0('0x10')]=router;