a73d0c2ff9cf3fc47c66c4b03686e360b8047ea4
[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 _0xa755=['../../config/environment','./squareMessage.controller','get','isAuthenticated','/:id','show','post','create','delete','destroy','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x3de91c,_0x3f2fa){var _0x71adcd=function(_0x2a6cec){while(--_0x2a6cec){_0x3de91c['push'](_0x3de91c['shift']());}};_0x71adcd(++_0x3f2fa);}(_0xa755,0x174));var _0x5a75=function(_0x51f7a0,_0x4a6712){_0x51f7a0=_0x51f7a0-0x0;var _0x801711=_0xa755[_0x51f7a0];return _0x801711;};'use strict';var multer=require(_0x5a75('0x0'));var util=require(_0x5a75('0x1'));var path=require(_0x5a75('0x2'));var timeout=require(_0x5a75('0x3'));var express=require('express');var router=express[_0x5a75('0x4')]();var fs_extra=require(_0x5a75('0x5'));var auth=require(_0x5a75('0x6'));var interaction=require(_0x5a75('0x7'));var config=require(_0x5a75('0x8'));var controller=require(_0x5a75('0x9'));router[_0x5a75('0xa')]('/',auth[_0x5a75('0xb')](),controller['index']);router[_0x5a75('0xa')](_0x5a75('0xc'),auth[_0x5a75('0xb')](),controller[_0x5a75('0xd')]);router[_0x5a75('0xe')]('/',auth[_0x5a75('0xb')](),controller[_0x5a75('0xf')]);router['put'](_0x5a75('0xc'),auth[_0x5a75('0xb')](),controller['update']);router[_0x5a75('0x10')](_0x5a75('0xc'),auth[_0x5a75('0xb')](),controller[_0x5a75('0x11')]);module[_0x5a75('0x12')]=router;