Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / smsMessage / 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 _0x00f4=['/:id','show','post','tracked','smsmessage:create','create','/:id/status','put','update','accept','/:id/reject','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','index','/describe','isAuthenticated','describe'];(function(_0x3e9289,_0x5aa7ee){var _0x2b0370=function(_0x48f7c1){while(--_0x48f7c1){_0x3e9289['push'](_0x3e9289['shift']());}};_0x2b0370(++_0x5aa7ee);}(_0x00f4,0x137));var _0x400f=function(_0x8a4494,_0x561354){_0x8a4494=_0x8a4494-0x0;var _0x9bb700=_0x00f4[_0x8a4494];return _0x9bb700;};'use strict';var multer=require(_0x400f('0x0'));var util=require('util');var path=require(_0x400f('0x1'));var timeout=require(_0x400f('0x2'));var express=require(_0x400f('0x3'));var router=express[_0x400f('0x4')]();var fs_extra=require(_0x400f('0x5'));var auth=require(_0x400f('0x6'));var interaction=require(_0x400f('0x7'));var config=require('../../config/environment');var controller=require('./smsMessage.controller');router[_0x400f('0x8')]('/',auth['isAuthenticated'](),controller[_0x400f('0x9')]);router[_0x400f('0x8')](_0x400f('0xa'),auth[_0x400f('0xb')](),controller[_0x400f('0xc')]);router[_0x400f('0x8')](_0x400f('0xd'),auth['isAuthenticated'](),controller[_0x400f('0xe')]);router[_0x400f('0xf')]('/',auth[_0x400f('0xb')](),interaction[_0x400f('0x10')]('sms',_0x400f('0x11')),controller[_0x400f('0x12')]);router['post'](_0x400f('0x13'),controller['status']);router[_0x400f('0x14')](_0x400f('0xd'),auth[_0x400f('0xb')](),controller[_0x400f('0x15')]);router['put']('/:id/accept',auth['isAuthenticated'](),controller[_0x400f('0x16')]);router[_0x400f('0x14')](_0x400f('0x17'),auth[_0x400f('0xb')](),controller['reject']);router[_0x400f('0x18')](_0x400f('0xd'),auth[_0x400f('0xb')](),controller[_0x400f('0x19')]);module[_0x400f('0x1a')]=router;