Built motion from commit 67e5df37.|2.0.68
[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 _0x9500=['./smsAccount.controller','get','isAuthenticated','describe','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','/:id/users','create','post','addDisposition','/:id/notify','notify','addApplications','/:id/send','send','status','addAgents','put','update','delete','/:id','destroy','removeDispositions','removeAnswers','removeAgents','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0xd1229b,_0x40a504){var _0x542cd8=function(_0x39ef3c){while(--_0x39ef3c){_0xd1229b['push'](_0xd1229b['shift']());}};_0x542cd8(++_0x40a504);}(_0x9500,0xb6));var _0x0950=function(_0x128580,_0x2c7e61){_0x128580=_0x128580-0x0;var _0x433533=_0x9500[_0x128580];return _0x433533;};'use strict';var multer=require(_0x0950('0x0'));var util=require(_0x0950('0x1'));var path=require(_0x0950('0x2'));var express=require(_0x0950('0x3'));var router=express[_0x0950('0x4')]();var auth=require(_0x0950('0x5'));var interaction=require(_0x0950('0x6'));var config=require(_0x0950('0x7'));var controller=require(_0x0950('0x8'));router[_0x0950('0x9')]('/',auth[_0x0950('0xa')](),controller['index']);router['get']('/describe',auth[_0x0950('0xa')](),controller[_0x0950('0xb')]);router[_0x0950('0x9')]('/:id',auth[_0x0950('0xa')](),controller[_0x0950('0xc')]);router['get'](_0x0950('0xd'),auth[_0x0950('0xa')](),controller[_0x0950('0xe')]);router[_0x0950('0x9')](_0x0950('0xf'),auth['isAuthenticated'](),controller[_0x0950('0x10')]);router['get'](_0x0950('0x11'),auth[_0x0950('0xa')](),controller[_0x0950('0x12')]);router['get']('/:id/interactions',auth['isAuthenticated'](),controller['getInteractions']);router[_0x0950('0x9')](_0x0950('0x13'),auth[_0x0950('0xa')](),controller['getAgents']);router['post']('/',auth['isAuthenticated'](),controller[_0x0950('0x14')]);router[_0x0950('0x15')](_0x0950('0xd'),auth[_0x0950('0xa')](),controller[_0x0950('0x16')]);router[_0x0950('0x15')](_0x0950('0xf'),auth['isAuthenticated'](),controller['addAnswer']);router[_0x0950('0x15')](_0x0950('0x17'),controller[_0x0950('0x18')]);router[_0x0950('0x15')]('/:id/applications',auth[_0x0950('0xa')](),controller[_0x0950('0x19')]);router[_0x0950('0x15')](_0x0950('0x1a'),auth[_0x0950('0xa')](),controller[_0x0950('0x1b')]);router[_0x0950('0x15')]('/:id/status',controller[_0x0950('0x1c')]);router[_0x0950('0x15')]('/:id/users',auth['isAuthenticated'](),controller[_0x0950('0x1d')]);router[_0x0950('0x1e')]('/:id',auth[_0x0950('0xa')](),controller[_0x0950('0x1f')]);router[_0x0950('0x20')](_0x0950('0x21'),auth[_0x0950('0xa')](),controller[_0x0950('0x22')]);router['delete'](_0x0950('0xd'),auth[_0x0950('0xa')](),controller[_0x0950('0x23')]);router[_0x0950('0x20')](_0x0950('0xf'),auth[_0x0950('0xa')](),controller[_0x0950('0x24')]);router[_0x0950('0x20')]('/:id/users',auth[_0x0950('0xa')](),controller[_0x0950('0x25')]);module['exports']=router;