| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "init": "{ |
| 5 | |
| 6 | $nom_AA = 'Obte_Totals'; |
| 7 | $versio = '1.0'; |
| 8 | |
| 9 | $AA_PF = trigger.data.AA_PF; |
| 10 | |
| 11 | $_AA_Transfers = var[ $AA_PF ][ '_AA_Transfers' ]; |
| 12 | $_AA_Activacions = var[ $AA_PF ][ '_AA_Activacions' ]; |
| 13 | $_AA_Subscripcions = var[ $AA_PF ][ '_AA_Subscripcions' ]; |
| 14 | $_AA_Renovacions = var[ $AA_PF ][ '_AA_Renovacions' ]; |
| 15 | $_AA_Compensacions = var[ $AA_PF ][ '_AA_Compensacions' ]; |
| 16 | $_AA_Diposits = var[ $AA_PF ][ '_AA_Diposits' ]; |
| 17 | |
| 18 | $total_activacions = var[ $_AA_Transfers ][ 'Total_Activacions' ]; |
| 19 | $total_subscripcions = var[ $_AA_Transfers ][ 'Total_Subscripcions' ]; |
| 20 | $total_renovacions = var[ $_AA_Transfers ][ 'Total_Renovacions' ]; |
| 21 | $total_compensacions = var[ $_AA_Transfers ][ 'Total_Compensacions' ]; |
| 22 | $total_diposits = var[ $_AA_Transfers ][ 'Total_Diposits' ]; |
| 23 | |
| 24 | }", |
| 25 | "messages": [ |
| 26 | { |
| 27 | "app": "state", |
| 28 | "state": "{ |
| 29 | response[ 'Total Activacions' ] = $total_activacions; |
| 30 | response[ 'Total Subscripcions' ] = $total_subscripcions; |
| 31 | response[ 'Total Renovacions' ] = $total_renovacions; |
| 32 | response[ 'Total Compensacions' ] = $total_compensacions; |
| 33 | response[ 'Total Diposits' ] = $total_diposits; |
| 34 | }" |
| 35 | } |
| 36 | ] |
| 37 | } |
| 38 | ] |