This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const axios = require('axios'); | |
require('yargs') | |
.command( | |
'exec', | |
'get Twilio pending tasks with pagination', | |
yargs => { | |
yargs.options({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EventSourceMapping: | |
Type: AWS::Lambda::EventSourceMapping | |
DependsOn: | |
- DLQ | |
- DestinationLambdaLogicalFunctionName | |
Properties: | |
EventSourceArn: Stream.Arn | |
StartingPosition: "TRIM_HORIZON" | |
FilterCriteria: | |
Filters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { | |
Manager, Actions, MessagingCanvas, MessagingCanvasContext, DynamicComponent, ContextProvider, MessageList, StateHelper, TaskHelper, ITask, | |
Supervisor, | |
TaskChannelDefinition, | |
TaskContextProps, | |
Theme | |
} from '@twilio/flex-ui'; | |
import CoreApiService from '../Shared/CoreApiService'; | |
import { Channel } from 'twilio-chat/lib/channel'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use DB; | |
use Illymincate\Database\Eloquent\Model; | |
use Illuminate\Pagination\paginator; | |
//set $pageSize to items per page | |
//set $conditions to where $conditions | |
//set $page to current page number | |
$results = DB::table('tableName') | |
->where($conditions) |