Built motion from commit (unavailable).|2.5.4
[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 _0x9a50=['create','post','status','put','update','reject','delete','destroy','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','smsmessage:create'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x9a50,0x1eb));var _0x09a5=function(_0xa711b,_0x81a280){_0xa711b=_0xa711b-0x0;var _0x1f061d=_0x9a50[_0xa711b];return _0x1f061d;};'use strict';var multer=require('multer');var util=require(_0x09a5('0x0'));var path=require(_0x09a5('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x09a5('0x2')]();var auth=require(_0x09a5('0x3'));var interaction=require(_0x09a5('0x4'));var config=require(_0x09a5('0x5'));var controller=require(_0x09a5('0x6'));router[_0x09a5('0x7')]('/',auth[_0x09a5('0x8')](),controller[_0x09a5('0x9')]);router[_0x09a5('0x7')](_0x09a5('0xa'),auth[_0x09a5('0x8')](),controller[_0x09a5('0xb')]);router[_0x09a5('0x7')](_0x09a5('0xc'),auth[_0x09a5('0x8')](),controller[_0x09a5('0xd')]);router['post']('/',auth[_0x09a5('0x8')](),interaction['tracked']('sms',_0x09a5('0xe')),controller[_0x09a5('0xf')]);router[_0x09a5('0x10')]('/:id/status',controller[_0x09a5('0x11')]);router[_0x09a5('0x12')](_0x09a5('0xc'),auth[_0x09a5('0x8')](),controller[_0x09a5('0x13')]);router[_0x09a5('0x12')]('/:id/accept',auth['isAuthenticated'](),controller['accept']);router[_0x09a5('0x12')]('/:id/reject',auth[_0x09a5('0x8')](),controller[_0x09a5('0x14')]);router[_0x09a5('0x15')](_0x09a5('0xc'),auth[_0x09a5('0x8')](),controller[_0x09a5('0x16')]);module['exports']=router;