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