Built motion from commit ae138b72.|2.6.28
[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 _0xb9c1=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','isAuthenticated','index','/describe','describe','get','/:id','show','post','sms','smsmessage:create','create','status','put','update','/:id/accept','accept','reject','destroy','multer','path','connect-timeout'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xb9c1,0xc1));var _0x1b9c=function(_0x3024b3,_0x43da59){_0x3024b3=_0x3024b3-0x0;var _0x1d337f=_0xb9c1[_0x3024b3];return _0x1d337f;};'use strict';var multer=require(_0x1b9c('0x0'));var util=require('util');var path=require(_0x1b9c('0x1'));var timeout=require(_0x1b9c('0x2'));var express=require(_0x1b9c('0x3'));var router=express[_0x1b9c('0x4')]();var fs_extra=require(_0x1b9c('0x5'));var auth=require(_0x1b9c('0x6'));var interaction=require(_0x1b9c('0x7'));var config=require(_0x1b9c('0x8'));var controller=require(_0x1b9c('0x9'));router['get']('/',auth[_0x1b9c('0xa')](),controller[_0x1b9c('0xb')]);router['get'](_0x1b9c('0xc'),auth[_0x1b9c('0xa')](),controller[_0x1b9c('0xd')]);router[_0x1b9c('0xe')](_0x1b9c('0xf'),auth[_0x1b9c('0xa')](),controller[_0x1b9c('0x10')]);router[_0x1b9c('0x11')]('/',auth[_0x1b9c('0xa')](),interaction['tracked'](_0x1b9c('0x12'),_0x1b9c('0x13')),controller[_0x1b9c('0x14')]);router['post']('/:id/status',controller[_0x1b9c('0x15')]);router[_0x1b9c('0x16')](_0x1b9c('0xf'),auth[_0x1b9c('0xa')](),controller[_0x1b9c('0x17')]);router['put'](_0x1b9c('0x18'),auth[_0x1b9c('0xa')](),controller[_0x1b9c('0x19')]);router['put']('/:id/reject',auth[_0x1b9c('0xa')](),controller[_0x1b9c('0x1a')]);router['delete'](_0x1b9c('0xf'),auth[_0x1b9c('0xa')](),controller[_0x1b9c('0x1b')]);module['exports']=router;