Built motion from commit (unavailable).|2.5.18
[motion2.git] / server / api / smsAccount / 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 _0xdf5e=['put','update','delete','removeDispositions','removeAnswers','removeAgents','util','path','connect-timeout','Router','./smsAccount.controller','get','isAuthenticated','index','/describe','describe','/:id','/:id/dispositions','getDispositions','getAnswers','/:id/applications','getApplications','/:id/interactions','/:id/status','getAgents','post','create','addDisposition','/:id/canned_answers','addAnswer','/:id/notify','notify','addApplications','/:id/send','status','/:id/users','addAgents'];(function(_0x4dcb61,_0x50b527){var _0x50cb3c=function(_0x42ee94){while(--_0x42ee94){_0x4dcb61['push'](_0x4dcb61['shift']());}};_0x50cb3c(++_0x50b527);}(_0xdf5e,0xe4));var _0xedf5=function(_0x644560,_0x1783aa){_0x644560=_0x644560-0x0;var _0x41b76b=_0xdf5e[_0x644560];return _0x41b76b;};'use strict';var multer=require('multer');var util=require(_0xedf5('0x0'));var path=require(_0xedf5('0x1'));var timeout=require(_0xedf5('0x2'));var express=require('express');var router=express[_0xedf5('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xedf5('0x4'));router[_0xedf5('0x5')]('/',auth[_0xedf5('0x6')](),controller[_0xedf5('0x7')]);router[_0xedf5('0x5')](_0xedf5('0x8'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x9')]);router[_0xedf5('0x5')](_0xedf5('0xa'),auth[_0xedf5('0x6')](),controller['show']);router[_0xedf5('0x5')](_0xedf5('0xb'),auth[_0xedf5('0x6')](),controller[_0xedf5('0xc')]);router[_0xedf5('0x5')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0xedf5('0xd')]);router[_0xedf5('0x5')](_0xedf5('0xe'),auth[_0xedf5('0x6')](),controller[_0xedf5('0xf')]);router[_0xedf5('0x5')](_0xedf5('0x10'),auth['isAuthenticated'](),controller['getInteractions']);router[_0xedf5('0x5')](_0xedf5('0x11'),controller['statusGet']);router[_0xedf5('0x5')]('/:id/users',auth[_0xedf5('0x6')](),controller[_0xedf5('0x12')]);router[_0xedf5('0x13')]('/',auth[_0xedf5('0x6')](),controller[_0xedf5('0x14')]);router['post'](_0xedf5('0xb'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x15')]);router['post'](_0xedf5('0x16'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x17')]);router['post'](_0xedf5('0x18'),controller[_0xedf5('0x19')]);router[_0xedf5('0x13')]('/:id/applications',auth['isAuthenticated'](),controller[_0xedf5('0x1a')]);router[_0xedf5('0x13')](_0xedf5('0x1b'),auth[_0xedf5('0x6')](),controller['send']);router[_0xedf5('0x13')]('/:id/status',controller[_0xedf5('0x1c')]);router['post'](_0xedf5('0x1d'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x1e')]);router[_0xedf5('0x1f')]('/:id',auth[_0xedf5('0x6')](),controller[_0xedf5('0x20')]);router[_0xedf5('0x21')]('/:id',auth[_0xedf5('0x6')](),controller['destroy']);router[_0xedf5('0x21')]('/:id/dispositions',auth[_0xedf5('0x6')](),controller[_0xedf5('0x22')]);router[_0xedf5('0x21')](_0xedf5('0x16'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x23')]);router[_0xedf5('0x21')](_0xedf5('0x1d'),auth[_0xedf5('0x6')](),controller[_0xedf5('0x24')]);module['exports']=router;