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